Skip to content

Commit eb225fc

Browse files
committed
🔧(keycloak) Fix https required issue in dev mode
On some environments keycloak returns a 'HTTPS required' message on login. The same issue was fixed in drive by changing the 'sslRequired' value from 'external' to 'none'. Also upgrade keycloak up to 26.3.2 Signed-off-by: Fabre Florian <ffabre@hybird.org>
1 parent b893a29 commit eb225fc

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ and this project adheres to
7171
- 🐛(frontend) fix dnd conflict with tree and Blocknote #1328
7272
- 🐛(frontend) fix display bug on homepage #1332
7373
- 🐛link role update #1287
74+
- 🔧(keycloak) Fix https required issue in dev mode #1286
7475

7576
## [3.5.0] - 2025-07-31
7677

compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,20 @@ services:
184184
- env.d/development/kc_postgresql.local
185185

186186
keycloak:
187-
image: quay.io/keycloak/keycloak:20.0.1
187+
image: quay.io/keycloak/keycloak:26.3
188188
volumes:
189189
- ./docker/auth/realm.json:/opt/keycloak/data/import/realm.json
190190
command:
191191
- start-dev
192192
- --features=preview
193193
- --import-realm
194-
- --proxy=edge
195-
- --hostname-url=http://localhost:8083
196-
- --hostname-admin-url=http://localhost:8083/
194+
- --hostname=http://localhost:8083
197195
- --hostname-strict=false
198-
- --hostname-strict-https=false
199196
- --health-enabled=true
200197
- --metrics-enabled=true
201198
healthcheck:
202-
test: ["CMD", "curl", "--head", "-fsS", "http://localhost:8080/health/ready"]
199+
test: ['CMD-SHELL', 'exec 3<>/dev/tcp/localhost/9000; echo -e "GET /health/live HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n" >&3; grep "HTTP/1.1 200 OK" <&3']
200+
start_period: 5s
203201
interval: 1s
204202
timeout: 2s
205203
retries: 300

docker/auth/realm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"oauth2DeviceCodeLifespan": 600,
2727
"oauth2DevicePollingInterval": 5,
2828
"enabled": true,
29-
"sslRequired": "external",
29+
"sslRequired": "none",
3030
"registrationAllowed": true,
3131
"registrationEmailAsUsername": false,
3232
"rememberMe": true,
@@ -2270,7 +2270,7 @@
22702270
"cibaInterval": "5",
22712271
"realmReusableOtpCode": "false"
22722272
},
2273-
"keycloakVersion": "20.0.1",
2273+
"keycloakVersion": "26.3.2",
22742274
"userManagedAccessAllowed": false,
22752275
"clientProfiles": {
22762276
"profiles": []

0 commit comments

Comments
 (0)