taehwoi opened a new issue, #70495:
URL: https://github.com/apache/airflow/issues/70495

   ### Description
   
   Make secrets backends receive the DAG bundle's team_name during DAG file 
parsing, the same way they receive it during task execution. 
   
   This makes team-scoped resolution consistent between parse time and run 
time, so a team-scoped backend (for example one routing to a per-team Vault by 
team_name) can resolve config for a bundle's DAGs while they are being parsed.
   
   Today team_name is always None at parse time.
   
   ### Use case/motivation
   
   Multi-team dynamic DAG generation that reads a team-scoped connection or 
variable at parse time. A bundle belongs to a team, but a team-scoped secrets 
backend can resolve config for that bundle's tasks and not for parsing of the 
same bundle's files, because team_name is None there.
   
    The bundle to team mapping needed to close the gap is already in the DAG 
processor.
   
   ### Related issues
   
   https://github.com/apache/airflow/issues/65530
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to