Skip to content

[v3-4-test] Speed up API server requests by keeping JWT checks off the event loop (#74856) - #75409

Merged
vatsrahul1001 merged 1 commit into
apache:v3-4-testfrom
aws-mwaa:vincbeck/backport-74856
Oct 23, 2026
Merged

vatsrahul1001 merged 1 commit into
apache:v3-4-testfrom
aws-mwaa:vincbeck/backport-74856

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

Backport of #74856

(cherry picked from commit 7cae03b)


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

…e event loop (apache#74856)

Static UI assets, the health check and the version endpoint never read the
user, yet every one of these requests carrying the session cookie decoded the
JWT and queried the revoked token table. The middleware also added a
BaseHTTPMiddleware task and body stream to every request, including the large
streamed UI bundle, so a cold UI load serialized on each API server worker.

Auth managers may block in refresh_user (for example when calling an identity
provider), which stalled every concurrent request on the worker.

(cherry picked from commit 7cae03b)
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Oct 22, 2026
@vatsrahul1001
vatsrahul1001 merged commit 30497eb into apache:v3-4-test Oct 23, 2026
72 checks passed
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants