Skip to content

Commit 0a46195

Browse files
authored
[system] Fix Keycloak proxy configuration for v26.x (#2125)
## What this PR does Replace deprecated `KC_PROXY=edge` with `KC_PROXY_HEADERS=xforwarded` and `KC_HTTP_ENABLED=true` in the Keycloak StatefulSet template. `KC_PROXY` was removed in Keycloak 26.x, causing "Non-secure context detected" warnings and broken cookie handling when running behind a reverse proxy with TLS termination. ### Release note ```release-note [system] Fix Keycloak proxy headers configuration for compatibility with Keycloak 26.x ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Chores** * Updated system configuration to improve proxy header handling and enable direct HTTP support for enhanced compatibility with reverse proxy environments. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 20c91f2 + 14228aa commit 0a46195

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • packages/system/keycloak/templates

‎packages/system/keycloak/templates/sts.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ spec:
8282
value: "ispn"
8383
- name: KC_CACHE_STACK
8484
value: "kubernetes"
85-
- name: KC_PROXY
86-
value: "edge"
85+
- name: KC_PROXY_HEADERS
86+
value: "xforwarded"
87+
- name: KC_HTTP_ENABLED
88+
value: "true"
8789
- name: KEYCLOAK_ADMIN
8890
value: admin
8991
- name: KEYCLOAK_ADMIN_PASSWORD

0 commit comments

Comments
 (0)