Skip to content
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
merged 3 commits into from
Oct 10, 2016

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Oct 10, 2016

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

@jasdel jasdel force-pushed the feature/SignEscapeStrategy branch from 91a272f to 3d5fec3 Compare October 10, 2016 20:42
@jasdel 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 jasdel force-pushed the feature/SignEscapeStrategy branch from 3d5fec3 to 81b9c8f Compare October 10, 2016 21:07
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 jasdel merged commit d6072f0 into aws:master Oct 10, 2016
@jasdel jasdel deleted the feature/SignEscapeStrategy branch October 10, 2016 22:28
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)
@jasdel jasdel mentioned this pull request Oct 12, 2016
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant