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
Improve PostHog dedicated instances flow
Carlos Monastyrski4459b7a56da3
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.tsindex 63ad119b5d..3adc11969e 100644--- a/backend/src/lib/config/env.ts+++ b/backend/src/lib/config/env.ts@@ -297,6 +297,7 @@ const envSchema = z.transform((val) => val === "true" || IS_PACKAGED).optional(),INFISICAL_CLOUD: zodStrBool.default("false"),+ INFISICAL_DEDICATED: zodStrBool.default("false"),MAINTENANCE_MODE: zodStrBool.default("false"),CAPTCHA_SECRET: zpStr(z.string().optional()),CAPTCHA_SITE_KEY: zpStr(z.string().optional()),diff --git a/backend/src/services/telemetry/telemetry-service.ts b/backend/src/services/telemetry/telemetry-service.tsindex 46ff97026f..c6d5de3818 100644--- a/backend/src/services/telemetry/telemetry-service.ts+++ b/backend/src/services/telemetry/telemetry-service.ts@@ -74,17 +74,17 @@ export enum DeploymentType {* Computes the deployment type based on the instance type and environment configuration.* - US Cloud: instanceType is Cloud and INTERNAL_REGION is "us" (or unset, defaults to US)* - EU Cloud: instanceType is Cloud and INTERNAL_REGION is "eu"- * - Dedicated: INFISICAL_CLOUD is true but instanceType is not Cloud (uses self-hosted license keys)+ * - Dedicated: INFISICAL_DEDICATED is true* - Self-Hosted: everything else*/const getDeploymentType = (instanceType: InstanceType,- appConfig: { INFISICAL_CLOUD: boolean; INTERNAL_REGION?: string }+ appConfig: { INFISICAL_CLOUD: boolean; INFISICAL_DEDICATED: boolean; INTERNAL_REGION?: string }) => {if (instanceType === InstanceType.Cloud) {return appConfig.INTERNAL_REGION === "eu" ? DeploymentType.EUCloud : DeploymentType.USCloud;}- if (appConfig.INFISICAL_CLOUD) {+ if (appConfig.INFISICAL_DEDICATED) {return DeploymentType.Dedicated;}return DeploymentType.SelfHosted;@@ -218,7 +218,7 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environme};const sendPostHogEvents = async (event: TPostHogEvent) => {- if (!appCfg.INFISICAL_CLOUD && postHog) {+ if (!appCfg.INFISICAL_CLOUD && !appCfg.INFISICAL_DEDICATED && postHog) {if ([PostHogEventTypes.SecretPulled,