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: remove duplicated organizationId from SecretShared and SharedSecretViewed properties
Devin AI57d8c35bbc1d
diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.tsindex c76cf12f9e..7d7b31dee9 100644--- a/backend/src/server/routes/v1/secret-sharing-router.ts+++ b/backend/src/server/routes/v1/secret-sharing-router.ts@@ -166,7 +166,6 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>distinctId: req.permission?.id ? getTelemetryDistinctId(req) : `anonymous-${req.params.id}`,organizationId: sharedSecret.orgId ?? undefined,properties: {- organizationId: sharedSecret.orgId ?? undefined,sharedSecretId: req.params.id,accessType: sharedSecret.accessType as SecretSharingAccessType}@@ -341,7 +340,6 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>distinctId: getTelemetryDistinctId(req),organizationId: req.permission.orgId,properties: {- organizationId: req.permission.orgId,accessType: req.body.accessType,expiresAt: sharedSecret.expiresAt.toISOString(),hasPassword: !!req.body.passworddiff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.tsindex 298c905430..f602929197 100644--- a/backend/src/services/telemetry/telemetry-types.ts+++ b/backend/src/services/telemetry/telemetry-types.ts@@ -407,7 +407,6 @@ export type TSecretImportCreatedEvent = {export type TSecretSharedEvent = {event: PostHogEventTypes.SecretShared;properties: {- organizationId?: string;accessType: SecretSharingAccessType;expiresAt: string;hasPassword: boolean;@@ -417,7 +416,6 @@ export type TSecretSharedEvent = {export type TSharedSecretViewedEvent = {event: PostHogEventTypes.SharedSecretViewed;properties: {- organizationId?: string;sharedSecretId: string;accessType: SecretSharingAccessType;};