Skip to content

Commit

Permalink
Merge pull request #1043 from carlkyrillos/THREESCALE-11504
Browse files Browse the repository at this point in the history
THREESCALE-11504 Support non-root user with external MySQL
  • Loading branch information
carlkyrillos authored Dec 13, 2024
2 parents 487e8f5 + fff7044 commit 97cf9f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/helper/system_database_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ func systemDatabaseURLIsValid(rawURL string) (*url.URL, bool, error) {
if resultURL.User.Username() == "" {
return nil, false, fmt.Errorf("authentication information in '%s' field of '%s' secret must contain a username", urlKey, secretName)
}
if resultURL.Scheme == "mysql2" {
if resultURL.User.Username() != "root" {
return nil, false, fmt.Errorf("authentication information in '%s' field of '%s' secret must contain 'root' as the username", urlKey, secretName)
}
}

if _, set := resultURL.User.Password(); !set {
return nil, false, fmt.Errorf("authentication information in '%s' field of '%s' secret must contain a password", urlKey, secretName)
Expand Down

0 comments on commit 97cf9f0

Please sign in to comment.