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
improvement: address feedback
Scott Wilsonf551e40ec885
diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.tsindex 43ac1ed43a..0f1b5c9466 100644--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts@@ -1136,6 +1136,10 @@ export const identityKubernetesAuthServiceFactory = ({let { kubernetesHost, caCert, verifyTlsCertificate, tokenReviewerJwt, allowedAudience, gatewayId, gatewayPoolId } =dto;let { tokenReviewMode } = dto;+ // "" (the schema trims) matches neither persistence branch below, so the stored JWT+ // survives it; it must read as "no change" everywhere else too, or it would slip past+ // the template-JWT host-change guard while the stored credential stays live+ if (tokenReviewerJwt === "") tokenReviewerJwt = undefined;const identityMembershipOrg = await membershipIdentityDAL.getIdentityById({scopeData: {scope: AccessScope.Organization,