mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #817] Binary encryption keys for SSE-C should be supported #474
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#474
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 @earlchew on GitHub (Sep 4, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/817
Support for SSE-C was added in https://github.com/s3fs-fuse/s3fs-fuse/issues/39.
The key is provided to S3 via:
Extraction of the SSE-C keys might occur from a file, or from an environment variable. The former assumes that
'\n'can be used to separate one key from another, the latter makes the same kind of assumption for':'. This means that the key cannot contain'\0', and either cannot contain'\n'or':'.Since the key will be converted to base64 before being conveyed to S3 anyway, I'm thinking that ingesting the key from a file or environment variable as base64 would be a more robust approach.
Using base64 encoding, either
'\n'or':'can be used as key separators (https://en.wikipedia.org/wiki/Base64) and'\0'can terminate base64 strings.What do you think is a good way to support this feature without breaking existing behaviour?
@earlchew commented on GitHub (Sep 16, 2018):
I've made a candidate patch that enables the use of base64 encoded binary keys:
github.com/s3fs-fuse/s3fs-fuse@41c23adb0eI'll test drive this for a while before submitting a pull request.
This patch is backwards compatible with current behaviour, which I note will break some binary keys as it shortens keys that appear to contain leading whitespace, and will refuse to use keys that start with
'#':@earlchew commented on GitHub (Jan 5, 2019):
I've used this change for a while now, and it seems stable enough to submit a pull request.
@gaul commented on GitHub (Jan 24, 2019):
Can we close this issue now that #882 merged?
@earlchew commented on GitHub (Jan 24, 2019):
Yes, please go ahead and close.
@earlchew commented on GitHub (Jan 24, 2019):
Oh ... I'll close.