-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
InfluxDB - Add username customization #11796
Conversation
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.
LGTM! 👍
Nice! Will this be for 1.8? If so, please add the 1.8 Milestone to the PR. |
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 good to me! Great job 👍
@@ -3,11 +3,11 @@ package influxdb | |||
import ( | |||
"context" | |||
"fmt" | |||
"github.com/hashicorp/vault/sdk/helper/template" |
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.
You may not have set this up already, but the goimports tool is useful to organize imports in a consistent way. I suggest to try running that tool on this file! I would expect to see this import grouped with the other group ("github.com/*"
) below.
This is just a stylistic suggestion. We usually try to organize imports consistently in Vault.
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.
Same thoughts on imports as Austin mentioned, but otherwise looks great!
Adds the ability to customize username generation for dynamic users in InfluxDB.
Uses the new field
username_template
with the go template language.