giftless icon indicating copy to clipboard operation
giftless copied to clipboard

S3 basic_external doesn't work

Open pauldraper opened this issue 2 years ago • 4 comments

The signed S3 URL doesn't work for uploading.

Git LFS receives a 401 when uploading.

pauldraper avatar May 26 '22 23:05 pauldraper

I believe this to be related to the configuration for signature version in the boto3 client here: https://github.com/datopian/giftless/blob/5b3f7204321e8775b9eac3953a4894988ad78b7c/giftless/storage/amazon_s3.py#L29

See this issue in botocore: https://github.com/boto/botocore/issues/2109. If the fix indicated at the bottom were implemented it may correct the issue.

I'm receiving a similar message: "The request signature we calculated does not match the signature you provided. Check your key and signing method." when I try to run git push after following the tutorial for google cloud storage, but modified to run against s3.

devinnasar avatar Feb 01 '24 03:02 devinnasar

Feel free to try it and make a PR. I'm at a conference this week but I can probably get to it next week (disclaimer: I don't work for Datopian, so my time to work on this is entirely at my management's discretion, so if stuff is blowing up, I won't, but at least right now it seems like I should be able to, since that looks like a very small change).

athornton avatar Feb 06 '24 01:02 athornton

I'll give it a shot. I need to adjust my setup to try and use local giftless.

devinnasar avatar Feb 06 '24 15:02 devinnasar

@devinnasar did you get a PR in on this?

rufuspollock avatar Mar 22 '24 20:03 rufuspollock