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
fix: fail k8s auth update when pool has no healthy gateways
bernie-g38abad1eb089
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 db16d511c5..44618820a0 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@@ -1182,15 +1182,8 @@ export const identityKubernetesAuthServiceFactory = ({// Resolve the gateway ID to validate through (either direct or from pool)let validationGatewayId: string | null = effectiveGatewayId ?? null;if (!validationGatewayId && effectiveGatewayPoolId) {- try {- const picked = await gatewayPoolService.pickRandomHealthyGateway(effectiveGatewayPoolId);- validationGatewayId = picked.id;- } catch {- logger.warn(- { gatewayPoolId: effectiveGatewayPoolId },- "No healthy gateways in pool, skipping connectivity validation for k8s auth update"- );- }+ const picked = await gatewayPoolService.pickRandomHealthyGateway(effectiveGatewayPoolId);+ validationGatewayId = picked.id;}if (validationGatewayId) {