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

fix #1961, first char of a proxyadmin user password must not be a * #1962

Merged
merged 8 commits into from
Feb 11, 2025
3 changes: 3 additions & 0 deletions pkg/controller/pxc/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func validatePasswords(secret *corev1.Secret) error {
if strings.ContainsAny(string(pass), ";:") {
return errors.New("invalid proxyadmin password, don't use ';' or ':'")
}
if strings.HasPrefix(string(pass), "*") {
return errors.New("invalid proxyadmin password, first character must not be '*'")
}
default:
continue
}
Expand Down
Loading