Skip to content

Add team_name attribute to plugins for multi-team#69502

Open
o-nikolas wants to merge 3 commits into
apache:mainfrom
aws-mwaa:onikolas/multi-team-plugins/foundation
Open

Add team_name attribute to plugins for multi-team#69502
o-nikolas wants to merge 3 commits into
apache:mainfrom
aws-mwaa:onikolas/multi-team-plugins/foundation

Conversation

@o-nikolas

Copy link
Copy Markdown
Contributor

First step for Plugin team awareness. This adds a team_name attribute to AirflowPlugin so a plugin can be scoped to a team, exposes it through the plugins API, and filters the /api/v2/plugins listing so users only see global plugins and plugins for teams they are authorized for when multi-team mode is enabled. The API server also validates at startup that every team-scoped plugin references an existing team.


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.

Comment thread airflow-core/src/airflow/plugins_manager.py
o-nikolas added 2 commits July 7, 2026 16:31
First step for Plugin team awareness. This adds a team_name attribute to
AirflowPlugin so a plugin can be scoped to a team, exposes it through the
plugins API, and filters the /api/v2/plugins listing so users only see
global plugins and plugins for teams they are authorized for when
multi-team mode is enabled. The API server also validates at startup that
every team-scoped plugin references an existing team.
@o-nikolas o-nikolas force-pushed the onikolas/multi-team-plugins/foundation branch from 4db68e0 to 408b7bb Compare July 8, 2026 17:00

@ramitkataria ramitkataria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 minor nit otherwise looks good to me!

Comment thread airflow-core/tests/unit/plugins/test_plugins_manager.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:airflow-ctl area:API Airflow's REST/HTTP API area:plugins area:UI Related to UI/UX. For Frontend Developers. backport-to-airflow-ctl/v0-1-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants