s3 icon indicating copy to clipboard operation
s3 copied to clipboard

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

Open lloeki opened this issue 9 years ago • 6 comments

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 avatar Jun 10 '15 08:06 lloeki

I think here is the relevant documentation.

lloeki avatar Jun 10 '15 08:06 lloeki

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.

qoobaa avatar Jun 10 '15 09:06 qoobaa

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

lloeki avatar Jun 10 '15 09:06 lloeki

Still no support for v4?

vnazarenko avatar Mar 11 '16 14:03 vnazarenko

+1

mr-deamon avatar Jun 01 '16 14:06 mr-deamon

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

RdNetwork avatar Oct 18 '16 17:10 RdNetwork