You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(selfhost): optional Infisical secrets management for self-host deploys (#5785)
Adds a maybe_infisical_run helper (scripts/lib/selfhost-deploy-common.sh)
that prefixes a command with `infisical run --` when SELFHOST_USE_INFISICAL=1
is set, wiring Infisical's own intended integration shape in at the
deploy-script level with zero application code changes. Strictly opt-in:
unset (the default), neither deploy script even checks whether the
infisical binary exists, so an operator who has never heard of Infisical
is completely unaffected. Wired into both deploy-selfhost-image.sh and
deploy-selfhost-prebuilt.sh's restart (`docker compose up`) step only --
the actual container process launch, not the image pull/build steps that
don't need injected secrets.
Documents setup (cloud vs. self-hosted Infisical) and, importantly, the
real technical boundary of this integration: infisical run -- only injects
vars into its own child process's environment, which Docker Compose only
picks up for environment: entries using ${VAR} interpolation -- not for
the blanket env_file: .env passthrough the native-secrets list (GitHub
App key, webhook secret, API/MCP tokens, etc.) already uses. The docs are
explicit that Infisical is additive for other variables, not a drop-in
override for those pre-wired secrets.
Closes#5120
0 commit comments