anmolxlight opened a new pull request, #67031:
URL: https://github.com/apache/airflow/pull/67031

   closes: #67027
   
   ## What
   
   - Ensures non-team Keycloak role policies are created when running 
`keycloak-auth-manager create-permissions` or `create-all`.
   - Attaches default `Allow-*` role policies to the generated global 
permissions.
   - Adds a regression test covering the default/non-team authorization setup.
   
   ## Why
   
   In the default non-team setup, the CLI created Keycloak resources and 
permissions but did not wire role policies to those permissions. Users with 
`Admin` or `SuperAdmin` could authenticate successfully, but Keycloak UMA 
authorization for Airflow API resources evaluated to denied, causing API calls 
such as DAG list requests to return 403.
   
   ## Tests
   
   - `uv run --project providers/keycloak pytest 
providers/keycloak/tests/unit/keycloak/auth_manager -q`
   - `uv run ruff check 
providers/keycloak/src/airflow/providers/keycloak/auth_manager/cli/commands.py 
providers/keycloak/tests/unit/keycloak/auth_manager/cli/test_commands.py`
   - `uv run ruff format --check 
providers/keycloak/src/airflow/providers/keycloak/auth_manager/cli/commands.py 
providers/keycloak/tests/unit/keycloak/auth_manager/cli/test_commands.py`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to