Skip to content

Commit bb84578

Browse files
committed
allow customization of auth proxy credentials
1 parent 4892057 commit bb84578

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compose/auth_proxy_htpasswd

Lines changed: 0 additions & 1 deletion
This file was deleted.

smoketest.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ createProxyCfgVolume() {
242242
cfg="$(mktemp)"
243243
chmod 644 "${cfg}"
244244
envsubst '$STORAGE_PORT' < "${DIR}/compose/${AUTH_PROXY_ALPHA_CONFIG_FILE}.yml" > "${cfg}"
245-
"${container_engine}" cp "${DIR}/compose/auth_proxy_htpasswd" proxy_cfg_helper:/tmp/auth_proxy_htpasswd
245+
htpasswd="$(mktemp)"
246+
htpasswd -ibB "${htpasswd}" "${CRYOSTAT_USER:-user}" "${CRYOSTAT_PASS:-pass}"
247+
"${container_engine}" cp "${htpasswd}" proxy_cfg_helper:/tmp/auth_proxy_htpasswd
246248
"${container_engine}" cp "${cfg}" proxy_cfg_helper:/tmp/auth_proxy_alpha_config.yml
247249
}
248250

0 commit comments

Comments
 (0)