This is an automated email from the ASF dual-hosted git repository.
vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1311365a387 Fix Keycloak not starting in Breeze with Postgres 15 and
later (#77440)
1311365a387 is described below
commit 1311365a3872e5c0b89bc5e24ce913dfc59d8864
Author: Baptiste Gouhoury <[email protected]>
AuthorDate: Mon Nov 23 18:44:20 2026 +0100
Fix Keycloak not starting in Breeze with Postgres 15 and later (#77440)
Since Postgres 15, only the database owner may create objects in the
public schema, and a GRANT on the database no longer allows it. The
keycloak database was owned by postgres, so Keycloak's schema migration
failed with "permission denied for schema public" and Keycloak never
started with the default Breeze Postgres version.
Generated-by: Claude Code (Opus 5.5)
---
scripts/ci/docker-compose/keycloak/init-keycloak-db.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/ci/docker-compose/keycloak/init-keycloak-db.sh
b/scripts/ci/docker-compose/keycloak/init-keycloak-db.sh
index 47df6aede20..b6e199c252e 100755
--- a/scripts/ci/docker-compose/keycloak/init-keycloak-db.sh
+++ b/scripts/ci/docker-compose/keycloak/init-keycloak-db.sh
@@ -22,6 +22,5 @@ set -eu
psql -v ON_ERROR_STOP=1 --username "${POSTGRES_USER}" > /dev/null <<-EOSQL
CREATE USER ${KC_POSTGRES_USER};
ALTER USER ${KC_POSTGRES_USER} WITH PASSWORD '${KC_POSTGRES_PASSWORD}';
- CREATE DATABASE ${KC_POSTGRES_DB};
- GRANT ALL PRIVILEGES ON DATABASE ${KC_POSTGRES_DB} TO ${KC_POSTGRES_USER};
+ CREATE DATABASE ${KC_POSTGRES_DB} OWNER ${KC_POSTGRES_USER};
EOSQL