Skip to content

Commit dc063b4

Browse files
fix(keycloak): use plain HTTP route to avoid certificate issues (redhat-developer#19)
- Update Keycloak environment variables for HTTP mode: - Replace KC_PROXY_HEADERS with KC_PROXY=edge - Add KC_HOSTNAME_STRICT_HTTPS=false - Remove TLS edge termination from OpenShift route to use plain HTTP - Bump version to 1.1.3 This simplifies test environment setup by avoiding self-signed certificate issues with TLS termination. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8100438 commit dc063b4

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rhdh-e2e-test-utils",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Test utilities for RHDH E2E tests",
55
"license": "Apache-2.0",
66
"type": "module",

src/deployment/keycloak/config/keycloak-values.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ extraEnvVars:
6767
value: admin
6868
- name: KEYCLOAK_ADMIN_PASSWORD
6969
value: admin123
70-
- name: KC_HTTP_ENABLED
71-
value: "true"
72-
- name: KC_PROXY_HEADERS
73-
value: "xforwarded"
7470
- name: KC_HOSTNAME_STRICT
7571
value: "false"
72+
- name: KC_HOSTNAME_STRICT_HTTPS
73+
value: "false"
74+
- name: KC_HTTP_ENABLED
75+
value: "true"
76+
- name: KC_PROXY
77+
value: "edge"
7678
- name: JAVA_OPTS_APPEND
7779
value: "-Djava.net.preferIPv4Stack=true -Xms256m -Xmx512m"
7880

src/deployment/keycloak/deployment.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export class KeycloakHelper {
389389
}
390390

391391
private async _createRoute(): Promise<void> {
392-
// Use TLS edge termination with Allow policy to support both HTTP and HTTPS
392+
// Use plain HTTP route (no TLS) for test environments to avoid self-signed certificate issues
393393
const routeManifest = `
394394
apiVersion: route.openshift.io/v1
395395
kind: Route
@@ -406,9 +406,6 @@ spec:
406406
weight: 100
407407
port:
408408
targetPort: http
409-
tls:
410-
termination: edge
411-
insecureEdgeTerminationPolicy: Allow
412409
wildcardPolicy: None
413410
`;
414411

0 commit comments

Comments
 (0)