-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Ranger): refactor the logic when ranger performs ACL (#1518)
#1054 This patch fixes the judgment logic when ranger matches policies: 1. Traverse all resource policies i. If the current policy matches deny_condition a. does not match any deny_exclude, returns kDenied, and the traversal ends b. A deny_exclude is matched, return kPending, and continue to the next policy judgment ii. No policy is matched or the return value is kPending, enter 2 2. Traverse all resource policies again i. If the current policy matches allow_condition a. does not match any allow_exclude, returns kAllowed, and the traversal ends b. An allow_exclude is matched, return kPending, and continue to the next policy judgment ii. If the return value is kPending, it will return kDenied 3. dose not match any policy, return kDenied
- Loading branch information
Showing
10 changed files
with
832 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.