Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(gateways): let the UI configure and read dual transports

bernie-g59cbc58ed902
diff --git a/frontend/src/hooks/api/gateways-v2/utils.ts b/frontend/src/hooks/api/gateways-v2/utils.ts
index 6524a0151c..4b0d6dadd1 100644
--- a/frontend/src/hooks/api/gateways-v2/utils.ts
+++ b/frontend/src/hooks/api/gateways-v2/utils.ts
@@ -36,3 +36,47 @@ export const getLastSeenHeartbeat = (gateway: {
new Date(probe).getTime() > new Date(latest).getTime() ? probe : latest
);
};
+
+export type TGatewayTransportHealth = {
+ transport: "direct" | "relay";
+ label: string;
+ isHealthy: boolean;
+ probedAt: string | null;
+};
+
+// Per-transport health for a gateway running more than one. The aggregate badge is healthy while
+// either path answers, which is right for "can Infisical use this gateway" and useless for "which
+// path is broken", and a broken direct path is what makes sessions slow to start.
+export const getGatewayTransportHealth = (gateway: {
+ heartbeat?: string | null;
+ relayId?: string | null;
+ directAddress?: string | null;
+ directHeartbeat?: string | null;
+ heartbeatTTL?: number | null;
+}): TGatewayTransportHealth[] => {
+ const isFresh = (probedAt?: string | null) =>
+ Boolean(gateway.heartbeatTTL) &&
+ Boolean(probedAt) &&
+ new Date(probedAt as string).getTime() +
+ ((gateway.heartbeatTTL as number) + HEARTBEAT_BUFFER_SECONDS) * 1000 >
+ Date.now();
+
+ const transports: TGatewayTransportHealth[] = [];
+ if (gateway.directAddress) {
+ transports.push({
+ transport: "direct",
+ label: "Direct",
+ isHealthy: isFresh(gateway.directHeartbeat),
+ probedAt: gateway.directHeartbeat ?? null
+ });
+ }
+ if (gateway.relayId) {
+ transports.push({
+ transport: "relay",
+ label: "Relay",
+ isHealthy: isFresh(gateway.heartbeat),
+ probedAt: gateway.heartbeat ?? null
+ });
+ }
+ return transports;
+};
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
index d2685187e3..6e16d323cb 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/GatewayDetailsByIDPage.tsx
@@ -61,6 +61,7 @@ const Page = () => {
gatewayId={gatewayId}
gatewayName={gateway.name}
directAddress={gateway.directAddress}
+ relayId={gateway.relayId}
authMethod={gateway.authMethod}
/>
<GatewayConnectedResourcesSection gatewayId={gatewayId} />
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx
index f116c1b2ab..3d8a11c32b 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/AwsStartCommandDialog.tsx
@@ -17,15 +17,21 @@ type Props = {
gatewayId: string;
gatewayName: string;
isDirect: boolean;
+ includeRelay: boolean;
listenAddress: string;
};
const AUTO_RELAY_OPTION = { id: "_auto", name: "Auto Select Relay" };
+// Stands in until the listen address is filled in and valid, so a copied command never carries
+// an address the API would reject.
+const PLACEHOLDER_ADDRESS = "<gateway-address>:8443";
+
export const AwsStartCommandContent = ({
gatewayId,
gatewayName,
isDirect,
+ includeRelay,
listenAddress
}: Props) => {
const { protocol, hostname, port } = window.location;
@@ -35,21 +41,17 @@ export const AwsStartCommandContent = ({
const { data: relays, isPending: isRelaysLoading } = useGetRelays();
const [relay, setRelay] = useState<{ id: string; name: string }>(AUTO_RELAY_OPTION);
- const resolvedRelayName = isDirect || relay.id === "_auto" ? "" : relay.name;
+ const resolvedRelayName = !includeRelay || relay.id === "_auto" ? "" : relay.name;
const cliCommand = useMemo(() => {
const relayPart = resolvedRelayName ? ` --relay=${resolvedRelayName}` : "";
- const directPart = isDirect
- ? ` --listen-address=${listenAddress.trim() || "<gateway-address>:8443"}`
- : "";
+ const directPart = isDirect ? ` --listen-address=${listenAddress || PLACEHOLDER_ADDRESS}` : "";
return `infisical gateway start ${gatewayName} --enroll-method=aws --gateway-id=${gatewayId}${relayPart}${directPart} --domain=${siteURL}`;
}, [gatewayName, gatewayId, isDirect, listenAddress, resolvedRelayName, siteURL]);
const systemdInstallCommand = useMemo(() => {
const relayPart = resolvedRelayName ? ` --relay=${resolvedRelayName}` : "";
- const directPart = isDirect
- ? ` --listen-address=${listenAddress.trim() || "<gateway-address>:8443"}`
- : "";
+ const directPart = isDirect ? ` --listen-address=${listenAddress || PLACEHOLDER_ADDRESS}` : "";
return `sudo infisical gateway systemd install ${gatewayName} --enroll-method=aws --gateway-id=${gatewayId}${relayPart}${directPart} --domain=${siteURL}`;
}, [gatewayName, gatewayId, isDirect, listenAddress, resolvedRelayName, siteURL]);
@@ -64,7 +66,7 @@ export const AwsStartCommandContent = ({
<CodeBlock value={systemdInstallCommand} label="Install service" />
<CodeBlock value={startServiceCommand} label="Start service" />
</TabsContent>
- {!isDirect && (
+ {includeRelay && (
<Field>
<Select
value={relay.id}
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
index 499a42af00..58cfe030d9 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/EnrollmentTokenDialog.tsx
@@ -19,12 +19,17 @@ type Props = {
enrollmentToken: string;
expiresAt: string;
isDirect: boolean;
+ includeRelay: boolean;
listenAddress: string;
onCommandDirtyChange: (isDirty: boolean) => void;
};
const AUTO_RELAY_OPTION = { id: "_auto", name: "Auto Select Relay" };
+// Stands in until the listen address is filled in and valid, so a copied command never carries
+// an address the API would reject.
+const PLACEHOLDER_ADDRESS = "<gateway-address>:8443";
+
const formatTimeRemaining = (expiresAt: string, now: number) => {
const remainingSeconds = Math.max(0, Math.ceil((new Date(expiresAt).getTime() - now) / 1000));
if (remainingSeconds === 0) return "Expired";
@@ -43,6 +48,7 @@ export const EnrollmentTokenContent = ({
enrollmentToken,
expiresAt,
isDirect,
+ includeRelay,
listenAddress,
onCommandDirtyChange
}: Props) => {
@@ -66,29 +72,25 @@ export const EnrollmentTokenContent = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [enrollmentToken]);
- const isCommandDirty = !isDirect && relay.id !== commandRelay.id;
+ const isCommandDirty = includeRelay && relay.id !== commandRelay.id;
useEffect(() => {
onCommandDirtyChange(isCommandDirty);
}, [isCommandDirty, onCommandDirtyChange]);
- const resolvedRelayName = isDirect || commandRelay.id === "_auto" ? "" : commandRelay.name;
+ const resolvedRelayName = !includeRelay || commandRelay.id === "_auto" ? "" : commandRelay.name;
const expiryLabel = formatTimeRemaining(expiresAt, now);
const isExpired = expiryLabel === "Expired";
const cliCommand = useMemo(() => {
const relayPart = resolvedRelayName ? ` --relay=${resolvedRelayName}` : "";
- const directPart = isDirect
- ? ` --listen-address=${listenAddress.trim() || "<gateway-address>:8443"}`
- : "";
+ const directPart = isDirect ? ` --listen-address=${listenAddress || PLACEHOLDER_ADDRESS}` : "";
return `infisical gateway start ${gatewayName} --enroll-method=token --token=${enrollmentToken}${relayPart}${directPart} --domain=${siteURL}`;
}, [gatewayName, enrollmentToken, isDirect, listenAddress, resolvedRelayName, siteURL]);
const systemdInstallCommand = useMemo(() => {
const relayPart = resolvedRelayName ? ` --relay=${resolvedRelayName}` : "";
- const directPart = isDirect
- ? ` --listen-address=${listenAddress.trim() || "<gateway-address>:8443"}`
- : "";
+ const directPart = isDirect ? ` --listen-address=${listenAddress || PLACEHOLDER_ADDRESS}` : "";
return `sudo infisical gateway systemd install ${gatewayName} --enroll-method=token --token=${enrollmentToken}${relayPart}${directPart} --domain=${siteURL}`;
}, [gatewayName, enrollmentToken, isDirect, listenAddress, resolvedRelayName, siteURL]);
@@ -122,7 +124,7 @@ export const EnrollmentTokenContent = ({
/>
<CodeBlock value={startServiceCommand} label="Start service" />
</TabsContent>
- {!isDirect && (
+ {includeRelay && (
<Field>
<Select
value={relay.id}
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/KubernetesStartCommandDialog.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/KubernetesStartCommandDialog.tsx
index 60e124a80d..02b5d71487 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/KubernetesStartCommandDialog.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayAuthMethod/KubernetesStartCommandDialog.tsx
@@ -1,6 +1,10 @@
import { useMemo, useState } from "react";
+import { TriangleAlertIcon } from "lucide-react";
import {
+ Alert,
+ AlertDescription,
+ AlertTitle,
CodeBlock,
Field,
FieldDescription,
@@ -17,23 +21,21 @@ type Props = {
gatewayId: string;
gatewayName: string;
isDirect: boolean;
+ includeRelay: boolean;
listenAddress: string;
};
const AUTO_RELAY_OPTION = { id: "_auto", name: "Auto Select Relay" };
-const getListenPort = (address: string) => {
- try {
- return new URL(`tcp://${address}`).port || "8443";
- } catch {
- return "8443";
- }
-};
+// Stands in until the listen address is filled in and valid, so a copied command never carries
+// an address the API would reject.
+const PLACEHOLDER_ADDRESS = "<gateway-address>:8443";
export const KubernetesStartCommandContent = ({
gatewayId,
gatewayName,
isDirect,
+ includeRelay,
listenAddress
}: Props) => {
const { protocol, hostname, port } = window.location;
@@ -43,17 +45,13 @@ export const KubernetesStartCommandContent = ({
const { data: relays, isPending: isRelaysLoading } = useGetRelays();
const [relay, setRelay] = useState<{ id: string; name: string }>(AUTO_RELAY_OPTION);
- const resolvedRelayName = isDirect || relay.id === "_auto" ? "" : relay.name;
+ const resolvedRelayName = !includeRelay || relay.id === "_auto" ? "" : relay.name;
const helmCommand = useMemo(() => {
- const advertisedAddress = listenAddress.trim() || "<gateway-address>:8443";
+ // The chart derives the container port and the Service port from listenAddress, so setting
+ // service.port here would only re-derive the same value in a second place.
const directPart = isDirect
- ? [
- " \\",
- ` --set gateway.listenAddress=${advertisedAddress}`,
- " \\",
- ` --set service.port=${getListenPort(advertisedAddress)}`
- ].join("\n")
+ ? ` \\\n --set gateway.listenAddress=${listenAddress || PLACEHOLDER_ADDRESS}`
: "";
const relayPart = resolvedRelayName
? ` \\\n --set gateway.relayName=${resolvedRelayName}`
@@ -69,16 +67,26 @@ helm install infisical-gateway infisical/infisical-gateway \\
const cliCommand = useMemo(() => {
const relayPart = resolvedRelayName ? ` --relay=${resolvedRelayName}` : "";
- const directPart = isDirect
- ? ` --listen-address=${listenAddress.trim() || "<gateway-address>:8443"}`
- : "";
+ const directPart = isDirect ? ` --listen-address=${listenAddress || PLACEHOLDER_ADDRESS}` : "";
return `infisical gateway start ${gatewayName} --enroll-method=kubernetes --gateway-id=${gatewayId}${relayPart}${directPart} --domain=${siteURL}`;
}, [gatewayName, gatewayId, isDirect, listenAddress, resolvedRelayName, siteURL]);
return (
<div className="min-w-0 space-y-4">
- <TabsContent value="helm" className="mt-0 min-w-0">
+ <TabsContent value="helm" className="mt-0 min-w-0 space-y-3">
<CodeBlock value={helmCommand} label="Install chart" />
+ {isDirect && (
+ <Alert variant="warning" appearance="borderless">
+ <TriangleAlertIcon />
+ <AlertTitle>Check the chart&apos;s image tag before installing</AlertTitle>
+ <AlertDescription>
+ <code>gateway.listenAddress</code> needs a CLI image that supports{" "}
+ <code>--listen-address</code>. The chart&apos;s default tag predates the flag, so add{" "}
+ <code>--set image.tag=&lt;version&gt;</code> with a release that includes it.
+ Otherwise the pod crash-loops on <code>unknown flag: --listen-address</code>.
+ </AlertDescription>
+ </Alert>
+ )}
</TabsContent>
<TabsContent value="cli" className="mt-0 min-w-0">
<CodeBlock value={cliCommand} label="Container command" />
@@ -87,7 +95,7 @@ helm install infisical-gateway infisical/infisical-gateway \\
must be reachable from the pod, so a loopback address will not work.
</p>
</TabsContent>
- {!isDirect && (
+ {includeRelay && (
<Field>
<Select
value={relay.id}
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDeploySection/GatewayDeploySection.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDeploySection/GatewayDeploySection.tsx
index 1cc37f69a4..e24e2506a0 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDeploySection/GatewayDeploySection.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDeploySection/GatewayDeploySection.tsx
@@ -8,6 +8,7 @@ import {
AlertTitle,
Badge,
Button,
+ Checkbox,
Card,
CardAction,
CardContent,
@@ -67,6 +68,7 @@ type Props = {
gatewayId: string;
gatewayName: string;
directAddress?: string | null;
+ relayId?: string | null;
authMethod: GatewayAuthMethodView;
};
@@ -74,19 +76,29 @@ export const GatewayDeploySection = ({
gatewayId,
gatewayName,
directAddress,
+ relayId,
authMethod
}: Props) => {
const isCloud = isInfisicalCloud();
const isKubernetes = authMethod.method === "kubernetes";
// Relay unless the gateway already listens directly. Defaulting to direct on a gateway with no
// address yet would render a command carrying the placeholder address.
+ const isDirectGateway = !isCloud && Boolean(directAddress);
const [connectionMode, setConnectionMode] = useState<"relay" | "direct">(
- !isCloud && directAddress ? "direct" : "relay"
+ isDirectGateway ? "direct" : "relay"
);
+ // The relay is an add-on to direct listen rather than a competing transport: it extends reach to
+ // PAM CLI users off the network and covers the direct address going down. Pre-checked for a
+ // gateway already running both, so the command it renders matches how it is deployed.
+ const [withRelay, setWithRelay] = useState(isDirectGateway && Boolean(relayId));
+ const includeRelay = connectionMode === "relay" || withRelay;
const [listenAddress, setListenAddress] = useState(directAddress ?? "");
const trimmedListenAddress = listenAddress.trim();
const hasListenAddressError =
trimmedListenAddress.length > 0 && !isValidListenAddress(trimmedListenAddress);
+ // A malformed address must not reach a copyable command, where it would fail against the API
+ // rather than in the field the user can see.
+ const commandListenAddress = hasListenAddressError ? "" : trimmedListenAddress;
const [deploymentMethod, setDeploymentMethod] = useState("");
const [mintedEnrollment, setMintedEnrollment] = useState<
(TGatewayEnrollmentToken & { gatewayId: string }) | null
@@ -224,15 +236,52 @@ export const GatewayDeploySection = ({
</Field>
)}
+ {connectionMode === "direct" && (
+ <Field>
+ <div className="flex items-start gap-3">
+ <Checkbox
+ id="gateway-with-relay"
+ variant="org"
+ className="mt-0.5"
+ isChecked={withRelay}
+ onCheckedChange={(isChecked) => setWithRelay(isChecked === true)}
+ />
+ <FieldContent>
+ <FieldLabel htmlFor="gateway-with-relay" className="cursor-pointer">
+ Also connect through a relay
+ </FieldLabel>
+ <FieldDescription>
+ Infisical keeps using the direct address and falls back to the relay when it
+ stops answering. Add one to reach PAM CLI users outside this network.
+ </FieldDescription>
+ </FieldContent>
+ </div>
+ </Field>
+ )}
+
{connectionMode === "direct" && (
<Alert variant="info" appearance="borderless">
<InfoIcon />
- <AlertTitle>PAM CLI sessions dial this address directly</AlertTitle>
- <AlertDescription>
- The CLI connects from the user&apos;s own machine, not from Infisical, so that
- machine has to reach this address as well. Users outside this network need a VPN
- into it, or a relay on this gateway. Browser-based PAM access is unaffected.
- </AlertDescription>
+ {withRelay ? (
+ <>
+ <AlertTitle>PAM CLI sessions work from outside this network</AlertTitle>
+ <AlertDescription>
+ The CLI dials the gateway from the user&apos;s own machine. It tries this
+ address first and falls back to the relay, so users off this network can
+ still connect. Infisical itself keeps using the direct address.
+ </AlertDescription>
+ </>
+ ) : (
+ <>
+ <AlertTitle>PAM CLI sessions dial this address directly</AlertTitle>
+ <AlertDescription>
+ The CLI connects from the user&apos;s own machine, not from Infisical, so
+ that machine has to reach this address as well. Users outside this network
+ need a VPN into it, or the relay option above. Browser-based PAM access is
+ unaffected.
+ </AlertDescription>
+ </>
+ )}
</Alert>
)}
@@ -241,7 +290,8 @@ export const GatewayDeploySection = ({
gatewayId={gatewayId}
gatewayName={gatewayName}
isDirect={connectionMode === "direct"}
- listenAddress={listenAddress}
+ includeRelay={includeRelay}
+ listenAddress={commandListenAddress}
/>
)}
@@ -250,7 +300,8 @@ export const GatewayDeploySection = ({
gatewayId={gatewayId}
gatewayName={gatewayName}
isDirect={connectionMode === "direct"}
- listenAddress={listenAddress}
+ includeRelay={includeRelay}
+ listenAddress={commandListenAddress}
/>
)}
@@ -274,7 +325,8 @@ export const GatewayDeploySection = ({
enrollmentToken={enrollment.token}
expiresAt={enrollment.expiresAt}
isDirect={connectionMode === "direct"}
- listenAddress={listenAddress}
+ includeRelay={includeRelay}
+ listenAddress={commandListenAddress}
onCommandDirtyChange={setIsCommandDirty}
/>
<Button
diff --git a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDetailsCard/GatewayDetailsCard.tsx b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDetailsCard/GatewayDetailsCard.tsx
index 25f218f555..599a543e88 100644
--- a/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDetailsCard/GatewayDetailsCard.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/GatewayDetailsByIDPage/components/GatewayDetailsCard/GatewayDetailsCard.tsx
@@ -1,6 +1,12 @@
import { Link } from "@tanstack/react-router";
import { format } from "date-fns";
-import { CheckIcon, ClipboardListIcon, TriangleAlertIcon } from "lucide-react";
+import {
+ CheckIcon,
+ CircleCheckIcon,
+ CircleXIcon,
+ ClipboardListIcon,
+ TriangleAlertIcon
+} from "lucide-react";
import { createNotification } from "@app/components/notifications";
import { OrgPermissionCan } from "@app/components/permissions";
@@ -32,7 +38,11 @@ import {
import { useTimedReset } from "@app/hooks";
import { useUpdateGateway } from "@app/hooks/api/gateways-v2";
import { TGatewayV2, TGatewayV2WithAuthMethod } from "@app/hooks/api/gateways-v2/types";
-import { getLastSeenHeartbeat, isGatewayHealthy } from "@app/hooks/api/gateways-v2/utils";
+import {
+ getGatewayTransportHealth,
+ getLastSeenHeartbeat,
+ isGatewayHealthy
+} from "@app/hooks/api/gateways-v2/utils";
import {
NetworkingAuthMethodForm,
@@ -71,6 +81,10 @@ export const GatewayDetailsCard = ({ gateway }: { gateway: TGatewayV2WithAuthMet
: gateway.relayId
? "Relay"
: "Not configured";
+ // Only broken out for a gateway running both. With one transport the Health badge and Last Seen
+ // above already say everything these rows would.
+ const transportHealth = getGatewayTransportHealth(gateway);
+ const perTransportHealth = transportHealth.length > 1 ? transportHealth : [];
return (
<Card className="w-full">
@@ -110,7 +124,26 @@ export const GatewayDetailsCard = ({ gateway }: { gateway: TGatewayV2WithAuthMet
</Detail>
<Detail>
<DetailLabel>Connection</DetailLabel>
- <DetailValue>{connection}</DetailValue>
+ <DetailValue className="flex flex-col items-start gap-1">
+ <span>{connection}</span>
+ {perTransportHealth.map((transport) => (
+ <span key={transport.transport} className="flex items-center gap-2 text-xs">
+ <Badge variant={transport.isHealthy ? "success" : "danger"} iconPosition="left">
+ {transport.isHealthy ? (
+ <CircleCheckIcon className="size-3" />
+ ) : (
+ <CircleXIcon className="size-3" />
+ )}
+ {transport.label}
+ </Badge>
+ <span className="text-muted">
+ {transport.probedAt
+ ? `last seen ${format(new Date(transport.probedAt), "PPp")}`
+ : "never reached"}
+ </span>
+ </span>
+ ))}
+ </DetailValue>
</Detail>
<Detail>
<DetailLabel>Last Seen</DetailLabel>
diff --git a/helm-charts/infisical-gateway/CHANGELOG.md b/helm-charts/infisical-gateway/CHANGELOG.md
index 0cb70c9dcb..ab3307e158 100644
--- a/helm-charts/infisical-gateway/CHANGELOG.md
+++ b/helm-charts/infisical-gateway/CHANGELOG.md
@@ -1,3 +1,12 @@
+## 1.5.0 (September 7, 2026)
+* Added `gateway.listenAddress`, a `host:port` that Infisical dials to reach the gateway, which runs it in direct listen mode instead of connecting out to a relay. Leave it empty for relay mode.
+* The container port and the Service's `targetPort` are both derived from `gateway.listenAddress`, so they cannot drift from the port the gateway binds. A malformed value fails the render.
+* **Breaking:** the Service is created only in direct listen mode. A relay-mode gateway accepts no inbound connections, so the chart no longer creates a Service for one. Relay-mode installs upgrading from 1.4.0 will have their Service removed.
+* **Breaking:** `service.port` now defaults to `""`, meaning the port from `gateway.listenAddress`, rather than `80`. A Service answering on any other port is unreachable at the address registered with Infisical. Set it explicitly to put a different port in front of the gateway.
+* `gateway.relayName` and `gateway.listenAddress` can be set together to run both transports. Infisical then prefers the direct address and falls back to the relay.
+* `gateway.relayName` now renders as `--relay`, replacing the deprecated `--target-relay-name`.
+* `gateway.listenAddress` requires an `image.tag` whose CLI supports `--listen-address`. The default tag predates the flag, and a gateway started with it crash-loops on `unknown flag: --listen-address`.
+
## 1.4.0 (August 6, 2026)
* Added Kubernetes auth enrollment (`gateway.enrollment.method: kubernetes`). The gateway authenticates with the projected service account token of its own pod, so no enrollment token or cloud credential needs to be distributed to the cluster.
* Added `gateway.enrollment.kubernetes.gatewayId` and `gateway.enrollment.kubernetes.serviceAccountTokenPath`.
diff --git a/helm-charts/infisical-gateway/Chart.yaml b/helm-charts/infisical-gateway/Chart.yaml
index 5d02f41f1e..9eb2180750 100644
--- a/helm-charts/infisical-gateway/Chart.yaml
+++ b/helm-charts/infisical-gateway/Chart.yaml
@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 1.4.0
+version: 1.5.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to