Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove cross tenant info

Thiago Araujo da Silvaf9efea535b82
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 7461aaa08a..50a379db32 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -3760,7 +3760,6 @@ interface SelectOrganizationRefusedEvent {
metadata: {
organizationId: string;
organizationName: string;
- issuingOrganizationId: string;
};
}
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts
index 7472e9368c..e1b6e01dad 100644
--- a/backend/src/services/auth/auth-login-service.ts
+++ b/backend/src/services/auth/auth-login-service.ts
@@ -1265,11 +1265,7 @@ export const authLoginServiceFactory = ({
})
.catch(async (error: unknown) => {
// getOrgPermission enforces SSO, so it is what refuses a session another org's IdP issued.
- if (
- error instanceof ForbiddenRequestError &&
- error.name === FOREIGN_SSO_SESSION_ERROR_NAME &&
- issuingRootOrgId
- ) {
+ if (error instanceof ForbiddenRequestError && error.name === FOREIGN_SSO_SESSION_ERROR_NAME) {
await auditLogService.createAuditLog({
orgId: organizationId,
ipAddress,
@@ -1288,8 +1284,7 @@ export const authLoginServiceFactory = ({
type: EventType.SELECT_ORGANIZATION_REFUSED,
metadata: {
organizationId,
- organizationName: selectedOrg.name,
- issuingOrganizationId: issuingRootOrgId
+ organizationName: selectedOrg.name
}
}
});