Skip to content

Check Variable write conflicts against the team being written - #72042

Merged
ferruzzi merged 3 commits into
apache:mainfrom
aws-mwaa:ferruzzi/write-conflict-team-scope
Aug 27, 2026
Merged

Check Variable write conflicts against the team being written#72042
ferruzzi merged 3 commits into
apache:mainfrom
aws-mwaa:ferruzzi/write-conflict-team-scope

Conversation

@ferruzzi

Copy link
Copy Markdown
Contributor

Variable.check_for_write_conflict didn't pass team_name, so a team-scoped write had its conflict check resolved against the global scope. A backend shadowing the key in that team went undetected, while a global-only one warned about a conflict that would not actually shadow the read. Both callers already had the value and had validated it against [core] multi_team; it just was not forwarded. The lookup now also goes through call_secrets_backend_method, which forwards team_name only to overrides that accept it, so custom backends on the pre-3.2 get_variable(self, key) signature keep working.

  • Yes (please specify the tool below)

Generated-by: Kiro (claude-opus-5) following the guidelines

@ferruzzi
ferruzzi requested review from o-nikolas and vincbeck August 25, 2026 02:10
@ferruzzi
ferruzzi marked this pull request as ready for review August 25, 2026 02:11
@ferruzzi
ferruzzi requested review from XD-DENG and ashb as code owners August 25, 2026 02:11
@ferruzzi
ferruzzi force-pushed the ferruzzi/write-conflict-team-scope branch from fe460cd to 97f697d Compare August 25, 2026 02:25
@vincbeck vincbeck added the backport-to-v3-3-test Backport to v3-3-test label Aug 25, 2026

@vincbeck vincbeck 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.

Indeed, big miss. Thanks for fixing it!

@ferruzzi
ferruzzi merged commit fc6c8b1 into apache:main Aug 27, 2026
78 checks passed
@ferruzzi
ferruzzi deleted the ferruzzi/write-conflict-team-scope branch August 27, 2026 00:11
@github-actions github-actions Bot added this to the Airflow 3.3.2 milestone Aug 27, 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.3.2 based on: backport label targeting v3-3-test
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 27, 2026
…tten (apache#72042)

(cherry picked from commit fc6c8b1)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 27, 2026
…tten (apache#72042)

(cherry picked from commit fc6c8b1)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants