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(gateways): apply direct listen to every deploy path
bernie-g47732f4fd5bf
diff --git a/backend/src/ee/routes/v1/gateway-pool-router.ts b/backend/src/ee/routes/v1/gateway-pool-router.tsindex 3c411aca22..650b4c2888 100644--- a/backend/src/ee/routes/v1/gateway-pool-router.ts+++ b/backend/src/ee/routes/v1/gateway-pool-router.ts@@ -18,6 +18,7 @@ const SanitizedGatewayPoolSchema = GatewayPoolsSchema.pick({const SanitizedPoolMemberSchema = GatewaysV2Schema.pick({id: true,name: true,+ relayId: true,heartbeat: true,heartbeatTTL: true,directAddress: true,diff --git a/backend/src/ee/routes/v2/gateway-router.ts b/backend/src/ee/routes/v2/gateway-router.tsindex fc03ff2bf6..68d1858ad1 100644--- a/backend/src/ee/routes/v2/gateway-router.ts+++ b/backend/src/ee/routes/v2/gateway-router.ts@@ -2,6 +2,7 @@ import z from "zod";import { GatewaysV2Schema } from "@app/db/schemas";import { EventType } from "@app/ee/services/audit-log/audit-log-types";+import { gatewayTransports } from "@app/ee/services/gateway-v2/gateway-v2-constants";import { GATEWAYS } from "@app/lib/api-docs";import { zodBuffer } from "@app/lib/zod";import { gatewayMetricsReportLimit, readLimit, writeLimit } from "@app/server/config/rateLimiter";@@ -9,15 +10,6 @@ import { slugSchema } from "@app/server/lib/schemas";import { verifyAuth } from "@app/server/plugins/auth/verify-auth";import { AuthMode } from "@app/services/auth/auth-type";-// Derived from what was actually issued rather than what was asked for, so the log records the-// transports the gateway ended up with.-const gatewayTransports = ({ directAddress, relayHost }: { directAddress?: string; relayHost?: string }) => {- const transports: ("direct" | "relay")[] = [];- if (directAddress) transports.push("direct");- if (relayHost) transports.push("relay");- return transports;-};-const SanitizedGatewayV2Schema = GatewaysV2Schema.pick({id: true,identityId: true,diff --git a/backend/src/ee/routes/v3/gateway-router.ts b/backend/src/ee/routes/v3/gateway-router.tsindex 3fa0f61d10..a4d7d1d6fb 100644--- a/backend/src/ee/routes/v3/gateway-router.ts+++ b/backend/src/ee/routes/v3/gateway-router.ts@@ -2,6 +2,7 @@ import z from "zod";import { GatewaysV2Schema } from "@app/db/schemas";import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";+import { gatewayTransports } from "@app/ee/services/gateway-v2/gateway-v2-constants";import { validateAccountIds, validatePrincipalArns } from "@app/ee/services/resource-auth-method/aws-auth-validators";import {validateAllowedNames,@@ -754,19 +755,17 @@ export const registerGatewayV3Router = async (server: FastifyZodProvider) => {});// A gateway can change its own transports here, including pointing the platform at a new- // address to dial, so every connect is recorded whether or not anything changed.- const transports: ("direct" | "relay")[] = [];- if (connected.directAddress) transports.push("direct");- if (connected.relayHost) transports.push("relay");-+ // address to dial, so every connect is recorded whether or not anything changed. Spreading+ // auditLogInfo keeps the source IP and user agent on an event that repoints where the+ // platform dials, and reuses the GATEWAY actor the audit plugin already resolved.await server.services.auditLog.createAuditLog({+ ...req.auditLogInfo,orgId: req.permission.orgId,- actor: { type: ActorType.GATEWAY, metadata: { gatewayId: connected.gatewayId } },event: {type: EventType.GATEWAY_ENROLL,metadata: {gatewayId: connected.gatewayId,- transports,+ transports: gatewayTransports(connected),directAddress: connected.directAddress,relayName: req.body.relayName}diff --git a/backend/src/ee/services/gateway-pool/gateway-pool-dal.ts b/backend/src/ee/services/gateway-pool/gateway-pool-dal.tsindex bb7a91ed9a..b00a822a17 100644--- a/backend/src/ee/services/gateway-pool/gateway-pool-dal.ts+++ b/backend/src/ee/services/gateway-pool/gateway-pool-dal.ts@@ -69,6 +69,7 @@ export const gatewayPoolDalFactory = (db: TDbClient) => {.select(`${TableName.GatewayV2}.id`,`${TableName.GatewayV2}.name`,+ `${TableName.GatewayV2}.relayId`,`${TableName.GatewayV2}.heartbeat`,`${TableName.GatewayV2}.heartbeatTTL`,`${TableName.GatewayV2}.directAddress`,diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-constants.ts b/backend/src/ee/services/gateway-v2/gateway-v2-constants.tsindex 5d8e1ee6a3..b1a5e33d02 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-constants.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-constants.ts@@ -73,3 +73,64 @@ export const resolveTransports = ({// fail here rather than dial with no credentials.return { useDirect, useRelay, hasTransport: useDirect || useRelay };};++// Derived from what was actually issued rather than what was asked for, so an audit log records the+// transports the gateway ended up with.+export const gatewayTransports = ({+ directAddress,+ relayHost+}: {+ directAddress?: string;+ relayHost?: string;+}): TGatewayTransport[] => {+ const transports: TGatewayTransport[] = [];+ if (directAddress) transports.push("direct");+ if (relayHost) transports.push("relay");+ return transports;+};++// Which transports a PAM client is given, from what the gateway has and what the client says it can+// dial. Extracted alongside resolveTransports so the matrix is testable without KMS or the relay+// service. `supportedTransports` undefined means the platform is dialling on the client's behalf+// (browser access) and any transport is fine; an empty array is an older CLI that only knows relays.+export const resolveClientTransports = ({+ gateway,+ supportedTransports+}: {+ gateway: {+ directAddress?: string | null;+ relayId?: string | null;+ directHeartbeat?: Date | null;+ heartbeatTTL?: number | null;+ };+ supportedTransports?: TGatewayTransport[];+}) => {+ const clientAllowsDirect = supportedTransports === undefined || supportedTransports.includes("direct");+ const allowRelay =+ supportedTransports === undefined || supportedTransports.length === 0 || supportedTransports.includes("relay");++ // A stale direct probe means the platform could not reach the address, so handing it out makes+ // every session pay the direct handshake timeout before falling back. Skipped only when the relay+ // can actually take over; otherwise it is the client's only path and a stale probe beats not+ // trying. Same rule resolveTransports applies to platform-side dials.+ const canFallBackToRelay = allowRelay && Boolean(gateway.relayId);+ const allowDirect =+ clientAllowsDirect &&+ (!canFallBackToRelay ||+ isTransportHealthy({ probedAt: gateway.directHeartbeat, heartbeatTTL: gateway.heartbeatTTL }));++ const useDirect = allowDirect && Boolean(gateway.directAddress);+ const useRelay = allowRelay && Boolean(gateway.relayId);++ return {+ allowDirect,+ allowRelay,+ useDirect,+ useRelay,+ hasTransport: useDirect || useRelay,+ // Separates "your client is too old for this gateway" from "this gateway has nothing to dial",+ // so the caller can tell the user which one it is.+ isDirectOnlyForOlderClient: Boolean(gateway.directAddress) && !gateway.relayId && !clientAllowsDirect,+ gatewayHasTransport: Boolean(gateway.directAddress || gateway.relayId)+ };+};diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts b/backend/src/ee/services/gateway-v2/gateway-v2-service.tsindex de0ee2ea2e..aa2c77578c 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-service.ts@@ -47,6 +47,7 @@ import {GATEWAY_ACTOR_OID,GATEWAY_ROUTING_INFO_OID,PAM_INFO_OID,+ resolveClientTransports,resolveTransports} from "./gateway-v2-constants";import { TGatewayV2DALFactory } from "./gateway-v2-dal";@@ -552,18 +553,17 @@ export const gatewayV2ServiceFactory = ({throw new NotFoundError({ message: `Gateway Config for org ${gateway.orgId} not found.` });}- const allowDirect = supportedTransports === undefined || supportedTransports.includes("direct");- const allowRelay =- supportedTransports === undefined || supportedTransports.length === 0 || supportedTransports.includes("relay");- if (gateway.directAddress && !gateway.relayId && !allowDirect) {+ const { allowDirect, allowRelay, hasTransport, isDirectOnlyForOlderClient, gatewayHasTransport } =+ resolveClientTransports({ gateway, supportedTransports });++ if (isDirectOnlyForOlderClient) {throw new BadRequestError({message: "This gateway only supports direct connections. Upgrade the Infisical CLI to connect to it."});}- if ((!gateway.directAddress || !allowDirect) && (!gateway.relayId || !allowRelay)) {- const hasTransport = Boolean(gateway.directAddress || gateway.relayId);+ if (!hasTransport) {throw new BadRequestError({- message: hasTransport+ message: gatewayHasTransport? "This gateway's connection transports are not supported by your client. Upgrade the Infisical CLI to connect to it.": "Gateway has no configured connection transport"});@@ -850,6 +850,11 @@ export const gatewayV2ServiceFactory = ({throw new NotFoundError({ message: "No connection transport associated with this gateway" });}+ // The gateway declares its full transport set on every call, so an omitted transport is+ // removed rather than left behind. That is what makes dropping one work, and it is also+ // correct for a rolled-back CLI: a binary without --listen-address is not listening, so the+ // row should stop advertising an address nothing answers on. Each probe survives only while+ // its transport is unchanged, since a new address or relay has not been reached yet.const registeredGateway = await gatewayV2DAL.updateById(gateway.id, {directAddress: directAddress ?? null,directHeartbeat: directAddress === gateway.directAddress ? gateway.directHeartbeat : null,@@ -1026,6 +1031,19 @@ export const gatewayV2ServiceFactory = ({}const results = await Promise.allSettled(transports.map((transport) => $checkGatewayHealth(gatewayId, transport)));++ // A gateway stays reachable while one transport answers, so a single failure raises nothing and+ // the UI keeps reporting it healthy. Log each one, otherwise a broken direct address on an+ // otherwise-working gateway is invisible until someone notices sessions are slow to start.+ results.forEach((result, index) => {+ if (result.status !== "rejected") return;+ const err = result.reason instanceof Error ? result.reason : new Error(String(result.reason));+ logger.warn(+ { gatewayId, transport: transports[index], err },+ `Gateway ${gatewayId} health probe failed on its ${transports[index]} transport`+ );+ });+if (results.every((result) => result.status === "rejected")) {await gatewayV2DAL.updateById(gatewayId, { heartbeatTTL: 0 });const failure = results.find((result): result is PromiseRejectedResult => result.status === "rejected");@@ -1448,6 +1466,11 @@ export const gatewayV2ServiceFactory = ({throw new NotFoundError({ message: "No connection transport associated with this gateway" });}+ // The gateway declares its full transport set on every call, so an omitted transport is+ // removed rather than left behind. That is what makes dropping one work, and it is also+ // correct for a rolled-back CLI: a binary without --listen-address is not listening, so the+ // row should stop advertising an address nothing answers on. Each probe survives only while+ // its transport is unchanged, since a new address or relay has not been reached yet.const registeredGateway = await gatewayV2DAL.updateById(gateway.id, {directAddress: directAddress ?? null,directHeartbeat: directAddress === gateway.directAddress ? gateway.directHeartbeat : null,diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-transport.test.ts b/backend/src/ee/services/gateway-v2/gateway-v2-transport.test.tsindex e0eade8598..b1b809c657 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-transport.test.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-transport.test.ts@@ -1,4 +1,9 @@-import { HEARTBEAT_BUFFER_SECONDS, isTransportHealthy, resolveTransports } from "./gateway-v2-constants";+import {+ HEARTBEAT_BUFFER_SECONDS,+ isTransportHealthy,+ resolveClientTransports,+ resolveTransports+} from "./gateway-v2-constants";const secondsAgo = (seconds: number) => new Date(Date.now() - seconds * 1000);const TTL = 180;@@ -109,9 +114,10 @@ describe("resolveTransports", () => {});test("asking for direct on a relay-only gateway leaves nothing to dial", () => {- expect(- resolveTransports({ gateway: { ...relay, directHeartbeat: null }, transport: "direct" })- ).toMatchObject({ useDirect: false, hasTransport: false });+ expect(resolveTransports({ gateway: { ...relay, directHeartbeat: null }, transport: "direct" })).toMatchObject({+ useDirect: false,+ hasTransport: false+ });});});@@ -123,3 +129,72 @@ describe("resolveTransports", () => {});});});++describe("resolveClientTransports", () => {+ const direct = { directAddress: "gw.internal:8443", relayId: null, heartbeatTTL: TTL };+ const relay = { directAddress: null, relayId: "relay-1", heartbeatTTL: TTL };+ const dual = { directAddress: "gw.internal:8443", relayId: "relay-1", heartbeatTTL: TTL };++ test("browser access omits the list and takes whatever the gateway has", () => {+ expect(resolveClientTransports({ gateway: { ...dual, directHeartbeat: fresh } })).toMatchObject({+ useDirect: true,+ useRelay: true+ });+ });++ // The bug this covers: direct was handed out on client capability alone, so a dual gateway with a+ // dead direct address made every session pay the direct handshake timeout before falling back.+ test("a stale direct probe is skipped when the relay can take over", () => {+ expect(+ resolveClientTransports({+ gateway: { ...dual, directHeartbeat: stale },+ supportedTransports: ["direct", "relay"]+ })+ ).toMatchObject({ useDirect: false, useRelay: true, hasTransport: true });+ });++ test("a stale direct probe is still used when it is the only path the client has", () => {+ expect(+ resolveClientTransports({ gateway: { ...direct, directHeartbeat: stale }, supportedTransports: ["direct"] })+ ).toMatchObject({ useDirect: true, useRelay: false, hasTransport: true });+ });++ test("a stale direct probe is still used when the client cannot dial the relay", () => {+ expect(+ resolveClientTransports({ gateway: { ...dual, directHeartbeat: stale }, supportedTransports: ["direct"] })+ ).toMatchObject({ useDirect: true, useRelay: false, hasTransport: true });+ });++ test("an empty list is an older CLI, which gets the relay and never the direct address", () => {+ expect(+ resolveClientTransports({ gateway: { ...dual, directHeartbeat: fresh }, supportedTransports: [] })+ ).toMatchObject({ useDirect: false, useRelay: true, hasTransport: true });+ });++ test("an older CLI against a direct-only gateway is told to upgrade rather than given nothing", () => {+ expect(+ resolveClientTransports({ gateway: { ...direct, directHeartbeat: fresh }, supportedTransports: [] })+ ).toMatchObject({ hasTransport: false, isDirectOnlyForOlderClient: true, gatewayHasTransport: true });+ });++ test("a relay-only gateway serves an older CLI", () => {+ expect(+ resolveClientTransports({ gateway: { ...relay, directHeartbeat: null }, supportedTransports: [] })+ ).toMatchObject({ useDirect: false, useRelay: true, isDirectOnlyForOlderClient: false });+ });++ test("a gateway with no transport is reported as such, not as a client problem", () => {+ expect(+ resolveClientTransports({+ gateway: { directAddress: null, relayId: null, directHeartbeat: null, heartbeatTTL: TTL }+ })+ ).toMatchObject({ hasTransport: false, gatewayHasTransport: false, isDirectOnlyForOlderClient: false });+ });++ test("the TTL kill switch drops a dual gateway to its relay", () => {+ expect(resolveClientTransports({ gateway: { ...dual, directHeartbeat: fresh, heartbeatTTL: 0 } })).toMatchObject({+ useDirect: false,+ useRelay: true+ });+ });+});diff --git a/docs/self-hosting/helm-charts/gateway.mdx b/docs/self-hosting/helm-charts/gateway.mdxindex 8da93c2879..362cc6c93a 100644--- a/docs/self-hosting/helm-charts/gateway.mdx+++ b/docs/self-hosting/helm-charts/gateway.mdx@@ -124,7 +124,7 @@ helm uninstall infisical-gateway --namespace infisical-gateway| `extraArgs` | `[]` | Extra arguments appended to the gateway container command. || `extraObjects` | `[]` | Extra Kubernetes manifests to deploy with this chart. || `service.type` | `ClusterIP` | Type of the Service created in direct listen mode. |-| `service.port` | `80` | Port the Service exposes. It forwards to the port in `gateway.listenAddress`, so the two don't have to match. |+| `service.port` | `""` | Port the Service exposes. Empty means the port from `gateway.listenAddress`. Set it only to put a different port in front of the gateway. |## Direct listen mode@@ -141,13 +141,12 @@ helm install infisical-gateway infisical-helm-charts/infisical-gateway \--create-namespace \--set gateway.name=<gateway-name> \--set gateway.listenAddress=infisical-gateway.infisical-gateway.svc.cluster.local:8443 \- --set service.port=8443 \--set gateway.enrollment.method=token \--set gateway.enrollment.token.value=<enrollment-token> \--set gateway.domain=<your-infisical-domain>```-The chart takes the container port from `gateway.listenAddress` and points the Service at it, so they can't drift apart. `service.port` is the port the Service itself exposes, which is why the example sets it to 8443 as well: the address you register has to name the port callers reach the Service on. A `host:port` value is required, and the chart fails the render if the port is missing.+The chart takes the container port from `gateway.listenAddress` and points the Service at it, and the Service exposes that same port, so none of the three can drift apart. A `host:port` value is required, and the chart fails the render if the port is missing. Set `service.port` only if you want the Service to answer on a different port than the gateway binds, in which case the address you register has to name the Service's port.The Service is created only in direct listen mode. In relay mode the gateway accepts no connections, so the chart creates none.@@ -214,6 +213,8 @@ gateway:relayName: ""# Stable host:port advertised by a gateway accepting direct connections.+ # Requires an image.tag whose CLI supports --listen-address; older images reject the flag and the+ # pod crash-loops on startup.listenAddress: ""pamSessionRecordingsDirectory: /var/lib/infisical/session_recordings@@ -266,7 +267,9 @@ tolerations: {}nodeSelector: {}service:type: ClusterIP- port: 80+ # Port the Service exposes. Empty means the port from gateway.listenAddress, which is the port+ # the platform dials. Only set this to put a different port in front of the gateway.+ port: ""ingress:enabled: falsediff --git a/frontend/src/hooks/api/gateway-pools/types.ts b/frontend/src/hooks/api/gateway-pools/types.tsindex 88fe5261ba..dafd48c03e 100644--- a/frontend/src/hooks/api/gateway-pools/types.ts+++ b/frontend/src/hooks/api/gateway-pools/types.ts@@ -45,6 +45,7 @@ export type TGatewayPoolConnectedResources = {export type TGatewayPoolMember = {id: string;name: string;+ relayId: string | null;heartbeat: string | null;heartbeatTTL: number | null;directAddress: string | null;diff --git a/frontend/src/hooks/api/gateways-v2/utils.ts b/frontend/src/hooks/api/gateways-v2/utils.tsindex e66f9d4717..6524a0151c 100644--- a/frontend/src/hooks/api/gateways-v2/utils.ts+++ b/frontend/src/hooks/api/gateways-v2/utils.ts@@ -2,6 +2,7 @@ export const HEARTBEAT_BUFFER_SECONDS = 30;export const isGatewayHealthy = (gateway: {heartbeat?: string | null;+ relayId: string | null;directAddress?: string | null;directHeartbeat?: string | null;heartbeatTTL?: number | null;@@ -14,10 +15,15 @@ export const isGatewayHealthy = (gateway: {((gateway.heartbeatTTL as number) + HEARTBEAT_BUFFER_SECONDS) * 1000 >Date.now();- // A gateway running both transports is reachable while either path is fresh, since the platform- // falls back to the relay when the direct address is down.- if (gateway.directAddress) return isFresh(gateway.directHeartbeat) || isFresh(gateway.heartbeat);- return isFresh(gateway.heartbeat);+ // Mirrors the backend's buildGatewayReachableSql. A gateway running both transports is reachable+ // while either path is fresh, since the platform falls back to the relay when the direct address+ // is down, and a transport counts only while it is still configured: deleting a relay nulls+ // relayId and leaves its last heartbeat behind, which would otherwise keep reporting a gateway+ // the platform can no longer dial as healthy.+ return (+ (Boolean(gateway.directAddress) && isFresh(gateway.directHeartbeat)) ||+ (Boolean(gateway.relayId) && isFresh(gateway.heartbeat))+ );};export const getLastSeenHeartbeat = (gateway: {diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayHealthStatus.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayHealthStatus.tsxindex 814a276761..f9ae1cd63f 100644--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayHealthStatus.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/GatewayHealthStatus.tsx@@ -28,7 +28,13 @@ export const GatewayHealthStatus = ({}const heartbeatDate = lastSeen ? new Date(lastSeen) : null;- const isHealthy = isGatewayHealthy({ heartbeat, directAddress, directHeartbeat, heartbeatTTL });+ const isHealthy = isGatewayHealthy({+ heartbeat,+ relayId: relayId ?? null,+ directAddress,+ directHeartbeat,+ heartbeatTTL+ });return (<Tooltip>diff --git a/helm-charts/infisical-gateway/templates/_helpers.tpl b/helm-charts/infisical-gateway/templates/_helpers.tplindex 8968a82909..f8718fcf55 100644--- a/helm-charts/infisical-gateway/templates/_helpers.tpl+++ b/helm-charts/infisical-gateway/templates/_helpers.tpl@@ -73,3 +73,16 @@ container port and the Service can never disagree with what the gateway actually{{- end -}}{{- $port -}}{{- end }}++{{/*+Port the Service exposes. Defaults to the port in gateway.listenAddress, because that address is+what the platform dials: a Service listening on anything else is unreachable at the registered+address. Set service.port only to put a different port in front of the gateway.+*/}}+{{- define "infisical-gateway.servicePort" -}}+{{- if .Values.service.port -}}+{{- .Values.service.port -}}+{{- else -}}+{{- include "infisical-gateway.listenPort" . -}}+{{- end -}}+{{- end }}diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yamlindex daea4d9872..b50ae3db4e 100644--- a/helm-charts/infisical-gateway/templates/deployment.yaml+++ b/helm-charts/infisical-gateway/templates/deployment.yaml@@ -163,6 +163,9 @@ spec:{{- if .Values.gateway.name }}- {{ .Values.gateway.name | quote }}{{- end }}+ {{- if .Values.gateway.listenAddress }}+ - --listen-address={{ .Values.gateway.listenAddress }}+ {{- end }}- --pam-session-recording-path={{ $sessionPath }}{{- with .Values.extraArgs }}{{- toYaml . | nindent 12 }}@@ -177,10 +180,12 @@ spec:env:{{- toYaml . | nindent 12 }}{{- end }}+ {{- if .Values.gateway.listenAddress }}ports:- name: http- containerPort: {{ .Values.service.port }}+ containerPort: {{ include "infisical-gateway.listenPort" . }}protocol: TCP+ {{- end }}volumeMounts:- name: infisical-cachemountPath: /var/lib/infisicaldiff --git a/helm-charts/infisical-gateway/templates/service.yaml b/helm-charts/infisical-gateway/templates/service.yamlindex b254ad3442..c21e6d71f3 100644--- a/helm-charts/infisical-gateway/templates/service.yaml+++ b/helm-charts/infisical-gateway/templates/service.yaml@@ -8,7 +8,7 @@ metadata:spec:type: {{ .Values.service.type }}ports:- - port: {{ .Values.service.port }}+ - port: {{ include "infisical-gateway.servicePort" . }}targetPort: {{ include "infisical-gateway.listenPort" . }}protocol: TCPname: httpdiff --git a/helm-charts/infisical-gateway/values.yaml b/helm-charts/infisical-gateway/values.yamlindex a105836108..770977bdff 100644--- a/helm-charts/infisical-gateway/values.yaml+++ b/helm-charts/infisical-gateway/values.yaml@@ -109,7 +109,9 @@ tolerations: {}nodeSelector: {}service:type: ClusterIP- port: 80+ # Port the Service exposes. Empty means the port from gateway.listenAddress, which is the port+ # the platform dials. Only set this to put a different port in front of the gateway.+ port: ""ingress:enabled: false