Skip to content

Commit e44d898

Browse files
committed
feat(RHIDP-9113): Update Keycloak configuration for Red Hat Build of Keycloak (RHBK):
- Remove /auth prefix from KEYCLOAK_BASE_URL endpoints - Update OIDC issuer URLs: /auth/realms/ → /realms/ - Add PostgreSQL database configuration to Keycloak CR - Configure bootstrap admin credentials and proxy headers
1 parent 1ca39bc commit e44d898

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

ci-scripts/rhdh-setup/template/backstage/helm/chart-values.image-override.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ upstream:
7676
key: github.token
7777
name: "{{ .Release.Name }}-plugin-secrets"
7878
- name: KEYCLOAK_BASE_URL
79-
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth"
79+
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}"
8080
- name: KEYCLOAK_LOGIN_REALM
8181
value: "backstage"
8282
- name: KEYCLOAK_REALM

ci-scripts/rhdh-setup/template/backstage/helm/chart-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ upstream:
7676
key: github.token
7777
name: "{{ .Release.Name }}-plugin-secrets"
7878
- name: KEYCLOAK_BASE_URL
79-
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth"
79+
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}"
8080
- name: KEYCLOAK_LOGIN_REALM
8181
value: "backstage"
8282
- name: KEYCLOAK_REALM

ci-scripts/rhdh-setup/template/backstage/helm/oauth2-container-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extraContainers:
1818
key: keycloak_cookie_secret
1919
name: perf-test-secrets
2020
- name: OAUTH2_PROXY_OIDC_ISSUER_URL
21-
value: https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth/realms/backstage
21+
value: https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/realms/backstage
2222
- name: OAUTH2_PROXY_SSL_INSECURE_SKIP_VERIFY
2323
value: "true"
2424
- name: OAUTH2_PROXY_LOGGING_LEVEL

ci-scripts/rhdh-setup/template/backstage/olm/backstage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
extraEnvs:
1919
envs:
2020
- name: KEYCLOAK_BASE_URL
21-
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth"
21+
value: "https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}"
2222
- name: KEYCLOAK_LOGIN_REALM
2323
value: "backstage"
2424
- name: KEYCLOAK_REALM

ci-scripts/rhdh-setup/template/backstage/olm/rhdh-oauth2.deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
key: keycloak_cookie_secret
4141
name: perf-test-secrets
4242
- name: OAUTH2_PROXY_OIDC_ISSUER_URL
43-
value: https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/auth/realms/backstage
43+
value: https://keycloak-${RHDH_NAMESPACE}.${OPENSHIFT_APP_DOMAIN}/realms/backstage
4444
- name: OAUTH2_PROXY_SSL_INSECURE_SKIP_VERIFY
4545
value: "true"
4646
image: quay.io/oauth2-proxy/oauth2-proxy:v7.7.1

ci-scripts/rhdh-setup/template/keycloak/keycloak.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,27 @@ metadata:
66
app: keycloak
77
spec:
88
instances: ${RHDH_KEYCLOAK_REPLICAS}
9+
db:
10+
vendor: postgres
11+
host: keycloak-postgresql
12+
port: 5432
13+
database: keycloak
14+
usernameSecret:
15+
name: keycloak-db-user
16+
key: keycloak-db-user
17+
passwordSecret:
18+
name: keycloak-postgresql
19+
key: password
920
hostname:
1021
strict: false
1122
http:
1223
httpEnabled: true
1324
ingress:
1425
enabled: true
1526
additionalOptions:
16-
- name: hostname-strict
17-
value: "false"
18-
- name: http-enabled
19-
value: "true"
27+
- name: bootstrap-admin-username
28+
value: admin
29+
- name: bootstrap-admin-password
30+
value: admin123
31+
- name: proxy-headers
32+
value: forwarded

0 commit comments

Comments
 (0)