[type/__postgres_role] Add note regarding empty passwords

This commit is contained in:
Dennis Camera 2021-01-14 13:46:40 +01:00
parent 99d82fd0d5
commit 2954347771
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ psql_query() {
psql_set_password() {
# NOTE: Always make sure that the password does not end up in psql_history!
# NOTE: Never set an empty string as the password, because they can be
# interpreted differently by different tooling.
if test -s "${__object:?}/parameter/password"
then
cat <<-EOF