Skip to content

Commit

Permalink
Avoid special symbols in passwords (#149)
Browse files Browse the repository at this point in the history
Some special characters may cause issues in DB URI unless they are
properly escaped. For example, the password "ab/cd" cannot be used
directly in the URI

    postgresql://user:ab/cd@localhost/quay

because netloc became "user:ab", while we want it to be
"user:ab/cd@localhost".
  • Loading branch information
Oleg Bulatov committed Apr 20, 2024
1 parent 61e3a4c commit 26d82ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set_fact:
secret_key: "{{ lookup('community.general.random_string', length=48, base64=True) }}"
database_secret_key: "{{ lookup('community.general.random_string', length=48, base64=True) }}"
pgdb_password: "{{ lookup('community.general.random_string', length=24, base64=True) }}"
redis_password: "{{ lookup('community.general.random_string', length=24, base64=True) }}"
pgdb_password: "{{ lookup('community.general.random_string', length=24, special=False) }}"
redis_password: "{{ lookup('community.general.random_string', length=24, special=False) }}"

0 comments on commit 26d82ce

Please sign in to comment.