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 review comments - add organizationId to rotation events, remove redundant orgId, rename gatewayId
Devin AI2da6f50302d3
diff --git a/backend/src/ee/routes/v1/gateway-router.ts b/backend/src/ee/routes/v1/gateway-router.tsindex f20ade6c96..45ce2fb5a4 100644--- a/backend/src/ee/routes/v1/gateway-router.ts+++ b/backend/src/ee/routes/v1/gateway-router.ts@@ -88,9 +88,8 @@ export const registerGatewayRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.permission.orgId,properties: {- gatewayId: gatewayCertificates.serialNumber,- identityId: req.permission.id,- orgId: req.permission.orgId+ certificateSerialNumber: gatewayCertificates.serialNumber,+ identityId: req.permission.id}}).catch(() => {});diff --git a/backend/src/ee/routes/v1/ldap-router.ts b/backend/src/ee/routes/v1/ldap-router.tsindex 46bb3089bf..4032c3f532 100644--- a/backend/src/ee/routes/v1/ldap-router.ts+++ b/backend/src/ee/routes/v1/ldap-router.ts@@ -230,7 +230,6 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: "ldap",action: "create"}@@ -292,7 +291,6 @@ export const registerLdapRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: "ldap",action: "update"}diff --git a/backend/src/ee/routes/v1/oidc-router.ts b/backend/src/ee/routes/v1/oidc-router.tsindex f900a61bf4..36f88a5046 100644--- a/backend/src/ee/routes/v1/oidc-router.ts+++ b/backend/src/ee/routes/v1/oidc-router.ts@@ -286,7 +286,6 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: "oidc",action: "update"}@@ -424,7 +423,6 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: "oidc",action: "create"}diff --git a/backend/src/ee/routes/v1/saml-router.ts b/backend/src/ee/routes/v1/saml-router.tsindex 140250c2e2..10eb8f10a2 100644--- a/backend/src/ee/routes/v1/saml-router.ts+++ b/backend/src/ee/routes/v1/saml-router.ts@@ -389,7 +389,6 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: authProvider,action: "create"}@@ -456,7 +455,6 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {distinctId: getTelemetryDistinctId(req),organizationId: req.body.organizationId,properties: {- orgId: req.body.organizationId,provider: authProvider,action: "update"}diff --git a/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-endpoints.ts b/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-endpoints.tsindex 252513e453..eb7560ae97 100644--- a/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-endpoints.ts+++ b/backend/src/ee/routes/v2/secret-rotation-v2-routers/secret-rotation-v2-endpoints.ts@@ -262,6 +262,7 @@ export const registerSecretRotationEndpoints = <.sendPostHogEvents({event: PostHogEventTypes.SecretRotationV2Created,distinctId: getTelemetryDistinctId(req),+ organizationId: req.permission.orgId,properties: {rotationId: secretRotation.id,type,@@ -379,6 +380,7 @@ export const registerSecretRotationEndpoints = <.sendPostHogEvents({event: PostHogEventTypes.SecretRotationV2Deleted,distinctId: getTelemetryDistinctId(req),+ organizationId: req.permission.orgId,properties: {rotationId,type,@@ -482,6 +484,7 @@ export const registerSecretRotationEndpoints = <.sendPostHogEvents({event: PostHogEventTypes.SecretRotationV2Executed,distinctId: getTelemetryDistinctId(req),+ organizationId: req.permission.orgId,properties: {rotationId,type,diff --git a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.tsindex 18bb5fd917..e8e3e7c99e 100644--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts@@ -331,8 +331,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I extenproperties: {appConnectionId: appConnection.id,app,- method: method as string,- orgId: req.permission.orgId+ method: method as string}}).catch(() => {});@@ -454,8 +453,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I extenorganizationId: req.permission.orgId,properties: {appConnectionId: connectionId,- app,- orgId: req.permission.orgId+ app}}).catch(() => {});diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.tsindex d56b5ddad7..9c2c546f0a 100644--- a/backend/src/services/telemetry/telemetry-types.ts+++ b/backend/src/services/telemetry/telemetry-types.ts@@ -554,7 +554,6 @@ export type TDynamicSecretLeaseRenewedEvent = {export type TSSOConfiguredEvent = {event: PostHogEventTypes.SSOConfigured;properties: {- orgId: string;provider: string;action: "create" | "update";};@@ -566,7 +565,6 @@ export type TAppConnectionCreatedEvent = {appConnectionId: string;app: string;method: string;- orgId: string;};};@@ -575,7 +573,6 @@ export type TAppConnectionDeletedEvent = {properties: {appConnectionId: string;app: string;- orgId: string;};};@@ -611,9 +608,8 @@ export type TSecretRotationV2ExecutedEvent = {export type TGatewayCreatedEvent = {event: PostHogEventTypes.GatewayCreated;properties: {- gatewayId: string;+ certificateSerialNumber: string;identityId: string;- orgId: string;};};