move SSO client secret to Docker secret, gate SSO entrypoint on SSO_ENABLED

This commit is contained in:
notplants
2026-03-01 02:48:46 +00:00
parent bd2488ffea
commit b8f074e0a7
5 changed files with 21 additions and 11 deletions

View File

@ -3,7 +3,13 @@ set -e
# SSO plugin installer — runs before the original CryptPad entrypoint.
# Clones the cryptpad/sso plugin into the plugins volume if not already present
# or if the version has changed, then delegates to the real entrypoint.
# or if the version has changed.
# Skips SSO setup entirely when SSO_ENABLED is not "true".
if [ "${SSO_ENABLED}" != "true" ]; then
echo "[sso-entrypoint] SSO not enabled, skipping plugin install"
exec "$@"
fi
PLUGIN_DIR="/cryptpad/lib/plugins/sso"
VERSION_FILE="${PLUGIN_DIR}/.version"
@ -28,4 +34,4 @@ else
fi
# Hand off to the original CryptPad entrypoint
exec /bin/bash /cryptpad/docker-entrypoint.sh "$@"
exec "$@"