Skip to content

Commit 96bc95e

Browse files
thesuperzappergsemet
authored andcommitted
fix support for passwords with bash special characters
Signed-off-by: Mathew Wicks <[email protected]>
1 parent c3db30b commit 96bc95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/airflow/templates/config/secret-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ stringData:
3232

3333
## bash command which echos the URL encoded value of $DATABASE_PASSWORD
3434
DATABASE_PASSWORD_CMD: |-
35-
echo ${DATABASE_PASSWORD} | python3 -c "import urllib.parse; encoded_pass = urllib.parse.quote(input()); print(encoded_pass)"
35+
echo "${DATABASE_PASSWORD}" | python3 -c "import urllib.parse; encoded_pass = urllib.parse.quote(input()); print(encoded_pass)"
3636
3737
## bash command which echos the DB connection string in SQLAlchemy format
3838
DATABASE_SQLALCHEMY_CMD: |-
@@ -72,7 +72,7 @@ stringData:
7272
## a bash command which echos the URL encoded value of $REDIS_PASSWORD
7373
## NOTE: if $REDIS_PASSWORD is non-empty, prints `:${REDIS_PASSWORD}@`, else ``
7474
REDIS_PASSWORD_CMD: |-
75-
echo ${REDIS_PASSWORD} | python3 -c "import urllib.parse; encoded_pass = urllib.parse.quote(input()); print(f\":{encoded_pass}@\") if len(encoded_pass) > 0 else None"
75+
echo "${REDIS_PASSWORD}" | python3 -c "import urllib.parse; encoded_pass = urllib.parse.quote(input()); print(f\":{encoded_pass}@\") if len(encoded_pass) > 0 else None"
7676
7777
## a bash command which echos the Redis connection string
7878
REDIS_CONNECTION_CMD: |-

0 commit comments

Comments
 (0)