-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
MySQL - Add username customization #10834
Conversation
This pull request is being automatically deployed with Vercel (learn more). vault-storybook – ./ui🔍 Inspect: https://vercel.com/hashicorp/vault-storybook/9awh7gpvn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few suggestions, otherwise 👍 !
@@ -483,35 +718,6 @@ func TestMySQL_UpdateUser(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestMySQL_Initialize_ReservedChars(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was added for coverage against a bug that we ended up fixing and is not specific to templating, but rather a check against this codeblock. We might want to keep it around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is being checked in the TestMySQL_Initialize
table tests as the password being used is the same as in this tests. I'll see about making this check more explicit though. I'd like to keep it in the table tests, but TBD on whether that's reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you've addressed this on 716ddc4, thanks!
Adds the ability to customize username generation for dynamic users in MySQL.
Uses the new field
username_template
with the go template language.