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

Interacting with a bucket on s3-eu-central-1 (frankfurt) fails #102

Open
lloeki opened this issue Jun 10, 2015 · 6 comments
Open

Interacting with a bucket on s3-eu-central-1 (frankfurt) fails #102

lloeki opened this issue Jun 10, 2015 · 6 comments
Labels

Comments

@lloeki
Copy link

lloeki commented Jun 10, 2015

Operations such as bucket.objects.first fail.

First, it is now required to operate directly against a given endpoint: HOST cannot be a single constant anymore:

/Users/lloeki/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/s3-0.3.22/lib/s3/connection.rb:216:in `handle_response': The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (S3::Error::PermanentRedirect)

Indeed, hacking it with S3::HOST = "s3-eu-central-1.amazonaws.com" helps proceeding to the next step.

Then, this new endpoint makes v4 signatures mandatory:

/Users/lloeki/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/s3-0.3.22/lib/s3/connection.rb:216:in `handle_response': The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. (S3::Error::ResponseError)

Unfortunately this does not seem to be implemented.

@lloeki
Copy link
Author

lloeki commented Jun 10, 2015

I think here is the relevant documentation.

@qoobaa
Copy link
Owner

qoobaa commented Jun 10, 2015

I created the gem in 2009 to allow connecting to Europe location in Ireland. There was no Frankfurt location back then, so the gem is definitely not prepared for that. Feel free to create a PR with support for v4 signatures and Frankfurt endpoint.

@lloeki
Copy link
Author

lloeki commented Jun 10, 2015

I needed to make a quick script to solve some outstanding issue, so I fell back to use python's boto in the meantime.

@qoobaa qoobaa added the bug label Jul 6, 2015
@vnazarenko
Copy link

Still no support for v4?

@mr-deamon
Copy link

+1

@RdNetwork
Copy link

I second this. Would be very useful. Is there a fork or PR somewhere that could be used when facing this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants