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 comments - rename GatewayCreated to GatewayCertExchanged, remove SAML update guard
Devin AId2c6829a2cbc
diff --git a/backend/src/ee/routes/v1/gateway-router.ts b/backend/src/ee/routes/v1/gateway-router.tsindex 45ce2fb5a4..82ec70023e 100644--- a/backend/src/ee/routes/v1/gateway-router.ts+++ b/backend/src/ee/routes/v1/gateway-router.ts@@ -84,7 +84,7 @@ export const registerGatewayRouter = async (server: FastifyZodProvider) => {void server.services.telemetry.sendPostHogEvents({- event: PostHogEventTypes.GatewayCreated,+ event: PostHogEventTypes.GatewayCertExchanged,distinctId: getTelemetryDistinctId(req),organizationId: req.permission.orgId,properties: {diff --git a/backend/src/ee/routes/v1/saml-router.ts b/backend/src/ee/routes/v1/saml-router.tsindex 10eb8f10a2..0f0be11d1c 100644--- a/backend/src/ee/routes/v1/saml-router.ts+++ b/backend/src/ee/routes/v1/saml-router.ts@@ -448,19 +448,17 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {orgId: req.body.organizationId});- if (authProvider) {- void server.services.telemetry- .sendPostHogEvents({- event: PostHogEventTypes.SSOConfigured,- distinctId: getTelemetryDistinctId(req),- organizationId: req.body.organizationId,- properties: {- provider: authProvider,- action: "update"- }- })- .catch(() => {});- }+ void server.services.telemetry+ .sendPostHogEvents({+ event: PostHogEventTypes.SSOConfigured,+ distinctId: getTelemetryDistinctId(req),+ organizationId: req.body.organizationId,+ properties: {+ provider: authProvider ?? "saml",+ action: "update"+ }+ })+ .catch(() => {});return samlCfg;}diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.tsindex 9c2c546f0a..82fc5250a5 100644--- a/backend/src/services/telemetry/telemetry-types.ts+++ b/backend/src/services/telemetry/telemetry-types.ts@@ -73,7 +73,7 @@ export enum PostHogEventTypes {SecretRotationV2Created = "Secret Rotation V2 Created",SecretRotationV2Deleted = "Secret Rotation V2 Deleted",SecretRotationV2Executed = "Secret Rotation V2 Executed",- GatewayCreated = "Gateway Created"+ GatewayCertExchanged = "Gateway Cert Exchanged"}export type TSecretModifiedEvent = {@@ -605,8 +605,8 @@ export type TSecretRotationV2ExecutedEvent = {};};-export type TGatewayCreatedEvent = {- event: PostHogEventTypes.GatewayCreated;+export type TGatewayCertExchangedEvent = {+ event: PostHogEventTypes.GatewayCertExchanged;properties: {certificateSerialNumber: string;identityId: string;@@ -663,5 +663,5 @@ export type TPostHogEvent = { distinctId: string; organizationId?: string; organ| TSecretRotationV2CreatedEvent| TSecretRotationV2DeletedEvent| TSecretRotationV2ExecutedEvent- | TGatewayCreatedEvent+ | TGatewayCertExchangedEvent);