Repository navigation
Conversation
…Object Authorize the source of a versioned copy with objectGetVersion, the action checked by the authorization service, so its implicit deny is no longer read as an allow and bucket policy statements on s3:GetObjectVersion apply. Keep evaluating quotas for such a copy.
Contributor
Hello tcarmet,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Contributor
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Comment on lines
+258
to
+259
| const copySourceApiName = apiName === 'objectGetVersion' ? 'objectGet' : apiName; | ||
| if (actionNeedQuotaCheckCopy(copySourceApiName, apiMethod)) { |
Contributor
There was a problem hiding this comment.
This looks kinda convoluted to me, as actionNeedQuotaCheckCopy is a super simple function that may not deserve to be in Arsenal IMHO.
I think one of the following could be done:
- the whole logic could probably be just pasted there and then the new
objectGetVersioncase be inserted naturally in the tested condition - the copy-specific actions may be inserted in the
actionNeedQuotaCheckconstant object in arsenal, and the extra source action condition can be pasted in here, but this may have side-effects asactionNeedQuotaCheckis used elsewhere.
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a copy named a specific version of its source (
?versionId=, includingnull), the source read was checked as a GetObject, while the identity check had been made for GetObjectVersion. So the requester's identity policy was never applied, and bucket policy statements ons3:GetObjectVersionwere ignored. A copy of a specific version is now authorized like a GetObject of that version, and its quota is still evaluated. As a result, a bucket policy Deny meant to protect every version must covers3:GetObjectVersion(ors3:GetObject*), not onlys3:GetObject.