Skip to content

Reserve /auth and /pluginsv2 from plugin url_prefix#66501

Merged
vincbeck merged 1 commit intoapache:mainfrom
potiuk:f-009-reserve-auth-pluginsv2
May 7, 2026
Merged

Reserve /auth and /pluginsv2 from plugin url_prefix#66501
vincbeck merged 1 commit intoapache:mainfrom
potiuk:f-009-reserve-auth-pluginsv2

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 7, 2026

The framework mounts the auth-manager subapp under /auth and the FAB plugin shim under /pluginsv2, but RESERVED_URL_PREFIXES only listed /api/v2, /ui, and /execution. A trusted plugin attempting to mount under either of the missing prefixes was accepted and (because plugin init runs before the auth-manager mount) would shadow the auth routes.

Plugins are trusted code per Airflow's security model so this is defense-in-depth, not a vulnerability — but accidental collisions with the auth-manager / Flask-plugins mount points should be caught and logged like the other reserved prefixes.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Opus 4.7 (1M context)

Generated-by: Claude Opus 4.7 (1M context) following the guidelines

The framework mounts the auth-manager subapp under /auth and the FAB
plugin shim under /pluginsv2, but RESERVED_URL_PREFIXES only listed
/api/v2, /ui, and /execution. A trusted plugin attempting to mount under
either of the missing prefixes was accepted and (because plugin init runs
before the auth-manager mount) would shadow the auth routes.

Plugins are trusted code per Airflow's security model so this is
defense-in-depth, not a vulnerability — but accidental collisions with
the auth-manager / Flask-plugins mount points should be caught and
logged like the other reserved prefixes.
@potiuk potiuk force-pushed the f-009-reserve-auth-pluginsv2 branch from ff3c089 to f054156 Compare May 7, 2026 02:20
Copy link
Copy Markdown
Contributor

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vincbeck vincbeck merged commit 1100afb into apache:main May 7, 2026
143 checks passed
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.

2 participants