mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 18:48:33 +02:00
fix: set password encryption default to scram-sha-256
According to the Postgres official documentation, md5 passwords is deprecated in favor of scram-sha-256 encryption. The change in this PR updates the default encryption to the new postgres default. Documentation link: https://www.postgresql.org/docs/18/auth-password.html >Warning: Support for MD5-encrypted passwords is deprecated and will be removed in a future release of PostgreSQL. Signed-off-by: Kadaffy Talavera <kadtalavera@gmail.com>
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ func NewEncryptor(encryption string) *Encryptor {
|
||||
}
|
||||
hasher, ok := m[encryption]
|
||||
if !ok {
|
||||
hasher = e.PGUserPasswordMD5
|
||||
hasher = e.PGUserPasswordScramSHA256
|
||||
}
|
||||
e.encrypt = hasher
|
||||
return &e
|
||||
|
||||
Reference in New Issue
Block a user