-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
aws/signer/v4: Add support for URL.EscapedPath to signer #885
Merged
Conversation
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
jasdel
force-pushed
the
feature/SignEscapeStrategy
branch
from
October 10, 2016 20:42
91a272f
to
3d5fec3
Compare
jasdel
changed the title
aws/signer/v4: Add support for URL.RawPath to signer
aws/signer/v4: Add support for URL.EscapedPath to signer
Oct 10, 2016
jasdel
force-pushed
the
feature/SignEscapeStrategy
branch
from
October 10, 2016 21:07
3d5fec3
to
81b9c8f
Compare
Adds support for the URL.EscapedPath method added in Go1.5. This allows you to hint to the signer and Go HTTP client what the escaped form of the request's URI path will be. This is needed when using the AWS v4 Signer outside of the context of the SDK on http.Requests you manage. Also adds documentation to the signer that pre-escaping of the URI path is needed, and suggestions how how to do this. aws/signer/v4 TestStandaloneSign test function is an example using the request signer outside of the SDK. Fix aws#866
jasdel
added a commit
to jasdel/aws-sdk-go
that referenced
this pull request
Oct 12, 2016
Service Model Updates --- * `service/ecr`: Update Amazon EC2 Container Registry service model * DescribeImages is a new api used to expose image metadata which today includes image size and image creation timestamp. * `service/elasticache`: Update Amazon ElastiCache service model * Elasticache is launching a new major engine release of Redis, 3.2 (providing stability updates and new command sets over 2.8), as well as ElasticSupport for enabling Redis Cluster in 3.2, which provides support for multiple node groups to horizontally scale data, as well as superior engine failover capabilities SDK Bug Fixes --- * `aws/session`: Skip shared config on read errors (aws#883) * `aws/signer/v4`: Add support for URL.EscapedPath to signer (aws#885) SDK Features --- * `private/model/api`: Add docs for errors to API operations (aws#881) * `private/model/api`: Improve field and waiter doc strings (aws#879) * `service/dynamodb/dynamodbattribute`: Allow multiple struct tag elements (aws#886) * Add build tags to internal SDK tools (aws#880)
jasdel
added a commit
to jasdel/aws-sdk-go
that referenced
this pull request
Oct 12, 2016
Service Model Updates --- * `service/ecr`: Update Amazon EC2 Container Registry service model * DescribeImages is a new api used to expose image metadata which today includes image size and image creation timestamp. * `service/elasticache`: Update Amazon ElastiCache service model * Elasticache is launching a new major engine release of Redis, 3.2 (providing stability updates and new command sets over 2.8), as well as ElasticSupport for enabling Redis Cluster in 3.2, which provides support for multiple node groups to horizontally scale data, as well as superior engine failover capabilities SDK Bug Fixes --- * `aws/session`: Skip shared config on read errors (aws#883) * `aws/signer/v4`: Add support for URL.EscapedPath to signer (aws#885) SDK Features --- * `private/model/api`: Add docs for errors to API operations (aws#881) * `private/model/api`: Improve field and waiter doc strings (aws#879) * `service/dynamodb/dynamodbattribute`: Allow multiple struct tag elements (aws#886) * Add build tags to internal SDK tools (aws#880)
Merged
jasdel
added a commit
that referenced
this pull request
Oct 12, 2016
Service Model Updates --- * `service/ecr`: Update Amazon EC2 Container Registry service model * DescribeImages is a new api used to expose image metadata which today includes image size and image creation timestamp. * `service/elasticache`: Update Amazon ElastiCache service model * Elasticache is launching a new major engine release of Redis, 3.2 (providing stability updates and new command sets over 2.8), as well as ElasticSupport for enabling Redis Cluster in 3.2, which provides support for multiple node groups to horizontally scale data, as well as superior engine failover capabilities SDK Bug Fixes --- * `aws/session`: Skip shared config on read errors (#883) * `aws/signer/v4`: Add support for URL.EscapedPath to signer (#885) SDK Features --- * `private/model/api`: Add docs for errors to API operations (#881) * `private/model/api`: Improve field and waiter doc strings (#879) * `service/dynamodb/dynamodbattribute`: Allow multiple struct tag elements (#886) * Add build tags to internal SDK tools (#880)
skotambkar
pushed a commit
to skotambkar/aws-sdk-go
that referenced
this pull request
May 20, 2021
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.
aws/signer/v4: Add support for URL.EscapedPath to signer
Adds support for the URL.EscapedPath method added in Go1.5. This allows
you to hint to the signer and Go HTTP client what the escaped form of the
request's URI path will be. This is needed when using the AWS v4 Signer
outside of the context of the SDK on http.Requests you manage.
Also adds documentation to the signer that pre-escaping of the URI path
is needed, and suggestions how how to do this.
aws/signer/v4 TestStandaloneSign test function is an example
using the request signer outside of the SDK.
Fix #866