Skip to content

S3 support for AWS Seoul region - #687

Closed
encyphered wants to merge 9 commits into
apache:trunkfrom
encyphered:aws-s3-apne2
Closed

S3 support for AWS Seoul region#687
encyphered wants to merge 9 commits into
apache:trunkfrom
encyphered:aws-s3-apne2

Conversation

@encyphered

Copy link
Copy Markdown
Contributor

Support S3 Seoul region. In addition, this PR includes modification about Amazon signature V4 due to Seoul region does not support signature V2.

Modification that S3 requires:

  • Removed HTTP method restriction from AWSRequestSignerAlgorithmV4
  • Added hash of the request payload as X-AMZ-Content-SHA256 header
  • Prevent Host / Accept-Encoding header duplication

Due to headers dictionary always have host / accept-encoding value, when
perform 'raw' request, host / accept-encoding header would be
duplicated. If you use AWSRequestSignerAlgorithmV4, this occurs invalid
payload hash.
AWS S3 operations require HEAD / PUT / GET request
Type of header value may be other than a str, such as int.
e.g. Value of content-lengh when POST/PUT
Missing X-AMZ-Content-SHA256 header can occur 400 bad request
on several service such as S3
MockHttp.putrequest method signature is now same as
httplib.HTTPConnection.putrequest
Comment thread libcloud/storage/drivers/s3.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to shorten this line further.

@tonybaloney

Copy link
Copy Markdown
Contributor

Hi @encyphered this PR is missing a small change before it can be merged. please see the build status light.

@tonybaloney

Copy link
Copy Markdown
Contributor

Thanks @encyphered LGTM 👍

@asfgit asfgit closed this in 17c2217 Feb 9, 2016
@encyphered
encyphered deleted the aws-s3-apne2 branch February 11, 2016 10:03
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.

2 participants