-
Notifications
You must be signed in to change notification settings - Fork 44
PMM-13513: add support for cleartext passwords #307
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
base: v3
Are you sure you want to change the base?
Conversation
config/config.go
Outdated
SslKey string `ini:"ssl-key"` | ||
TlsInsecureSkipVerify bool `ini:"ssl-skip-verfication"` //nolint:misspell | ||
Tls string `ini:"tls"` | ||
EnableCleartextPassword bool `ini:"enable-cleartext-plugin"` |
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.
EnableCleartextPassword bool `ini:"enable-cleartext-plugin"` | |
EnableCleartextPlugin bool `ini:"enable-cleartext-plugin"` |
IMO, we can leave it as is for naming consistency.
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.
Just checked the code in the monorepo and I now see the point in renaming :)
config/config.go
Outdated
@@ -208,6 +209,9 @@ func (m MySqlConfig) FormDSN(target string) (string, error) { | |||
config.TLSConfig = "custom" | |||
} | |||
} | |||
if m.EnableCleartextPassword { |
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.
if m.EnableCleartextPassword { | |
if m.EnableCleartextPlugin { |
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.
Yeah, I can definitely change it - just went with password because that's what the field is called in the package-level Config.
No description provided.