Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic support for S3 SSE #28

Merged
merged 3 commits into from
Apr 14, 2017
Merged

Conversation

danklynn
Copy link
Contributor

This checks to see if your bucket policies prevent the creation of unencrypted
files. If so, future PutObject requests will use the SSE request header.

This currently assumes you are using AWS KMS-managed encryption keys.

This checks to see if your bucket policies prevent the creation of unencrypted
files. If so, future PutObject requests will use the SSE request header.

This currently assumes you are using AWS KMS-managed encryption keys.
@tpunder
Copy link
Owner

tpunder commented Apr 13, 2017

What about something like this: 24b57bf

I think it accomplishes the same thing but avoids the creation of the tmp object. It basically just tries the PUT as normal and if that fails with a 403 status code then retries with SSE. If the SSE PUT succeeds then it caches that for the next PUT to the bucket.

Thoughts?

I have my sse branch (https://github.com/frugalmechanic/fm-sbt-s3-resolver/tree/sse) currently published as 0.11.0-SNAPSHOT to Sonatype.

@danklynn
Copy link
Contributor Author

Looks good! Thanks

@tpunder tpunder merged commit 9db7f6d into tpunder:master Apr 14, 2017
@tpunder
Copy link
Owner

tpunder commented Apr 14, 2017

This has been published as v0.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants