Skip to content

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

refactor(gateway): nest enrollment config under gateway.enrollment

bernie-gb1b64ef3c782
diff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdx
index 8e7b84b8ae..366002cf28 100644
--- a/docs/documentation/platform/gateways/gateway-deployment.mdx
+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx
@@ -82,8 +82,8 @@ This guide covers everything you need to deploy and configure Infisical Gateways
```bash
helm install infisical-gateway infisical/infisical-gateway \
--set gateway.name=<gateway-name> \
- --set gateway.enrollMethod=token \
- --set gateway.token.existingSecret=gateway-enrollment-token \
+ --set gateway.enrollment.method=token \
+ --set gateway.enrollment.token.existingSecret=gateway-enrollment-token \
--set gateway.domain=<your-infisical-domain>
```
@@ -95,8 +95,8 @@ This guide covers everything you need to deploy and configure Infisical Gateways
```bash
helm install infisical-gateway infisical/infisical-gateway \
--set gateway.name=<gateway-name> \
- --set gateway.enrollMethod=token \
- --set gateway.token.value=<enrollment-token> \
+ --set gateway.enrollment.method=token \
+ --set gateway.enrollment.token.value=<enrollment-token> \
--set gateway.domain=<your-infisical-domain>
```
</Tab>
@@ -134,17 +134,12 @@ This guide covers everything you need to deploy and configure Infisical Gateways
```bash
helm install infisical-gateway infisical/infisical-gateway \
--set gateway.name=<gateway-name> \
- --set gateway.enrollMethod=aws \
- --set gateway.aws.gatewayId=<gateway-id> \
+ --set gateway.enrollment.method=aws \
+ --set gateway.enrollment.aws.gatewayId=<gateway-id> \
--set gateway.domain=<your-infisical-domain> \
--set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"=arn:aws:iam::<account-id>:role/<role-name> \
- --set persistence.enabled=false
```
- <Info>
- With AWS auth, persistence is optional since the gateway re-authenticates via STS on every start. You can disable it with `persistence.enabled=false` to avoid provisioning a PersistentVolumeClaim.
- </Info>
-
<Info>
Ensure the IAM role's trust policy allows the Kubernetes service account to assume it, and that the role's ARN or account ID is in the gateway's AWS auth allowlist in the Infisical UI.
</Info>
diff --git a/helm-charts/infisical-gateway/CHANGELOG.md b/helm-charts/infisical-gateway/CHANGELOG.md
index 6359143ad1..ffdbdf8f3f 100644
--- a/helm-charts/infisical-gateway/CHANGELOG.md
+++ b/helm-charts/infisical-gateway/CHANGELOG.md
@@ -1,9 +1,9 @@
## 1.1.0 (May 11, 2026)
-* Added support for the new enrollment-based gateway registration flow (`gateway.enrollMethod: token` or `aws`).
+* Added support for the new enrollment-based gateway registration flow (`gateway.enrollment.method: token` or `aws`).
* Added PersistentVolumeClaim support (`persistence.*`) for credential storage across pod restarts.
-* Added optional Secret template for inline enrollment token values (`gateway.token.value`).
+* Added optional Secret template for inline enrollment token values (`gateway.enrollment.token.value`).
* Updated default CLI image version from `0.43.39` to `0.43.84`.
-* The legacy machine identity flow (`secret.name` with envFrom) remains fully supported when `gateway.enrollMethod` is unset.
+* The legacy machine identity flow (`secret.name` with envFrom) remains fully supported when `gateway.enrollment.method` is unset.
## 1.0.4 (December 9, 2025)
* Updated default CLI image version from `0.43.0` to `0.43.39`.
diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yaml
index a6e4b1cc2e..8e67643ef3 100644
--- a/helm-charts/infisical-gateway/templates/deployment.yaml
+++ b/helm-charts/infisical-gateway/templates/deployment.yaml
@@ -1,9 +1,9 @@
-{{- if eq .Values.gateway.enrollMethod "token" }}
+{{- if eq .Values.gateway.enrollment.method "token" }}
{{- if not .Values.persistence.enabled }}
- {{- fail "persistence.enabled must be true when gateway.enrollMethod is 'token'. The enrollment token is single-use and credentials must persist across pod restarts." }}
+ {{- fail "persistence.enabled must be true when gateway.enrollment.method is 'token'. The enrollment token is single-use and credentials must persist across pod restarts." }}
{{- end }}
- {{- if not (or .Values.gateway.token.value .Values.gateway.token.existingSecret) }}
- {{- fail "gateway.token.value or gateway.token.existingSecret is required when gateway.enrollMethod is 'token'." }}
+ {{- if not (or .Values.gateway.enrollment.token.value .Values.gateway.enrollment.token.existingSecret) }}
+ {{- fail "gateway.enrollment.token.value or gateway.enrollment.token.existingSecret is required when gateway.enrollment.method is 'token'." }}
{{- end }}
{{- end }}
apiVersion: apps/v1
@@ -13,7 +13,7 @@ metadata:
labels:
{{- include "infisical-gateway.labels" . | nindent 4 }}
spec:
- {{- if .Values.gateway.enrollMethod }}
+ {{- if .Values.gateway.enrollment.method }}
replicas: 1
{{- if .Values.persistence.enabled }}
strategy:
@@ -45,7 +45,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- {{- if .Values.gateway.enrollMethod }}
+ {{- if .Values.gateway.enrollment.method }}
- name: gateway-credentials
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
@@ -74,33 +74,33 @@ spec:
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
- {{- if .Values.gateway.enrollMethod }}
- {{- if .Values.gateway.credentialsSecretRef }}
+ {{- if .Values.gateway.enrollment.method }}
+ {{- if .Values.gateway.enrollment.credentialsSecretRef }}
envFrom:
- secretRef:
- name: {{ .Values.gateway.credentialsSecretRef }}
+ name: {{ .Values.gateway.enrollment.credentialsSecretRef }}
{{- end }}
env:
- name: HOME
value: /home/infisical
- {{- if eq .Values.gateway.enrollMethod "token" }}
+ {{- if eq .Values.gateway.enrollment.method "token" }}
- name: INFISICAL_ENROLLMENT_TOKEN
valueFrom:
secretKeyRef:
- name: {{ .Values.gateway.token.existingSecret | default (printf "%s-enrollment-token" (include "infisical-gateway.fullname" .)) }}
- key: {{ .Values.gateway.token.secretKey | default "enrollment-token" }}
+ name: {{ .Values.gateway.enrollment.token.existingSecret | default (printf "%s-enrollment-token" (include "infisical-gateway.fullname" .)) }}
+ key: {{ .Values.gateway.enrollment.token.secretKey | default "enrollment-token" }}
{{- end }}
args:
- gateway
- start
- - {{ required "gateway.name is required when gateway.enrollMethod is set" .Values.gateway.name | quote }}
- - --enroll-method={{ .Values.gateway.enrollMethod }}
- - --domain={{ required "gateway.domain is required when gateway.enrollMethod is set" .Values.gateway.domain }}
- {{- if eq .Values.gateway.enrollMethod "token" }}
+ - {{ required "gateway.name is required when gateway.enrollment.method is set" .Values.gateway.name | quote }}
+ - --enroll-method={{ .Values.gateway.enrollment.method }}
+ - --domain={{ required "gateway.domain is required when gateway.enrollment.method is set" .Values.gateway.domain }}
+ {{- if eq .Values.gateway.enrollment.method "token" }}
- --token=$(INFISICAL_ENROLLMENT_TOKEN)
{{- end }}
- {{- if eq .Values.gateway.enrollMethod "aws" }}
- - --gateway-id={{ required "gateway.aws.gatewayId is required when gateway.enrollMethod is 'aws'" .Values.gateway.aws.gatewayId }}
+ {{- if eq .Values.gateway.enrollment.method "aws" }}
+ - --gateway-id={{ required "gateway.enrollment.aws.gatewayId is required when gateway.enrollment.method is 'aws'" .Values.gateway.enrollment.aws.gatewayId }}
{{- end }}
{{- if .Values.gateway.relayName }}
- --target-relay-name={{ .Values.gateway.relayName }}
diff --git a/helm-charts/infisical-gateway/templates/pvc.yaml b/helm-charts/infisical-gateway/templates/pvc.yaml
index 3b0d92b0a8..a425354b83 100644
--- a/helm-charts/infisical-gateway/templates/pvc.yaml
+++ b/helm-charts/infisical-gateway/templates/pvc.yaml
@@ -1,4 +1,4 @@
-{{- if and .Values.gateway.enrollMethod .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
+{{- if and .Values.gateway.enrollment.method .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
diff --git a/helm-charts/infisical-gateway/templates/secret.yaml b/helm-charts/infisical-gateway/templates/secret.yaml
index 97987d93a3..5ab4e83308 100644
--- a/helm-charts/infisical-gateway/templates/secret.yaml
+++ b/helm-charts/infisical-gateway/templates/secret.yaml
@@ -1,4 +1,4 @@
-{{- if and (eq .Values.gateway.enrollMethod "token") .Values.gateway.token.value (not .Values.gateway.token.existingSecret) }}
+{{- if and (eq .Values.gateway.enrollment.method "token") .Values.gateway.enrollment.token.value (not .Values.gateway.enrollment.token.existingSecret) }}
apiVersion: v1
kind: Secret
metadata:
@@ -7,5 +7,5 @@ metadata:
{{- include "infisical-gateway.labels" . | nindent 4 }}
type: Opaque
data:
- {{ .Values.gateway.token.secretKey | default "enrollment-token" }}: {{ .Values.gateway.token.value | b64enc | quote }}
+ {{ .Values.gateway.enrollment.token.secretKey | default "enrollment-token" }}: {{ .Values.gateway.enrollment.token.value | b64enc | quote }}
{{- end }}
diff --git a/helm-charts/infisical-gateway/values.yaml b/helm-charts/infisical-gateway/values.yaml
index 33b9cf80d7..d849936847 100644
--- a/helm-charts/infisical-gateway/values.yaml
+++ b/helm-charts/infisical-gateway/values.yaml
@@ -4,39 +4,40 @@ image:
pullPolicy: IfNotPresent
# Machine identity flow: name of the K8s Secret containing env vars like INFISICAL_AUTH_METHOD, etc.
-# Only used when gateway.enrollMethod is unset.
+# Only used when gateway.enrollment.method is unset.
secret:
name: "infisical-gateway-environment"
gateway:
- # Enrollment method: "token" or "aws".
- # Leave empty to use the legacy machine identity flow (env vars from secret.name).
- enrollMethod: ""
-
- # Required when enrollMethod is set. Name of the gateway created in the Infisical UI.
+ # Name of the gateway created in the Infisical UI. Required when enrollment.method is set.
name: ""
- # Required when enrollMethod is set. Infisical instance URL (e.g. https://app.infisical.com).
+ # Infisical instance URL (e.g. https://app.infisical.com). Required when enrollment.method is set.
domain: ""
- # Token enrollment settings (enrollMethod=token)
- token:
- # Inline enrollment token value. Mutually exclusive with existingSecret.
- value: ""
- # Name of an existing K8s Secret containing the enrollment token.
- existingSecret: ""
- # Key within the secret that holds the enrollment token.
- secretKey: "enrollment-token"
-
- # AWS enrollment settings (enrollMethod=aws)
- aws:
- # Required when enrollMethod=aws. Gateway ID from the Infisical UI.
- gatewayId: ""
-
- # Name of a K8s Secret whose key-value pairs are injected as env vars.
- # Use this to provide credentials for the enrollment method (e.g. AWS keys, GCP credentials).
- # Not needed when credentials are provided via workload identity (IRSA, GCP Workload Identity, etc.).
- credentialsSecretRef: ""
+ enrollment:
+ # Enrollment method: "token" or "aws".
+ # Leave empty to use the legacy machine identity flow (env vars from secret.name).
+ method: ""
+
+ # Token enrollment settings (method=token)
+ token:
+ # Inline enrollment token value. Mutually exclusive with existingSecret.
+ value: ""
+ # Name of an existing K8s Secret containing the enrollment token.
+ existingSecret: ""
+ # Key within the secret that holds the enrollment token.
+ secretKey: "enrollment-token"
+
+ # AWS enrollment settings (method=aws)
+ aws:
+ # Required when method=aws. Gateway ID from the Infisical UI.
+ gatewayId: ""
+
+ # Name of a K8s Secret whose key-value pairs are injected as env vars.
+ # Use this to provide credentials for the enrollment method (e.g. AWS keys, GCP credentials).
+ # Not needed when credentials are provided via workload identity (IRSA, GCP Workload Identity, etc.).
+ credentialsSecretRef: ""
# Specific relay to connect to. Leave empty for automatic selection.
relayName: ""