mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #49] use_sse is ignored when creating new files #28
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#28
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 @malloctrim on GitHub (Aug 6, 2014).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/49
The
x-amz-server-side-encryptionheader is not sent when creating new files, only when files are flushed from the cache.This means that when you set a policy on your bucket like the one described here: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html, which forces that only encrypted objects can be stored in the bucket, you get 'operation not permitted' errors because the policy is blocking all put requests that don't have the sse header.
The functions in
s3fs.cpp,create_file_objectandcreate_directory_objectnow callPutRequestlike this:return s3fscurl.PutRequest(path, meta, -1, false);It should probably be called like this:
return s3fscurl.PutRequest(path, meta, -1, S3fsCurl::GetUseSse());@ggtakec commented on GitHub (Aug 14, 2014):
Hi,
Thanks for your report.
I did not know backer policy about SSE(C), thanks again.
So this is a bug, I fixed this issue about
github.com/s3fs-fuse/s3fs-fuse@cbec8da9a3It is pushed latest see-c branch now.
Please check it and let me know if you found any problem.
Thanks in advance for your help.
@malloctrim commented on GitHub (Aug 18, 2014):
Yes, that works fine. Thanks.
I've also added some comments to issue #39 regarding that sse-c branch, as multipart uploading doesn't work.