Skip to content

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

Merge branch 'main' into SECRETS-528

Thiago Araujo da Silva68ff53ac3173
diff --cc backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
index e18ee185be,c575e9cc46..2c36ea6dff
--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts
@@@ -1837,18 -1779,12 +1811,23 @@@ export const identityKubernetesAuthServ
const revokedIdentityKubernetesAuth = await identityKubernetesAuthDAL.transaction(async (tx) => {
const deletedKubernetesAuth = await identityKubernetesAuthDAL.delete({ identityId }, tx);
await identityAccessTokenDAL.delete({ identityId, authMethod: IdentityAuthMethod.KUBERNETES_AUTH }, tx);
+ await emitIdentityAuthMethodChanged(
+ eventEmitter,
+ {
+ membership: identityMembershipOrg,
+ authMethod: IdentityAuthMethod.KUBERNETES_AUTH,
+ change: IdentityAuthMethodChange.Removed,
+ actor,
+ actorId
+ },
+ tx
+ );
- return { ...deletedKubernetesAuth?.[0], orgId: identityMembershipOrg.scopeOrgId };
+ return {
+ ...deletedKubernetesAuth?.[0],
+ orgId: identityMembershipOrg.scopeOrgId,
+ // the row's own gatewayId is the retired v1 column; the API field reports gatewayV2Id
+ gatewayId: deletedKubernetesAuth?.[0]?.gatewayV2Id
+ };
});
// Detaching the auth method must invalidate any tokens already issued