Skip to content

Commit ce6dcbd

Browse files
authored
Update default password hashing algorithm (#578)
* Update default password hashing algorithm * Tell the linter that this is not a password
1 parent a81bd7d commit ce6dcbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/v1/postgres_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const (
8484
defaultPostgresParamValueWalKeepSegments = "64"
8585
defaultPostgresParamValueWalKeepSize = "1GB"
8686
defaultPostgresParamValuePGStatStatementsMax = "500"
87+
defaultPostgresParamValuePasswordEncryption = "scram-sha-256" // nolint
8788

8889
// PostgresAutoAssignedIPNamePrefix a prefix to add to the generated random name
8990
PostgresAutoAssignedIPNamePrefix = "pgaas-autoassign-"
@@ -982,6 +983,8 @@ func setDefaultPostgresParams(parameters map[string]string, version string) {
982983
}
983984

984985
parameters["pg_stat_statements.max"] = defaultPostgresParamValuePGStatStatementsMax
986+
987+
parameters["password_encryption"] = defaultPostgresParamValuePasswordEncryption
985988
}
986989

987990
// setPostgresParams add the provided params to the parameter map (but ignore params that are blocked)

0 commit comments

Comments
 (0)