feat(helm): redirect plain HTTP to HTTPS on the ingresses
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 11m42s
ci / test (pull_request) Successful in 12m11s
ci / build (pull_request) Successful in 16m4s
ci / image (pull_request) Successful in 3m19s

With TLS on, the console's and the status pages' ingresses now send HTTP to
HTTPS: through a redirectScheme middleware the chart creates for Traefik,
which is chained before any middlewares already annotated, and by
annotation for ingress-nginx and HAProxy. ingress.tls.redirect and
statuspage.ingress.tls.redirect turn it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-25 19:43:37 +01:00
1 parent 673e93f4bb
commit 25829671a5
4 files changed
+63 -4

No files matched your search

@@ -118,6 +118,7 @@ spec:
{{- include "uptimesebi.selector" (list . "statuspage") | nindent 6 }}
{{- end }}
{{- if .Values.statuspage.ingress.enabled }}
{{- $ing := dict "root" . "ingress" .Values.statuspage.ingress "name" $name }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
@@ -125,9 +126,9 @@ metadata:
name: {{ $name }}
labels:
{{- include "uptimesebi.labels" . | nindent 4 }}
{{- with .Values.statuspage.ingress.annotations }}
{{- with include "uptimesebi.ingressAnnotations" $ing }}
annotations:
{{- toYaml . | nindent 4 }}
{{- . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.statuspage.ingress.className }}
@@ -152,5 +153,6 @@ spec:
port:
name: http
{{- end }}
{{- include "uptimesebi.redirectMiddleware" $ing }}
{{- end }}
{{- end }}