This is an automated email from the ASF dual-hosted git repository.
weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 0f64abcee31 Fix: Adds task instance validation for hitl (#62886)
0f64abcee31 is described below
commit 0f64abcee310fd392ac8b42edd2e0311a777847b
Author: Aritra Basu <[email protected]>
AuthorDate: Thu Mar 5 09:57:25 2026 +0530
Fix: Adds task instance validation for hitl (#62886)
---
airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py
b/airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py
index 220bd357ed2..92e973a3d00 100644
--- a/airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py
+++ b/airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py
@@ -29,9 +29,15 @@ from airflow.api_fastapi.execution_api.datamodels.hitl
import (
HITLDetailResponse,
UpdateHITLDetailPayload,
)
+from airflow.api_fastapi.execution_api.deps import JWTBearerTIPathDep
from airflow.models.hitl import HITLDetail
-router = APIRouter()
+router = APIRouter(
+ dependencies=[
+ # This checks that the UUID in the url matches the one in the token
for us.
+ JWTBearerTIPathDep
+ ]
+)
log = structlog.get_logger(__name__)