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
fix: address Greptile review - update INFISICAL_CLOUD comment and add organizationId to invite flow
Devin AIfcc5a786e95a
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.tsindex 3562976bd6..8f18961eaa 100644--- a/backend/src/lib/config/env.ts+++ b/backend/src/lib/config/env.ts@@ -293,8 +293,11 @@ const envSchema = z.transform((val) => val === "true" || IS_PACKAGED).optional(),// WARNING: Infisical-managed only. Do not set on self-hosted deployments.- // When true, enables full PostHog telemetry including user PII (emails, usernames)- // sent to Infisical's cloud PostHog project. Used for Cloud and dedicated cloud instances.+ // Controls Redis secret-operation counters and the TelemetryInstanceStats job:+ // when true these are skipped (cloud does not need self-hosted-style stats).+ // Note: all instances with TELEMETRY_ENABLED=true now send the full PostHog+ // event set including user PII (emails, usernames). Set TELEMETRY_ENABLED=false+ // to disable all PostHog telemetry on self-hosted.INFISICAL_CLOUD: zodStrBool.default("false"),MAINTENANCE_MODE: zodStrBool.default("false"),CAPTCHA_SECRET: zpStr(z.string().optional()),diff --git a/backend/src/server/routes/v3/signup-router.ts b/backend/src/server/routes/v3/signup-router.tsindex efa31814da..9480a80741 100644--- a/backend/src/server/routes/v3/signup-router.ts+++ b/backend/src/server/routes/v3/signup-router.ts@@ -224,7 +224,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {if (!userAgent) throw new Error("user agent header is required");const appCfg = getConfig();- const { user, accessToken, refreshToken } = await server.services.signup.completeAccountInvite({+ const { user, accessToken, refreshToken, organizationId } = await server.services.signup.completeAccountInvite({...req.body,ip: req.realIp,userAgent,@@ -244,6 +244,7 @@ export const registerSignupRouter = async (server: FastifyZodProvider) => {void server.services.telemetry.sendPostHogEvents({event: PostHogEventTypes.UserSignedUp,distinctId: user.username ?? "",+ ...(organizationId ? { organizationId } : {}),properties: {username: user.username,email: user.email ?? "",diff --git a/backend/src/services/auth/auth-signup-service.ts b/backend/src/services/auth/auth-signup-service.tsindex 5ec6146b09..613911c113 100644--- a/backend/src/services/auth/auth-signup-service.ts+++ b/backend/src/services/auth/auth-signup-service.ts@@ -466,7 +466,7 @@ export const authSignupServiceFactory = ({{ expiresIn: appCfg.JWT_SIGNUP_LIFETIME });- return { user: updateduser.info, accessToken, refreshToken };+ return { user: updateduser.info, accessToken, refreshToken, organizationId: orgMembership.scopeOrgId };};return {