Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Default AUTH_SECRET to JWT_AUTH_SECRET for backwards compatibility
Tuan Dangae50987f91da
diff --git a/backend/src/config/index.ts b/backend/src/config/index.tsindex c57a6110ad..402fd58742 100644--- a/backend/src/config/index.ts+++ b/backend/src/config/index.ts@@ -17,7 +17,7 @@ export const getRootEncryptionKey = async () => {}export const getInviteOnlySignup = async () => (await client.getSecret("INVITE_ONLY_SIGNUP")).secretValue === "true"export const getSaltRounds = async () => parseInt((await client.getSecret("SALT_ROUNDS")).secretValue) || 10;-export const getAuthSecret = async () => (await client.getSecret("AUTH_SECRET")).secretValue; // new+export const getAuthSecret = async () => (await client.getSecret("JWT_AUTH_SECRET")).secretValue ?? (await client.getSecret("AUTH_SECRET")).secretValue;export const getJwtAuthLifetime = async () => (await client.getSecret("JWT_AUTH_LIFETIME")).secretValue || "10d";export const getJwtMfaLifetime = async () => (await client.getSecret("JWT_MFA_LIFETIME")).secretValue || "5m";export const getJwtRefreshLifetime = async () => (await client.getSecret("JWT_REFRESH_LIFETIME")).secretValue || "90d";