Uh oh!
There was an error while loading. Please reload this page.
Fix DAG.access_control can't sync when clean access_control - #30340
Conversation
There was a problem hiding this comment.
Remove this if block completely so we sync perms in both cases. This is effectively reverting #15464.
There was a problem hiding this comment.
If a DAG’s access_control is empty, it check whether there’s existing permission configurations and reset those
tvd12
commented
Mar 31, 2023
Do you have any plan to merge it? I need this one for my project :( |
huymq1710
commented
Apr 10, 2023
This PR is ready for review |
potiuk
left a comment
There was a problem hiding this comment.
LGTM. But I know very little about that part of the codebase. @ephraimbuddy@kaxil@uranusjr - I think you've been doing some "real fixes" around that - maybe second opinon there?
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
* Reset permission if `access_control` is empty * Check `resource` before call `_revoke_all_stale_permissions` * Fix static checks (cherry picked from commit 2c0c8b8)
huymq1710
commented
Aug 24, 2023
Update: #33632 |
Closes: #25149
access_controlis empty, permission-sync is skipped entirely. I think it should check whether there’s existing permission configurations and reset those if needed instead.