This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-4-test by this push:
new fd3b46abc35 [v3-4-test] Fix Keycloak not starting in Breeze with
Postgres 15 and later (#77440) (#77500)
fd3b46abc35 is described below
commit fd3b46abc35fd1206640cb28791652c5bcff8d8c
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Nov 25 13:08:35 2026 +0000
[v3-4-test] Fix Keycloak not starting in Breeze with Postgres 15 and later
(#77440) (#77500)
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.
(cherry picked from commit 1311365a3872e5c0b89bc5e24ce913dfc59d8864)
Generated-by: Claude Code (Opus 5.5)
Co-authored-by: Baptiste Gouhoury <[email protected]>
---
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