fix: auto-detect N8N_SECURE_COOKIE from Ingress/TLS settings
Helm Chart Release / release-chart (push) Successful in 4s

Set N8N_SECURE_COOKIE=true only when ingress.enabled=true AND ingress.tls
is configured. All other cases (LoadBalancer, HTTP Ingress) default to false,
eliminating the secure cookie error without manual configuration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-02 18:24:10 +09:00
parent 3ed89b90bb
commit 87b2a833cc
3 changed files with 18 additions and 1 deletions
+6
View File
@@ -73,6 +73,12 @@ spec:
name: {{ .Values.n8n.basicAuth.existingSecret | default (include "n8n.fullname" .) }}
key: {{ .Values.n8n.basicAuth.passwordKey }}
{{- end }}
- name: N8N_SECURE_COOKIE
{{- if and .Values.ingress.enabled .Values.ingress.tls }}
value: "true"
{{- else }}
value: "false"
{{- end }}
- name: EXECUTIONS_DATA_PRUNE
value: {{ .Values.n8n.executions.pruneData | quote }}
- name: EXECUTIONS_DATA_MAX_AGE