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

Support annotating k8s secrets !? #21

Open
domruf opened this issue Mar 8, 2023 · 0 comments
Open

Support annotating k8s secrets !? #21

domruf opened this issue Mar 8, 2023 · 0 comments

Comments

@domruf
Copy link

domruf commented Mar 8, 2023

What do you think about the idea to support annotating k8s secrets as well?

So the idea would be to create a secret like this

apiVersion: v1
kind: Secret
metadata:
  name: mysql-secret
      annotations:
      vault.opstree.secret.manager/enabled: "true"
      vault.opstree.secret.manager/path: secret/mysql
      vault.opstree.secret.manager/role: tester
      vault.opstree.secret.manager/service: http://vault.vault:8200
data:
  MYSQL_ROOT_PASSWORD: vault:MYSQL_ROOT_PASSWORD
  MYSQL_USER1_PASSWORD: vault:MYSQL_USER1_PASSWORD

On creation (and updates) of this secrets, the data.* would automatically be/updated set.
This way the secret could be used as any other k8s secret. So if for example a third party helm chart expects a k8s secret being set it would work as well.

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

1 participant