-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evaluate the BypassGovernance permission during API authz
Previously, we were dynamically calling the internal authorization API to check if the identity, when not an account, has the permission to bypass the governance lock configuration. This call sent request contexts with information we already have when authorizing the API, except the type of identity. This commit introduces an optimization by including the Bypass action, when the header is set, directly when the api is authorized. If the identity is an account, the overhead is lower than doing another API call: no policy are evaluated. Both PutObjectRetention and DeleteObject API calls are updated accordingly.
- Loading branch information
1 parent
d11b522
commit 27aad0b
Showing
4 changed files
with
195 additions
and
38 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
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