mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #61] Use s3fs with a proxy - no write permission #36
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cjuste on GitHub (Oct 1, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/61
Hello,
I'm using s3fs with a transparent proxy squid.
I'm using the allow_other option.
I can read data on s3 without any problem, s3 and my directory are synced.
But if I try for example
I always get :
For this machine, I have to use a proxy. I've tried on another machine, which works fine without the proxy (it's the same accessKey/secretKey and the same bucket). If I activate the proxy on this other machine, I get the same problem (without changing anything else).
I've looked to the http data. I get the following messaging from Amazon, for the PUT method :
I have the same problem if I want to copy/create a file in the mounted directory.
It seems Amazon is recalculating the signature only in the case of a PUT method.
I've configured Squid with, looking to the Issue 59 :
@gaul commented on GitHub (Oct 1, 2014):
Some proxies rewrite or add some headers, probably the Date in this case. If you can dump the HTTP request before and after it hits the proxy we can debug this further. If it is rewriting date, you might be able to configure squid differently or we can change s3fs-fuse to use the x-amz-date header instead:
http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
@cjuste commented on GitHub (Oct 2, 2014):
Thanks a lot for the tip, I found the problem.
Squid wasn't rewriting the date, it was simply than some custom headers were'nt allowed in the configuration and so were cut by Squid.
Adding the squid configuration :
solved the problem.