Configure secure secret management with Infisical for GAIA
.env
files, Infisical allows you to:
inject_infisical_secrets()
function. Here’s the process:
gaia-backend
.env
file:
INFISICAL_PROJECT_ID
, INFISICAL_MACHINE_INDENTITY_CLIENT_ID
, and INFISICAL_MACHINE_INDENTITY_CLIENT_SECRET
must be set in your local .env
file - they cannot be stored in Infisical itself since they’re needed to authenticate with Infisical..env
file variables.env
variables.env
for development and Infisical for productionInfisicalConfigError: INFISICAL_PROJECT_ID is missing
INFISICAL_PROJECT_ID
to your .env
file. You can find this in your Infisical project settings.Authentication failed
INFISICAL_MACHINE_INDENTITY_CLIENT_ID
and INFISICAL_MACHINE_INDENTITY_CLIENT_SECRET
Secrets not loading
Local variables not being overridden