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

Vault secrets engine partial update resets username_template to default #29851

Open
skeet70 opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@skeet70
Copy link

skeet70 commented Mar 6, 2025

Describe the bug
A write to aws/config/root to set the region resets username_template to its default value.

To Reproduce
Steps to reproduce the behavior:

  1. Run vault write aws/config/root username_template="{{ printf "vault-prod-%s-%s-%s-%s" (unix_time) (random 20) (.DisplayName) (.PolicyName) | truncate 32 }}", observe that it has been set to the custom value.
  2. Run vault write aws/config/root region="us-east-1"
  3. Run vault read aws/config/root and see the error that the username_template was set to the default without -prod. Other set values aren't changed.

Expected behavior
The new value was set for region but all other values were consistent.

Environment:

  • Vault Server Version (retrieve with vault status): 1.19
  • Vault CLI Version (retrieve with vault version): 1.18.2
  • Server Operating System/Architecture: Mac OSX Sequoia, Ubuntu

Additional context
The same thing happens when making changes using the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants