mtsadler-branch commented on issue #9342: URL: https://github.com/apache/airflow/issues/9342#issuecomment-1555043927
@potiuk I wrote some python logic for [dag owners](https://gist.github.com/mtsadler-branch/37b12b4d296d7dab17ffd8fa98c6a681) and [dag tags](https://gist.github.com/mtsadler-branch/41473f8a771439448c860d5695f79c7f), and wrapped them in a DAG to run every 30 mins. IDK how this relates to the longterm solution.. `owner` DAG-level permissions asumes the `User.email` matches the `dag.owner` field. `tags` DAG-level permissions piggybacked off `owner` logic, by defining a "global" [TAG_EMAIL_MAPPING](https://gist.github.com/mtsadler-branch/41473f8a771439448c860d5695f79c7f#file-dag_tags_rbac-py-L18), that specifies which emails are tied to which tags. **NB**: In the example DAGs I linked, I haven't implemented any logic for removing access when an `owner` is replaced or when `TAG_EMAIL_MAPPING` removes an email from the list. -- 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]
