Skip to content

Commit

Permalink
Update psql-db-aurora-migration-job.yaml (#2616)
Browse files Browse the repository at this point in the history
set password_encryption to  scram-sha-256
  • Loading branch information
ajoaugustine authored Aug 8, 2024
1 parent 099d50f commit 1d95331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kube/services/jobs/psql-db-aurora-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ spec:
if [ $? -eq 0 ]; then
gen3_log_info "User $db_user, password already exists"
else
gen3 psql aurora -c "CREATE USER \"$db_user\" WITH PASSWORD '$db_password' CREATEDB"
gen3 psql aurora -c "SET password_encryption = 'scram-sha-256';CREATE USER \"$db_user\" WITH PASSWORD '$db_password' CREATEDB"
if [ $? -ne 0 ]; then
gen3_log_err "Failed to create user for $database"
failed_migrations="${failed_migrations}\nDatabase: $database, Error: Failed to create user"
Expand Down

0 comments on commit 1d95331

Please sign in to comment.