This is an automated email from the ASF dual-hosted git repository.

weilee pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 1bf7cbc9a52 [v3-1-test] Fix: Adds task instance validation for hitl 
(#62886) (#62909)
1bf7cbc9a52 is described below

commit 1bf7cbc9a520df94d9bad2478f263d285cdb20b3
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Mar 5 15:09:45 2026 +0800

    [v3-1-test] Fix: Adds task instance validation for hitl (#62886) (#62909)
    
    Co-authored-by: Aritra Basu <[email protected]>
---
 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 50b9377d2f8..8613855e387 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__)
 

Reply via email to