Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Remove SECRETS_ACTIVATION_ENABLED env gate; feature always on

Claudea9f040c179be
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.ts
index fdf67cde4e..9e3bc1b44a 100644
--- a/backend/src/lib/config/env.ts
+++ b/backend/src/lib/config/env.ts
@@ -238,9 +238,8 @@ const envSchema = z
CONTENTFUL_ENVIRONMENT: zpStr(z.string().optional().default("master")),
// GitHub API token for upgrade path tool
GITHUB_API_TOKEN: zpStr(z.string().optional()),
- // Secrets activation nudge tuning. Gates whether the member-invite activation banner shows and
- // the org size/age window in which it appears.
- SECRETS_ACTIVATION_ENABLED: zodStrBool.default("false"),
+ // Secrets activation nudge tuning. Controls the org size/age window in which the
+ // member-invite activation banner appears.
SECRETS_ACTIVATION_ORG_MAX_AGE_MONTHS: z.coerce.number().default(2),
SECRETS_ACTIVATION_ORG_MAX_MEMBERS: z.coerce.number().default(5),
// jwt options
diff --git a/backend/src/services/user-activation/user-activation-service.ts b/backend/src/services/user-activation/user-activation-service.ts
index df5f904db9..f9f48a489e 100644
--- a/backend/src/services/user-activation/user-activation-service.ts
+++ b/backend/src/services/user-activation/user-activation-service.ts
@@ -43,8 +43,6 @@ export const userActivationServiceFactory = ({
const noActivation: TSecretsActivationStatus = { shouldShowActivation: false, stage: null, activation: null };
const appCfg = getConfig();
- if (!appCfg.SECRETS_ACTIVATION_ENABLED) return noActivation;
-
// 1. The caller must be able to invite other members to the org.
const { permission } = await permissionService.getOrgPermission({
actor,
diff --git a/backend/vitest.e2e.config.mts b/backend/vitest.e2e.config.mts
index 9838e1ebe8..569a02b1f7 100644
--- a/backend/vitest.e2e.config.mts
+++ b/backend/vitest.e2e.config.mts
@@ -6,8 +6,6 @@ export default defineConfig({
globals: true,
env: {
NODE_ENV: "test",
- // Gates the secrets-activation nudge feature; off by default, enabled here so its e2e spec runs.
- SECRETS_ACTIVATION_ENABLED: "true",
E2E_TEST_ORACLE_DB_19_HOST: process.env.E2E_TEST_ORACLE_DB_19_HOST!,
E2E_TEST_ORACLE_DB_19_USERNAME: process.env.E2E_TEST_ORACLE_DB_19_USERNAME!,
E2E_TEST_ORACLE_DB_19_PASSWORD: process.env.E2E_TEST_ORACLE_DB_19_PASSWORD!,