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

RandomSecret batch create keys #234

Open
saksmt opened this issue May 10, 2024 · 0 comments
Open

RandomSecret batch create keys #234

saksmt opened this issue May 10, 2024 · 0 comments

Comments

@saksmt
Copy link

saksmt commented May 10, 2024

API in vault allows for batch create/update of data in kv. Would be nice to have RandomSecret version accepting whole batch of keys to init:

spec:
  path: kv-mount-path
  name: name-of-secret
  data:
    key1:
      passwordPolicyName: pasword-policy
      # or
      inlinePasswordPolicy: "length ..."
    key2: # ...

Challenges/considerations:

  • inlinePasswordPolicy for each key could be a bit too bloated, though it probably is non-concern since there is a way to just create them beforehand and use passwordPolicyName
  • refreshPeriod becomes questionable and should probably be at key level

Currently absence of this feature does not allow to have more than one key in a secret and all consequent usages of RandomSecret just overrides entire secret

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