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
refactor(gateway): rename existingSecret to existingSecretRef
bernie-g86318093b4bc
diff --git a/docs/documentation/platform/gateways/gateway-deployment.mdx b/docs/documentation/platform/gateways/gateway-deployment.mdxindex 366002cf28..7741630d0d 100644--- a/docs/documentation/platform/gateways/gateway-deployment.mdx+++ b/docs/documentation/platform/gateways/gateway-deployment.mdx@@ -83,7 +83,7 @@ This guide covers everything you need to deploy and configure Infisical Gatewayshelm install infisical-gateway infisical/infisical-gateway \--set gateway.name=<gateway-name> \--set gateway.enrollment.method=token \- --set gateway.enrollment.token.existingSecret=gateway-enrollment-token \+ --set gateway.enrollment.token.existingSecretRef=gateway-enrollment-token \--set gateway.domain=<your-infisical-domain>```diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yamlindex 8e67643ef3..1a6f0454a4 100644--- a/helm-charts/infisical-gateway/templates/deployment.yaml+++ b/helm-charts/infisical-gateway/templates/deployment.yaml@@ -2,7 +2,7 @@{{- if not .Values.persistence.enabled }}{{- 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.enrollment.token.value .Values.gateway.enrollment.token.existingSecret) }}+ {{- if not (or .Values.gateway.enrollment.token.value .Values.gateway.enrollment.token.existingSecretRef) }}{{- fail "gateway.enrollment.token.value or gateway.enrollment.token.existingSecret is required when gateway.enrollment.method is 'token'." }}{{- end }}{{- end }}@@ -87,7 +87,7 @@ spec:- name: INFISICAL_ENROLLMENT_TOKENvalueFrom:secretKeyRef:- name: {{ .Values.gateway.enrollment.token.existingSecret | default (printf "%s-enrollment-token" (include "infisical-gateway.fullname" .)) }}+ name: {{ .Values.gateway.enrollment.token.existingSecretRef | default (printf "%s-enrollment-token" (include "infisical-gateway.fullname" .)) }}key: {{ .Values.gateway.enrollment.token.secretKey | default "enrollment-token" }}{{- end }}args:diff --git a/helm-charts/infisical-gateway/templates/secret.yaml b/helm-charts/infisical-gateway/templates/secret.yamlindex 5ab4e83308..aecf73bde3 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.enrollment.method "token") .Values.gateway.enrollment.token.value (not .Values.gateway.enrollment.token.existingSecret) }}+{{- if and (eq .Values.gateway.enrollment.method "token") .Values.gateway.enrollment.token.value (not .Values.gateway.enrollment.token.existingSecretRef) }}apiVersion: v1kind: Secretmetadata:diff --git a/helm-charts/infisical-gateway/values.yaml b/helm-charts/infisical-gateway/values.yamlindex d849936847..e0b824e010 100644--- a/helm-charts/infisical-gateway/values.yaml+++ b/helm-charts/infisical-gateway/values.yaml@@ -22,10 +22,10 @@ gateway:# Token enrollment settings (method=token)token:- # Inline enrollment token value. Mutually exclusive with existingSecret.+ # Inline enrollment token value. Mutually exclusive with existingSecretRef.value: ""# Name of an existing K8s Secret containing the enrollment token.- existingSecret: ""+ existingSecretRef: ""# Key within the secret that holds the enrollment token.secretKey: "enrollment-token"