You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API endpoints for sharing HITL details, operations through links from HITLOperators #52202
An URL endpoint is provided that can be used to provide a prepared link that can be shared (utility to generate included in provider to automate creation of notifications)
Directly opens and re-directs to the dialog with details
Directly trigger one action as a single-click (e.g. single click on a link in an email to approve) - assuming user is logged-in before
Security first! This would need to be explicitly enabled in configuration and a token would be added when generating to ensure CSRF is not made by artificial URLs. URLs would need to be generated by the utility before distribution.
, we need a URL endpoint for users to perform actions on HITLOperators.
What
A URL endpoint that can generate a link that opens and redirects to the Airflow page, where the user can choose an option and enter input
A URL endpoint that generates a link that sends a patch request to /api/v2/hitl-details/{dag_id}/{dag_run_id}/{task_id} and /api/v2/hitl-details/{dag_id}/{dag_run_id}/{task_id}/{map_index} with proper option embed (e.g., {"chosen_options": ["a", "b"], "params_input": {"input_1": 1}}) to Airflow if the user has logged in and has sufficient permission
An airflow config that allows the user to enable the two URL endpoints above. Without explicit setup, the two URL endpoints should not be hooked into Airflow.
For the above two URL endpoints, we need to add a token to ensure CSRF is not made by artificial URLs.
The endpoints for HITL-details are now ready. Please use {dag_id}/{dag_run_id}/{task_id} or /{dag_id}/{dag_run_id}/{task_id}/{map_index} as suffix of the new endpoint
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
changed the title [-]API endpoint for sharing input requests from `HITLOperator`s[/-][+]API endpoints for sharing HITL details, operations through links from `HITLOperator`s[/+]on Jul 3, 2025
Activity
[-]API endpoint for sharing input requests from `HITLOperator`s[/-][+]API endpoints for sharing HITL details, operations through links from `HITLOperator`s[/+]Lee-W commentedon Jul 3, 2025
@sunank200 I've just updated the description. please let me know if it's better now. Thanks!
Lee-W commentedon Jul 11, 2025
updated the description with some more details, but I think what we discussed should have already cover it
Lee-W commentedon Jul 28, 2025
Hey @sunank200 , could you please link the new PR to this issue? Thanks!
sunank200 commentedon Jul 28, 2025
@Lee-W I have pushed the current change in astronomer@36b2f34. I will create the PR once it's ready today.
Lee-W commentedon Jul 29, 2025
Let's create a draft PR first, even before it's fully ready 🙂
sunank200 commentedon Jul 30, 2025
Draft PR: #53907
Lee-W commentedon Aug 20, 2025
de-scope as consensus reached in #53907