Skip to content

Commit

Permalink
Upgrade to Keycloak 23
Browse files Browse the repository at this point in the history
upgrade the docker and kubernetes builds to use Keycloak 23.0.0,
see https://www.keycloak.org/2023/11/keycloak-2300-released.html

Fix jhipster#24352
  • Loading branch information
theycallmeducks committed Nov 28, 2023
1 parent 17767a1 commit 0f76479
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 9 deletions.
2 changes: 1 addition & 1 deletion generators/docker-compose/templates/docker-compose.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ services:
<%_ if (usesOauth2) { _%>
keycloak:
image: <%- dockerContainers.keycloak %>
command: ['start-dev --import-realm']
command: 'start-dev --import-realm'
volumes:
- ./realm-config:/opt/keycloak/data/import
- ./realm-config/keycloak-health-check.sh:/opt/keycloak/health-check.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,15 @@
"totpAppFreeOTPName",
"totpAppMicrosoftAuthenticatorName"
],
"localizationTexts": {
"en": {
"emailTestSubject": "TEST SUBJECT",
"doLogin": "SUPER Login",
"configure": "Configure your realm",
"emailAccountHtmlTitle": "SUPER Edit Account",
"manage": "Manage your realm"
}
},
"webAuthnPolicyRpEntityName": "keycloak",
"webAuthnPolicySignatureAlgorithms": [
"ES256"
Expand All @@ -487,6 +496,7 @@
"webAuthnPolicyCreateTimeout": 0,
"webAuthnPolicyAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyAcceptableAaguids": [],
"webAuthnPolicyExtraOrigins": [],
"webAuthnPolicyPasswordlessRpEntityName": "keycloak",
"webAuthnPolicyPasswordlessSignatureAlgorithms": [
"ES256"
Expand All @@ -499,6 +509,7 @@
"webAuthnPolicyPasswordlessCreateTimeout": 0,
"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyPasswordlessAcceptableAaguids": [],
"webAuthnPolicyPasswordlessExtraOrigins": [],
"users": [
{
"id": "f742ba6f-1d8a-4dec-bf15-e02dab508283",
Expand Down Expand Up @@ -2578,7 +2589,7 @@
"frontendUrl": "",
"acr.loa.map": "[]"
},
"keycloakVersion": "22.0.1",
"keycloakVersion": "23.0.0",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
2 changes: 1 addition & 1 deletion generators/docker/templates/docker/keycloak.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: <%= baseName.toLowerCase() %>
services:
keycloak:
image: <%- dockerContainers.keycloak %>
command: ['start-dev --import-realm']
command: 'start-dev --import-realm'
volumes:
- ./realm-config:/opt/keycloak/data/import
- ./realm-config/keycloak-health-check.sh:/opt/keycloak/health-check.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,15 @@
"totpAppFreeOTPName",
"totpAppMicrosoftAuthenticatorName"
],
"localizationTexts": {
"en": {
"emailTestSubject": "TEST SUBJECT",
"doLogin": "SUPER Login",
"configure": "Configure your realm",
"emailAccountHtmlTitle": "SUPER Edit Account",
"manage": "Manage your realm"
}
},
"webAuthnPolicyRpEntityName": "keycloak",
"webAuthnPolicySignatureAlgorithms": [
"ES256"
Expand All @@ -487,6 +496,7 @@
"webAuthnPolicyCreateTimeout": 0,
"webAuthnPolicyAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyAcceptableAaguids": [],
"webAuthnPolicyExtraOrigins": [],
"webAuthnPolicyPasswordlessRpEntityName": "keycloak",
"webAuthnPolicyPasswordlessSignatureAlgorithms": [
"ES256"
Expand All @@ -499,6 +509,7 @@
"webAuthnPolicyPasswordlessCreateTimeout": 0,
"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyPasswordlessAcceptableAaguids": [],
"webAuthnPolicyPasswordlessExtraOrigins": [],
"users": [
{
"id": "f742ba6f-1d8a-4dec-bf15-e02dab508283",
Expand Down Expand Up @@ -2576,7 +2587,7 @@
"frontendUrl": "",
"acr.loa.map": "[]"
},
"keycloakVersion": "22.0.1",
"keycloakVersion": "23.0.0",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
4 changes: 2 additions & 2 deletions generators/kubernetes/__snapshots__/kubernetes.spec.mts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5014,7 +5014,7 @@ data:
"cibaInterval": "5",
"frontendUrl": ""
},
"keycloakVersion": "22.0.1",
"keycloakVersion": "23.0.0",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down Expand Up @@ -8458,7 +8458,7 @@ data:
"cibaInterval": "5",
"frontendUrl": ""
},
"keycloakVersion": "22.0.1",
"keycloakVersion": "23.0.0",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,15 @@ data:
"FreeOTP",
"Google Authenticator"
],
"localizationTexts": {
"en": {
"emailTestSubject": "TEST SUBJECT",
"doLogin": "SUPER Login",
"configure": "Configure your realm",
"emailAccountHtmlTitle": "SUPER Edit Account",
"manage": "Manage your realm"
}
},
"webAuthnPolicyRpEntityName": "keycloak",
"webAuthnPolicySignatureAlgorithms": [
"ES256"
Expand All @@ -481,6 +490,7 @@ data:
"webAuthnPolicyCreateTimeout": 0,
"webAuthnPolicyAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyAcceptableAaguids": [],
"webAuthnPolicyExtraOrigins": [],
"webAuthnPolicyPasswordlessRpEntityName": "keycloak",
"webAuthnPolicyPasswordlessSignatureAlgorithms": [
"ES256"
Expand All @@ -493,6 +503,7 @@ data:
"webAuthnPolicyPasswordlessCreateTimeout": 0,
"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
"webAuthnPolicyPasswordlessAcceptableAaguids": [],
"webAuthnPolicyPasswordlessExtraOrigins": [],
"scopeMappings": [
{
"clientScope": "offline_access",
Expand Down Expand Up @@ -2499,7 +2510,7 @@ data:
"cibaInterval": "5",
"frontendUrl": ""
},
"keycloakVersion": "22.0.1",
"keycloakVersion": "23.0.0",
"userManagedAccessAllowed": false,
"clientProfiles": {
"profiles": []
Expand Down
2 changes: 1 addition & 1 deletion generators/kubernetes/templates/keycloak/keycloak.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
containers:
- name: keycloak
image: <%- dockerContainers.keycloak %>
args: ["start --import-realm"]
args: "start --import-realm"
env:
- name: KEYCLOAK_ADMIN
value: "admin"
Expand Down
2 changes: 1 addition & 1 deletion generators/server/resources/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL ALIAS=consul-config-loader
FROM postgres:16.1
LABEL ALIAS=postgresql

FROM quay.io/keycloak/keycloak:22.0.5
FROM quay.io/keycloak/keycloak:23.0.0
LABEL ALIAS=keycloak

FROM mysql:8.2.0
Expand Down

0 comments on commit 0f76479

Please sign in to comment.