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-g4f3b19c8850b
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 161203465d..60e4ecbd98 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@@ -1179,22 +1179,10 @@ export const identityKubernetesAuthServiceFactory = ({effectiveCaCert = undefined;}- // Resolve the gateway ID to validate through (either direct or from pool).- // If the pool has no healthy gateways right now, skip validation — the user- // should still be able to edit unrelated fields (TTL, audiences, etc.) while- // the pool recovers. Attach-time still validates, so the config was known- // healthy when it was first created.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) {diff --git a/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx b/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsxindex 0d9b78a293..b54ee7c4ec 100644--- a/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx+++ b/frontend/src/components/v3/platform/GatewayPicker/GatewayPicker.tsx@@ -128,10 +128,7 @@ export const GatewayPicker = ({ value, onChange, isDisabled, className }: Props){v2Gateways.map((gw) => (<SelectItem value={`gateway:${gw.id}`} key={`gw-${gw.id}`}><div className="flex min-w-0 items-center gap-2">- <FontAwesomeIcon- icon={faServer}- className="size-3.5 shrink-0 text-mineshaft-400"- />+ <FontAwesomeIcon icon={faServer} className="size-3.5 shrink-0 text-mineshaft-400" /><span className="truncate">{gw.name}</span><spanclassName={`shrink-0 text-xs ${isOnline(gw) ? "text-green-500" : "text-red-400"}`}