You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/22 20:42:28 UTC
[GH] (airflow/fix/60897-auth-role-public-login): Workflow run "Tests" failed!
The GitHub Actions job "Tests" on airflow.git/fix/60897-auth-role-public-login has failed.
Run started by GitHub user gaurav0107 (triggered by vincbeck).
Head commit for run:
6041356ee4462d50398db49f41c1fa49129aefa2 / gaurav0107 <ga...@gmail.com>
Refactor AUTH_ROLE_PUBLIC support to use middleware pattern
Per @vincbeck's review, replace the BaseAuthManager.get_public_user()
method with a middleware approach mirroring SimpleAllAdminMiddleware.
- Add generic BaseAuthManager.get_fastapi_middlewares() extension hook
that auth managers override to register their own middlewares.
- New FabAuthRolePublicMiddleware attaches an AnonymousUser to
request.state.user for unauthenticated requests when [fab]
auth_role_public is configured. The FastAPI get_user dependency
short-circuits on request.state.user, so no JWT minting is needed.
- Revert security.py to upstream behavior (401 on missing token).
- Rename FabAuthManager.get_public_user -> build_public_user and mark
as :meta private: since it's an implementation detail consumed only
by the middleware.
Addresses https://github.com/apache/airflow/pull/65685#discussion_r3125995253
Co-Authored-By: Claude Opus 4.7 (1M context) <no...@anthropic.com>
Report URL: https://github.com/apache/airflow/actions/runs/24798018189
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org