Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help to see how to support automatic update of password of aws secretsmanager, and identify the VersionStages: AWSCURRENT field, which can automatically obtain the latest Versionid without manual configuration #51

Closed
g1938809124 opened this issue May 6, 2022 · 2 comments

Comments

@g1938809124
Copy link

g1938809124 commented May 6, 2022

Please help to see how to support automatic update of password of aws secretsmanager, and identify the VersionStages: AWSCURRENT field, which can automatically obtain the latest Versionid without manual configuration

All previous versions supported these features (image: 3onaco/aws-secret-operator:0.2.4 )eks Version:"v1.19.15-eks"

Now the latest version does not support it, can you help to support automatic update of password of aws secretsmanager,?(image: image mumoshu/aws-secret-operator:0.4.0)eks GitVersion:"v1.22.5"

apiVersion: mumoshu.github.io/v1alpha1
kind: AWSSecret
metadata:
name: AWSSecretPrd
namespace: prd
spec:
stringDataFrom:
secretsManagerSecretRef:
VersionStages: AWSCURRENT
secretId: vdev/eks/n8n/app-credentials

thanks

@mumoshu
Copy link
Owner

mumoshu commented May 8, 2022

We've never had the support for specifying VersionStages so perhaps you were just rereading the secret after an re-reconcilation of AWSSecret into a Secret?

The operator reconciles an AWSSecret when it has any changes or the "resync period" elapsed.
Would you try holding on a bit so that it will eventually resync?
Wee might also need an another command-line flag to make the resync period configurable 🤔

Anyway, my recommendation is just keep updating versionId explicitly, so that the timing is more controllable.

Also, how do you consume the generated Secret?

@mumoshu
Copy link
Owner

mumoshu commented Jun 21, 2022

Probably this is a duplicate of #45. Let's discuss it there. Thanks!

@mumoshu mumoshu closed this as completed Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants