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
Merge branch 'main' into SECRETS-528
Thiago Araujo da Silva68ff53ac3173
diff --cc backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.tsindex 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 identityKubernetesAuthServconst 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