feat(helm): redirect plain HTTP to HTTPS on the ingresses #154

Merged
Sebi merged 1 commits from feat/helm-https-redirect into main 2026-11-25 18:52:59 +00:00
Owner

With TLS enabled, the console ingress and the status page ingress now redirect HTTP to HTTPS (301).

  • Traefik (className contains traefik, or no class and the traefik.io/v1alpha1 Middleware CRD exists): the chart creates a redirectScheme middleware <name>-https and puts it first in traefik.ingress.kubernetes.io/router.middlewares. Middlewares already set there are kept.
  • Other controllers: sets nginx.ingress.kubernetes.io/ssl-redirect and haproxy.org/ssl-redirect.
  • Opt-out: ingress.tls.redirect: false and statuspage.ingress.tls.redirect: false.

cert-manager's HTTP-01 solver has its own ingress and is not affected.

Tested with helm template (Traefik, Traefik with existing middleware, nginx, no TLS, redirect off, status page) and helm lint.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

With TLS enabled, the console ingress and the status page ingress now redirect HTTP to HTTPS (301). - **Traefik** (`className` contains `traefik`, or no class and the `traefik.io/v1alpha1` Middleware CRD exists): the chart creates a `redirectScheme` middleware `<name>-https` and puts it first in `traefik.ingress.kubernetes.io/router.middlewares`. Middlewares already set there are kept. - **Other controllers:** sets `nginx.ingress.kubernetes.io/ssl-redirect` and `haproxy.org/ssl-redirect`. - **Opt-out:** `ingress.tls.redirect: false` and `statuspage.ingress.tls.redirect: false`. cert-manager's HTTP-01 solver has its own ingress and is not affected. Tested with `helm template` (Traefik, Traefik with existing middleware, nginx, no TLS, redirect off, status page) and `helm lint`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-25 18:44:23 +00:00
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
25829671a5
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
Sebi merged commit 87ab065e24 into main 2026-11-25 18:52:59 +00:00
Sebi deleted branch feat/helm-https-redirect 2026-11-25 18:53:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#154