Replies: 10 comments
|
Thanks for opening your first issue here! Be sure to follow the issue template! |
|
In manual jobs there is a specific user who triggered it - that doesn't exist for scheduled jobs. |
|
I'm looking for the manual jobs actually, currently, we can pass the info through the it would be amazing if a default default_conf can be configured for all CLI and web UI submissions. Since airflow would perform checks on the triggering user anyway. why not pass it in to the DAG so default_conf actually have some default info |
|
e.g., i could define a BashOperator that login to a web server, in which all the credentials are managed by connections for sure. but it would also be nice to tell the web server that who triggered the job manually if that happened |
|
Not commenting on whether this is a good idea or not, IMO a scheduled job could be categorised under either the DAG owner (since they scheduled the DAG) or |
|
maybe let me re-state the feature: allow the user to customize the default |
|
You can listen on |
|
i'm not sure i follow, how would the plugin pass on the |
Hi, I want to ask which variable/what kind of method can I use to get this specific user when manual trigger happens? |
|
In case folks are still looking for a solution to this (or future folks are looking, as I was last week), more recent versions of Airflow (3.1 and higher, I believe) allow you to pull |
Uh oh!
There was an error while loading. Please reload this page.
Description
It would be very useful if we can pass triggering user information to DAG. So that we can bring over the info to the downstream system for security auditing purpose
Use case / motivation
Expose some macro in the DAG, so user can use the trigger user info at will
Are you willing to submit a PR?
If someone can point me in the right direction
Related Issues
No
All reactions