You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/07 10:30:00 UTC

[GitHub] [airflow] ashb commented on issue #16398: Enhance impersonation on Restful API

ashb commented on issue #16398:
URL: https://github.com/apache/airflow/issues/16398#issuecomment-875489732


   Do you want the run_as_user value of the dag to change based on which user submits the trigger DAG API call?
   
   That is not currently possible at all, so this is a bigger feature request than you might realise -- the run_as_user and all other task properties for a DAG come from the python file, and the python file only, so there's no real mechansim to control this.
   
   So first step on this: we need to come up with a design for letting some properties of the dag be overridden based on the DagRun.
   
   We have `dagrun.conf` already, which is one possible way, but that is only accessible to DAGs via template (i.e. `{{
   dag_run.conf.some_param }}`) which only applies to some fields.
   
   🤔 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org