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
feat(gateway): add extraVolumes and extraVolumeMounts to gateway chart
bernie-g22e3f47aa9d8
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex d68d05ce40..4c17be848a 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -7,7 +7,10 @@ import {TCreateProjectTemplateDTO,TUpdateProjectTemplateDTO} from "@app/ee/services/project-template/project-template-types";-import { TSettableAuthMethod } from "@app/ee/services/resource-auth-method/resource-auth-method-fns";+import {+ ResourceAuthMethodType,+ TSettableAuthMethod+} from "@app/ee/services/resource-auth-method/resource-auth-method-fns";import { SecretRotation, SecretRotationStatus } from "@app/ee/services/secret-rotation-v2/secret-rotation-v2-enums";import {TCreateSecretRotationV2DTO,@@ -7324,7 +7327,7 @@ interface ResourceAuthMethodConfigMetadata {resourceType: ResourceAuthMethodResourceType;resourceId: string;resourceName?: string;- method: ResourceAuthMethodKind;+ method: ResourceAuthMethodType;methodConfigId: string;stsEndpoint?: string;allowedPrincipalArns?: string;diff --git a/backend/src/ee/services/resource-auth-method/resource-auth-method-audit-fns.ts b/backend/src/ee/services/resource-auth-method/resource-auth-method-audit-fns.tsindex c0b42723e7..7b4f5d6f03 100644--- a/backend/src/ee/services/resource-auth-method/resource-auth-method-audit-fns.ts+++ b/backend/src/ee/services/resource-auth-method/resource-auth-method-audit-fns.ts@@ -1,5 +1,3 @@-import { InternalServerError } from "@app/lib/errors";-import { ResourceAuthMethodType } from "./resource-auth-method-fns";import { TAuthMethodView } from "./resource-auth-method-types";@@ -53,10 +51,7 @@ export const resourceAuthMethodAuditMetadata = ({};}- if (view.method === ResourceAuthMethodType.Token) {- return { ...base, method: view.method, methodConfigId: resourceId };- }-- // Legacy identity gateways cannot be created or have their method set, so reaching this is a bug.- throw new InternalServerError({ message: `Cannot audit auth method "${view.method}" for a ${resourceType}` });+ // Naming the remaining methods keeps a new one from silently landing here with no audit fields.+ const methodWithoutConfig: typeof ResourceAuthMethodType.Token | typeof ResourceAuthMethodType.Identity = view.method;+ return { ...base, method: methodWithoutConfig, methodConfigId: resourceId };};diff --git a/docs/self-hosting/helm-charts/gateway.mdx b/docs/self-hosting/helm-charts/gateway.mdxindex f5b2c523a8..4748be21f3 100644--- a/docs/self-hosting/helm-charts/gateway.mdx+++ b/docs/self-hosting/helm-charts/gateway.mdx@@ -126,7 +126,7 @@ helm uninstall infisical-gateway --namespace infisical-gateway| `gateway.enrollment.aws.gatewayId` | `""` | Gateway ID from the Infisical UI. Required for AWS auth. || `gateway.enrollment.gcp.gatewayId` | `""` | Gateway ID from the Infisical UI. Required for GCP auth. || `gateway.enrollment.gcp.type` | `""` | How the identity is proven: `gce` reads a token from the metadata server, `iam` signs one through the IAM Credentials API. Empty means `gce`. |-| `gateway.enrollment.gcp.serviceAccountKeyFilePath` | `""` | Only for `type: iam` on a pod with no workload identity. Path to a service account key file you mount yourself. |+| `gateway.enrollment.gcp.serviceAccountKeyFilePath` | `""` | Only for `type: iam` on a pod with no workload identity. Path to a service account key file, which you mount with `extraVolumes` and `extraVolumeMounts`. || `gateway.enrollment.kubernetes.gatewayId` | `""` | Gateway ID from the Infisical UI. Required for Kubernetes auth. || `gateway.enrollment.kubernetes.serviceAccountTokenPath` | `""` | Override the projected service account token path. Defaults to `/var/run/secrets/kubernetes.io/serviceaccount/token`. || `gateway.enrollment.kubernetes.externalTokenReview` | `false` | Set true when TokenReview permission comes from outside this chart, either a token reviewer JWT configured in Infisical or a binding you manage. Required to install with `serviceAccount.createAsAuthDelegator` disabled. |@@ -151,6 +151,8 @@ helm uninstall infisical-gateway --namespace infisical-gateway| `extraEnv` | `[]` | Extra environment variables for the gateway container. || `extraEnvFrom` | `[]` | Load environment variables from Secrets or ConfigMaps. || `extraArgs` | `[]` | Extra arguments appended to the gateway container command. |+| `extraVolumes` | `[]` | Additional volumes to attach to the gateway pod. |+| `extraVolumeMounts` | `[]` | Additional volume mounts for the gateway container. || `extraObjects` | `[]` | Extra Kubernetes manifests to deploy with this chart. || `service.type` | `ClusterIP` | Type of the Service created in direct listen mode. || `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. |@@ -227,7 +229,7 @@ gateway:# Credentials API. Leave empty for the CLI default of "gce".type: ""# Only for type=iam, and only when the pod has no workload identity to sign with. Path to a- # service account key file, which you must mount yourself.+ # service account key file, which you mount with extraVolumes and extraVolumeMounts.serviceAccountKeyFilePath: ""# Kubernetes enrollment settings (method=kubernetes).@@ -332,6 +334,18 @@ extraEnvFrom: []extraArgs: []# - --log-level=debug+# Additional volumes to attach to the gateway pod+extraVolumes: []+# - name: gcp-service-account-key+# secret:+# secretName: gcp-service-account-key++# Additional volume mounts for the gateway container+extraVolumeMounts: []+# - name: gcp-service-account-key+# mountPath: /var/secrets/gcp+# readOnly: true+# Extra Kubernetes manifests to deploy with this chartextraObjects: []```diff --git a/helm-charts/infisical-gateway/CHANGELOG.md b/helm-charts/infisical-gateway/CHANGELOG.mdindex 0fd6b7e5ae..e38975bf4f 100644--- a/helm-charts/infisical-gateway/CHANGELOG.md+++ b/helm-charts/infisical-gateway/CHANGELOG.md@@ -1,6 +1,7 @@## 1.6.0 (Unreleased)* Added GCP auth enrollment (`gateway.enrollment.method: gcp`). The gateway proves its identity with a token from the GCP metadata server, so no credential is distributed to the cluster or the VM.* Added `gateway.enrollment.gcp.gatewayId`, `gateway.enrollment.gcp.type` and `gateway.enrollment.gcp.serviceAccountKeyFilePath`.+* Added `extraVolumes` and `extraVolumeMounts`, which are what mount a service account key file for `gateway.enrollment.gcp.type: iam`. Setting `serviceAccountKeyFilePath` without them now fails the render instead of crash-looping the pod on a missing file.* The default CLI image must be bumped to the first release containing `--enroll-method=gcp` before this chart version is published. Until then, `gateway.enrollment.method: gcp` crash-loops the pod on `unknown flag: --gcp-auth-type`.## 1.5.0 (September 7, 2026)diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yamlindex 4aa95bf3f3..ace9972271 100644--- a/helm-charts/infisical-gateway/templates/deployment.yaml+++ b/helm-charts/infisical-gateway/templates/deployment.yaml@@ -18,6 +18,9 @@{{- if and .Values.gateway.enrollment.gcp.serviceAccountKeyFilePath (ne $gcpType "iam") }}{{- fail "gateway.enrollment.gcp.serviceAccountKeyFilePath only applies when gateway.enrollment.gcp.type is 'iam'. The gce type reads its token from the instance metadata server." }}{{- end }}+ {{- if and .Values.gateway.enrollment.gcp.serviceAccountKeyFilePath (not .Values.extraVolumeMounts) }}+ {{- fail "gateway.enrollment.gcp.serviceAccountKeyFilePath is a path inside the container, and nothing in this chart puts a file there. Mount the key with extraVolumes and extraVolumeMounts, or leave the path empty and give the pod a workload identity." }}+ {{- end }}{{- end }}{{- if eq .Values.gateway.enrollment.method "token" }}{{- if not .Values.persistence.enabled }}@@ -81,6 +84,9 @@ spec:- name: session-recordingsemptyDir: {}{{- end }}+ {{- with .Values.extraVolumes }}+ {{- toYaml . | nindent 8 }}+ {{- end }}containers:- name: {{ .Chart.Name }}{{- with .Values.securityContext }}@@ -175,6 +181,9 @@ spec:- name: session-recordingsmountPath: {{ $sessionPath }}{{- end }}+ {{- with .Values.extraVolumeMounts }}+ {{- toYaml . | nindent 12 }}+ {{- end }}{{- else }}args:- gateway@@ -216,6 +225,9 @@ spec:- name: session-recordingsmountPath: {{ $sessionPath }}{{- end }}+ {{- with .Values.extraVolumeMounts }}+ {{- toYaml . | nindent 12 }}+ {{- end }}{{- end }}{{- with .Values.resources }}resources:diff --git a/helm-charts/infisical-gateway/values.yaml b/helm-charts/infisical-gateway/values.yamlindex 3c255368d9..2e44fd6654 100644--- a/helm-charts/infisical-gateway/values.yaml+++ b/helm-charts/infisical-gateway/values.yaml@@ -42,7 +42,8 @@ gateway:# "gce" reads an identity token from the metadata server (covers GKE workload identity),# "iam" signs one through the IAM Credentials API. Empty means "gce".type: ""- # Only for type=iam without workload identity. You must mount the key file yourself.+ # Only for type=iam without workload identity. Path to a service account key file that you+ # mount into the container with extraVolumes and extraVolumeMounts.serviceAccountKeyFilePath: ""# Kubernetes enrollment settings (method=kubernetes).@@ -147,5 +148,17 @@ extraEnvFrom: []extraArgs: []# - --log-level=debug+# -- Additional volumes to attach to the gateway pod+extraVolumes: []+# - name: gcp-service-account-key+# secret:+# secretName: gcp-service-account-key++# -- Additional volume mounts for the gateway container+extraVolumeMounts: []+# - name: gcp-service-account-key+# mountPath: /var/secrets/gcp+# readOnly: true+# -- Extra Kubernetes manifests to deploy with this chartextraObjects: []