From ca4395953cd68d825b9d5f4ddcd8562fbcdbfd50 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 07:35:09 +0000 Subject: [PATCH 1/2] Update quay.io/keycloak/keycloak Docker tag to v26 --- services/backend/services/keycloak/compose.base.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/backend/services/keycloak/compose.base.yaml b/services/backend/services/keycloak/compose.base.yaml index 59c0984e..2e8b62fb 100644 --- a/services/backend/services/keycloak/compose.base.yaml +++ b/services/backend/services/keycloak/compose.base.yaml @@ -1,6 +1,6 @@ services: keycloak: - image: quay.io/keycloak/keycloak:25.0 + image: quay.io/keycloak/keycloak:26.0 command: start-dev --import-realm --http-port=80 env_file: ./config/.env volumes: From 1f084078eba025c4618e427df323dcb21265c0b2 Mon Sep 17 00:00:00 2001 From: Spencer Bliven Date: Thu, 21 Nov 2024 11:47:22 +0100 Subject: [PATCH 2/2] Fix healthcheck for keycloak 26 The healthcheck was failing for two reasons: 1. --health-enabled now defaults to false 2. It validates HTTP requests more strictly. Thus a bug in the GET request from healthcheck.sh was successful in 25.0 but gave a 400 response in 26.0 --- services/backend/services/keycloak/compose.base.yaml | 2 +- services/backend/services/keycloak/healthcheck/healthcheck.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/backend/services/keycloak/compose.base.yaml b/services/backend/services/keycloak/compose.base.yaml index 2e8b62fb..8e6cadff 100644 --- a/services/backend/services/keycloak/compose.base.yaml +++ b/services/backend/services/keycloak/compose.base.yaml @@ -1,7 +1,7 @@ services: keycloak: image: quay.io/keycloak/keycloak:26.0 - command: start-dev --import-realm --http-port=80 + command: start-dev --import-realm --health-enabled=true --http-port=80 env_file: ./config/.env volumes: - ./healthcheck/healthcheck.sh:/healthcheck.sh diff --git a/services/backend/services/keycloak/healthcheck/healthcheck.sh b/services/backend/services/keycloak/healthcheck/healthcheck.sh index c40baf18..b66a8a59 100755 --- a/services/backend/services/keycloak/healthcheck/healthcheck.sh +++ b/services/backend/services/keycloak/healthcheck/healthcheck.sh @@ -4,7 +4,7 @@ if ! exec 3<>/dev/tcp/localhost/9000; then exit 1 fi -printf "GET /health/ready HTTP/1.1\r\nHost: localhostConnection: close\r\n\r\n" >&3 +printf "GET /health/ready HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n" >&3 timeout --preserve-status 5 grep -m 1 "UP" <&3 exit_status=$? exec 3>&-