Skip to content

Commit 436819b

Browse files
lunikaAntoLC
authored andcommitted
🔧(helmfile) personalize keycloak configuration
The keycloak configuration used in dev environment is too generic and we can have a conflict with other project that are using the same ingress domain. Also the namespace was missing in the keycloak extra ConfigMap leading to creating it in the default namespace.
1 parent cd7704f commit 436819b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/helm/env.d/dev/values.impress.yaml.gotmpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ backend:
3333
LOGGING_LEVEL_LOGGERS_APP: INFO
3434
USER_OIDC_FIELD_TO_SHORTNAME: "given_name"
3535
USER_OIDC_FIELDS_TO_FULLNAME: "given_name,usual_name"
36-
OIDC_OP_JWKS_ENDPOINT: https://keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/certs
37-
OIDC_OP_AUTHORIZATION_ENDPOINT: https://keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/auth
38-
OIDC_OP_TOKEN_ENDPOINT: https://keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/token
39-
OIDC_OP_USER_ENDPOINT: https://keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/userinfo
40-
OIDC_OP_LOGOUT_ENDPOINT: https://keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/logout
36+
OIDC_OP_JWKS_ENDPOINT: https://docs-keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/certs
37+
OIDC_OP_AUTHORIZATION_ENDPOINT: https://docs-keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/auth
38+
OIDC_OP_TOKEN_ENDPOINT: https://docs-keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/token
39+
OIDC_OP_USER_ENDPOINT: https://docs-keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/userinfo
40+
OIDC_OP_LOGOUT_ENDPOINT: https://docs-keycloak.127.0.0.1.nip.io/realms/impress/protocol/openid-connect/logout
4141
OIDC_RP_CLIENT_ID: impress
4242
OIDC_RP_CLIENT_SECRET: ThisIsAnExampleKeyForDevPurposeOnly
4343
OIDC_RP_SIGN_ALGO: RS256

src/helm/helmfile.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ releases:
2626
- name: KEYCLOAK_EXTRA_ARGS
2727
value: "--import-realm"
2828
- name: KC_HOSTNAME_URL
29-
value: https://keycloak.127.0.0.1.nip.io
29+
value: https://docs-keycloak.127.0.0.1.nip.io
3030
- extraVolumes:
3131
- name: import
3232
configMap:
@@ -40,12 +40,13 @@ releases:
4040
- proxy: edge
4141
- ingress:
4242
enabled: true
43-
hostname: keycloak.127.0.0.1.nip.io
43+
hostname: docs-keycloak.127.0.0.1.nip.io
4444
- extraDeploy:
4545
- apiVersion: v1
4646
kind: ConfigMap
4747
metadata:
4848
name: docs-keycloak
49+
namespace: {{ .Namespace }}
4950
data:
5051
impress.json: |
5152
{{ readFile "../../docker/auth/realm.json" | replace "http://localhost:3200" "https://impress.127.0.0.1.nip.io" | indent 14 }}

0 commit comments

Comments
 (0)