Set X-Forwarded-Proto header for Ceph dashboard SAML authentication

Dashboard runs with ssl: false behind TLS-terminating proxy, so SAML
library sees http:// URLs and rejects responses expecting https://.
Explicitly set X-Forwarded-Proto: https on both Istio VirtualService
and Envoy Gateway HTTPRoute so the SAML ACS URL matches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Scooby Husky
2026-03-14 13:48:35 -05:00
co-authored by Claude Opus 4.6
parent 7c184f9d14
commit fb0ed0071f
2 changed files with 11 additions and 1 deletions
@@ -17,6 +17,12 @@ spec:
- path: - path:
type: PathPrefix type: PathPrefix
value: / value: /
filters:
- type: RequestHeaderModifier
requestHeaderModifier:
set:
- name: X-Forwarded-Proto
value: https
backendRefs: backendRefs:
- group: gateway.envoyproxy.io - group: gateway.envoyproxy.io
kind: Backend kind: Backend
@@ -9,7 +9,11 @@ spec:
gateways: gateways:
- istio-system/edge - istio-system/edge
http: http:
- timeout: 3600s - headers:
request:
set:
x-forwarded-proto: https
timeout: 3600s
route: route:
- destination: - destination:
host: rook-ceph-mgr-dashboard.rook-ceph.svc.cluster.local host: rook-ceph-mgr-dashboard.rook-ceph.svc.cluster.local