The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-fab-auth-role-public-401 has failed.
Run started by GitHub user lyric2249 (triggered by eladkal).

Head commit for run:
c113fe3280124f3049bde2ff700f6dedea86b0ac / lyric2249 <[email protected]>
Fix AUTH_ROLE_PUBLIC returning 401 in FastAPI API server

FabAuthRolePublicMiddleware only sets request.state.user for
anonymous requests. Core's get_user() dependency also checks
request.state.user_authenticated_via for the trusted-middleware
sentinel before skipping JWT validation, so every anonymous request
falls through to JWT validation, has no token, and is rejected with
401 regardless of AUTH_ROLE_PUBLIC (or [fab] auth_role_public) being
configured correctly.

Set the same trust marker JWTRefreshMiddleware already sets when it
pre-authenticates a request, so both middlewares honor the same
contract.

Report URL: https://github.com/apache/airflow/actions/runs/29189797684

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to