summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-11 20:39:23 -0600
committermo khan <mo@mokhan.ca>2025-05-11 21:22:02 -0600
commitb1b29603622451f677f61be9300987ee3e79a2ff (patch)
tree6d61eaf9ce575473e01dfbf049d6fabfabddd659
parent3e1e6ec01f2a3b88e601b4a44885b4cbdd3b7b0a (diff)
chore: export OAUTH_CLIENT_SECRET as HMAC_SESSION_SECRET because I cannot change secrets in vault
-rw-r--r--start.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/start.sh b/start.sh
index 49f3985..f0d0a0d 100644
--- a/start.sh
+++ b/start.sh
@@ -17,5 +17,9 @@ if [ "$oidc_scheme" = "http" ]; then
yaml=$(echo "$yaml" | sed -e "s/port_value: 443/port_value: $oidc_port/")
fi
+if [ -z "$HMAC_SESSION_SECRET" ]; then
+ export HMAC_SESSION_SECRET="$OAUTH_CLIENT_SECRET"
+fi
+
echo "[$(date "+%H:%M:%S")] ==> Starting…"
/usr/local/bin/sparkled & /usr/local/bin/envoy --config-yaml "$yaml" --log-level warn --component-log-level oauth2:trace