sreecharan-desu opened a new pull request, #75653:
URL: https://github.com/apache/airflow/pull/75653
related: #75461
After #71192, `PATCH /execution/callbacks/{callback_id}/run` exchanges a
callback token for an `execution` token whose `token.id` is the `Callback` UUID
rather than a `TaskInstance` UUID. In multi-team mode, `get_team_name_dep` and
`has_xcom_access` only queried `_team_name_for_ti_stmt(token.id)`, returning
`None` when synchronous callbacks read team-scoped connections, variables, or
XComs.
- add `_team_name_for_callback_stmt(callback_id)` resolving
`Callback.bundle_name` to `Team.name` via `DagBundleModel`
- fall back to `_team_name_for_callback_stmt(token.id)` in
`get_team_name_dep` and `has_xcom_access` when no `TaskInstance` matches
`token.id`
- add unit tests in `test_security.py` and `test_xcoms.py`
---
##### Was generative AI tooling used to co-author this PR?
- [ ] Yes (please specify the tool below)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]