This repository was archived by the owner on May 14, 2021. It is now read-only.
Implement v4 signatures for S3 calls.#35
Open
ab wants to merge 3 commits into
Open
Conversation
This makes it possible for users of Citadel to get the full response body from S3 requests and to take custom action depending upon various different errors without needing to parse the string error message. For example, this enables callers to distinguish between HTTP 404 and HTTP 403 errors by using `err.wrapped_exception.response.code`.
It would probably be better to use the aws-sdk or aws-sigv4 gems directly, but this will work for now. This allows Citadel to work with KMS encrypted data and with AWS regions that came online in 2014 or later. Fixes: poise#28
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
==========================================
+ Coverage 87.95% 91.37% +3.42%
==========================================
Files 6 6
Lines 83 116 +33
==========================================
+ Hits 73 106 +33
Misses 10 10
Continue to review full report at Codecov.
|
|
@coderanger Any thoughts on this? |
Member
|
I'm working on a conference talk and won't have time to review this for another week or two. |
|
Ping |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
It would probably be better to use the aws-sdk or aws-sigv4 gems directly,
but this will work for now.
This allows Citadel to work with KMS encrypted data and with AWS regions
that came online in 2014 or later.
Fixes: #28