Skip to content

Commit 1bf7cbc

Browse files
[v3-1-test] Fix: Adds task instance validation for hitl (#62886) (#62909)
Co-authored-by: Aritra Basu <24430013+aritra24@users.noreply.github.com>
1 parent 21e3601 commit 1bf7cbc

File tree

1 file changed

+7
-1
lines changed
  • airflow-core/src/airflow/api_fastapi/execution_api/routes

1 file changed

+7
-1
lines changed

airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@
2929
HITLDetailResponse,
3030
UpdateHITLDetailPayload,
3131
)
32+
from airflow.api_fastapi.execution_api.deps import JWTBearerTIPathDep
3233
from airflow.models.hitl import HITLDetail
3334

34-
router = APIRouter()
35+
router = APIRouter(
36+
dependencies=[
37+
# This checks that the UUID in the url matches the one in the token for us.
38+
JWTBearerTIPathDep
39+
]
40+
)
3541

3642
log = structlog.get_logger(__name__)
3743

0 commit comments

Comments
 (0)