You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/06/05 03:31:22 UTC

[GH] (airflow/enforce-ti-self-scope-on-task-reschedules-start-date): Workflow run "Tests (AMD)" failed!

The GitHub Actions job "Tests (AMD)" on airflow.git/enforce-ti-self-scope-on-task-reschedules-start-date has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
855f993838dfba56d47eed84aa4bcdac3f86e647 / Jarek Potiuk <ja...@potiuk.com>
Enforce ti:self scope on /execution/task-reschedules/{ti}/start_date

Three sibling per-task-instance routers under `airflow.api_fastapi.execution_api.routes` opt into the `ti:self` JWT scope, which verifies that the token's `sub` claim matches the `{task_instance_id}` path parameter, preventing a worker from accessing another task's endpoints: `task_instances.py`, `hitl.py`, and `task_state.py`. The `task_reschedules.py` router for `GET /execution/task-reschedules/{task_instance_id}/start_date` was missing that scope, so any authenticated worker could read the first reschedule timestamp of any task instance in the deployment by passing that task instance's UUID in the URL path.

This change adds the standard `dependencies=[Security(require_auth, scopes=["ti:self"])]` to the router declaration — the same pattern the three sibling routers already use. One new regression test under `TestGetRescheduleStartDate` exercises the mismatched-subject path and asserts 403.

Reference: airflow-s/airflow-s#406

Generated-by: Claude Opus 4.7 (1M context) following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

Report URL: https://github.com/apache/airflow/actions/runs/26990986007

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org