-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Storage: add support for V4 signed URLs #7460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1d2d7f9
Rename '_signing.generate_signed_url' -> 'generate_signed_url_v2'.
tseaver cca6312
Add '_signing.generate_signed_url_v4'.
tseaver 6a6566b
Expose V4 signing via 'Blob.generate_signed_url'.
tseaver 9a25e9a
Uppercase signature query param name.
tseaver 7ea200a
Set headers from 'content_{type,md5}' params.
tseaver 98b7e45
Pass user-supplied query parameters through for V4 signing.
tseaver 78d7de5
Plumb 'headers'/'query_parameters' args through to 'Blob.generate_sig…
tseaver 188d0a3
Fix non-ascii blob name tests under Python 2.
tseaver 31dade9
Blacken.
tseaver 5c114d6
Lint.
tseaver 01e2cd9
Document semantics of 'headers' passed when generating signed URLs.
tseaver 9113cdd
Don't use subresource names in query string tests.
tseaver ba065a1
Fix header/qp handling for V2 signing.
tseaver c39ac66
Rename helper to indicate V2-only.
tseaver 8b94be4
Fix typo causing signing tests to be skipped.
tseaver 943e273
Prepare signed URL systests for testing both V2 and V4.
tseaver 0c9c812
Add 'max_age' argument to 'Blob.generate_signed_url'.
tseaver a78605d
Add 'Host' header to signed headers, if not passed.
tseaver 5a6d44c
Add support for system tests using 'expiration' and 'max_age'.
tseaver 9833d68
Add partial V4 conformance test suite and bash to fit.
tseaver c860d51
Add support for bucket-level conformance tests.
tseaver 87aa6b6
Add 'Simple headers' conformance test and fix.
tseaver e08ad30
Add conformance tests for collapsed header values and fix.
tseaver db05933
Lint.
tseaver dada493
Add V4 systests paralleling existing V2 tests.
tseaver de892c6
Add 'Bucket.generate_signed_url' method.
tseaver eae12c5
Add systests for listing bucket blobs (V2/V4).
tseaver dc7bd12
Add warning for users signing URLs without passing an explicit version.
tseaver c52e2db
Clean up V2 signing using 'canonicalize' better.
tseaver 2c5759e
Tidy up V4 signing using 'get_canonical_headers'.
tseaver 7617b4f
Handle 'RESUMABLE' method alias for V4 signing.
tseaver d33c68e
Add round-trip systest for signed resumable uploads.
tseaver c37e77a
Remove 'max_age' argument for signing.
tseaver 2d04844
Remove warning when no version is passed to 'generate_signed_url'.
tseaver ccccaed
Remove warning message template.
tseaver 3a583a4
Remove no-version warning for 'Bucket.generate_signed_url', too.
tseaver 8f2e13f
Un-skip systests blocked on back-end case-flattening bug (now fixed).
tseaver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tseaver could you add a warning as log output that V2 will change to V4 in the future:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a384692