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
refactor(identity-kubernetes-auth): clean up validation comments in auth service
Victor Santos3149c2df8ace
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 ac74af385d..140dab675b 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@@ -869,14 +869,12 @@ export const identityKubernetesAuthServiceFactory = ({const gatewayIdValue = isGatewayV1 ? gatewayId : null;const gatewayV2IdValue = isGatewayV1 ? null : gatewayId;- // Determine the effective values for validationconst effectiveTokenReviewMode = tokenReviewMode ?? identityKubernetesAuth.tokenReviewMode;const effectiveKubernetesHost =kubernetesHost !== undefined ? kubernetesHost : identityKubernetesAuth.kubernetesHost;const effectiveGatewayId =gatewayId !== undefined ? gatewayId : (identityKubernetesAuth.gatewayId ?? identityKubernetesAuth.gatewayV2Id);- // Validate Kubernetes host connectivity if host is being updated (only for API mode without gateway)if (kubernetesHost &&effectiveTokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api &&@@ -889,7 +887,6 @@ export const identityKubernetesAuthServiceFactory = ({});}- // Validate token reviewer JWT permissions if token is being updated (only for API mode without gateway)if (tokenReviewerJwt &&effectiveKubernetesHost &&