Fix Headlamp OIDC callback URL generation

Set HEADLAMP_CONFIG_BASE_URL to https://headlamp.basicstack.de to ensure
the OIDC callback URL is generated correctly with HTTPS scheme. When
running behind Traefik without explicit base URL, Headlamp may generate
http:// callback URLs instead of https://, causing OIDC flow failures.

Also added traefik.ingress.kubernetes.io/preserve-host annotation to
ensure proper header forwarding.

Fixes: DEV-324

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-18 08:39:12 +00:00
parent 519e7e95e7
commit c6993d337c
2 changed files with 2 additions and 1 deletions

View file

@ -27,7 +27,7 @@ spec:
protocol: TCP
env:
- name: HEADLAMP_CONFIG_BASE_URL
value: ""
value: "https://headlamp.basicstack.de"
- name: HEADLAMP_CONFIG_OIDC_IDP_ISSUER_URL
value: https://auth.basicstack.de
- name: HEADLAMP_CONFIG_OIDC_CLIENT_ID

View file

@ -6,6 +6,7 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/preserve-host: "true"
spec:
ingressClassName: traefik
rules: