Skip to content

Commit c7404ae

Browse files
authored
trivial: Remover redis password logging in forwarder script (#1878)
1 parent 1c95359 commit c7404ae

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

scripts/database-forwarder/forward.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,11 @@ get_redis_info() {
145145

146146
local hostname="${name}.redis.cache.windows.net"
147147
local port=6379
148-
149-
local password
150-
password=$(az redis list-keys \
151-
--resource-group "dp-be-${env}-rg" \
152-
--name "$name" \
153-
--query "primaryKey" -o tsv)
154-
148+
155149
echo "name=$name"
156150
echo "hostname=$hostname"
157151
echo "port=$port"
158-
echo "connection_string=redis://:${password}@${hostname}:${port}"
152+
echo "connection_string=redis://:<retrieve-password-from-keyvault>@${hostname}:${port}"
159153
}
160154

161155
setup_ssh_tunnel() {

0 commit comments

Comments
 (0)