Skip to content

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

fix(chart): secret data to stringData for cross-type compatibility

Grraahaam4899c4de5b94
diff --git a/helm-charts/infisical/templates/backend-deployment.yaml b/helm-charts/infisical/templates/backend-deployment.yaml
index fca05b2a36..9f3ae2d91a 100644
--- a/helm-charts/infisical/templates/backend-deployment.yaml
+++ b/helm-charts/infisical/templates/backend-deployment.yaml
@@ -73,7 +73,7 @@ metadata:
annotations:
"helm.sh/resource-policy": "keep"
type: Opaque
-data:
+stringData:
{{- $requiredVars := dict "ENCRYPTION_KEY" (randAlphaNum 32 | lower)
"JWT_SIGNUP_SECRET" (randAlphaNum 32 | lower)
"JWT_REFRESH_SECRET" (randAlphaNum 32 | lower)
@@ -86,7 +86,7 @@ data:
{{- $default := get $requiredVars $key -}}
{{- $current := get $secretData $key | b64dec -}}
{{- $v := $value | default ($current | default $default) -}}
- {{ $key }}: {{ $v | quote | b64enc }}
+ {{ $key }}: {{ $v | quote }}
{{ end -}}
- MONGO_URL: {{ include "infisical.mongodb.connectionString" . | quote | b64enc }}
+ MONGO_URL: {{ include "infisical.mongodb.connectionString" . | quote }}
{{- end }}
diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml
index e6f0a70b62..114cfc112a 100644
--- a/helm-charts/infisical/templates/frontend-deployment.yaml
+++ b/helm-charts/infisical/templates/frontend-deployment.yaml
@@ -73,7 +73,7 @@ metadata:
annotations:
"helm.sh/resource-policy": "keep"
type: Opaque
-data:
+stringData:
{{- $requiredVars := dict }}
{{- $secretObj := (lookup "v1" "Secret" .Release.Namespace (include "infisical.frontend.fullname" .)) | default dict }}
{{- $secretData := (get $secretObj "data") | default dict }}
@@ -81,6 +81,6 @@ data:
{{- $default := get $requiredVars $key -}}
{{- $current := get $secretData $key | b64dec -}}
{{- $v := $value | default ($current | default $default) -}}
- {{ $key }}: {{ $v | quote | b64enc }}
+ {{ $key }}: {{ $v | quote }}
{{ end -}}
{{- end }}
\ No newline at end of file