From 9232f7a4c70b72f91f6010d2da133542e48c4ac0 Mon Sep 17 00:00:00 2001 From: Daniel Kolbman Date: Wed, 13 Mar 2019 22:23:37 -0400 Subject: [PATCH] :recycle: Read secrets as raw strings --- bin/load_vault.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/load_vault.sh b/bin/load_vault.sh index e4df2e2..bdcd9c0 100755 --- a/bin/load_vault.sh +++ b/bin/load_vault.sh @@ -17,7 +17,7 @@ if [[ -n $VAULT_ADDR ]] && [[ -n $VAULT_ROLE ]]; then # Get redis password if [[ -n $REDIS_SECRET ]] ; then echo "Load redis secret from vault" - pw=$(vault read -format=json ${REDIS_SECRET} | jq -c '.password') + pw=$(vault read -format=json ${REDIS_SECRET} | jq -c -r '.password') export REDIS_PASS=$pw fi @@ -25,8 +25,8 @@ if [[ -n $VAULT_ADDR ]] && [[ -n $VAULT_ROLE ]]; then # Get ego secret if [[ -n $EGO_SECRET ]] ; then echo "Load ego secret from vault" - client=$(vault read -format=json ${EGO_SECRET} | jq -c '.data.client_id') - secret=$(vault read -format=json ${EGO_SECRET} | jq -c '.data.client_secret') + client=$(vault read -format=json ${EGO_SECRET} | jq -c -r '.data.client_id') + secret=$(vault read -format=json ${EGO_SECRET} | jq -c -r '.data.client_secret') export EGO_CLIENT_ID=$client export EGO_SECRET=$secret