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
Support SSE S3 in SingularityUploader #1763
Conversation
@@ -79,7 +80,8 @@ public S3UploadMetadata(@JsonProperty("directory") String directory, | |||
@JsonProperty("uploaderType") Optional<SingularityUploaderType> uploaderType, | |||
@JsonProperty("gcsCredentials") Map<String, Object> gcsCredentials, | |||
@JsonProperty("gcsStorageClass") Optional<String> gcsStorageClass, | |||
@JsonProperty("encryptionKey") Optional<String> encryptionKey) { | |||
@JsonProperty("encryptionKey") Optional<String> encryptionKey, | |||
@JsonProperty("s3ServerSideEncryption") Optional<Boolean> s3ServerSideEncryption) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name this something more like useS3ServerSideEncryption
? Makes it a bit more obvious it's a boolean and not a string to specify a type of encryption. Other than that PR looks good
|
@@ -217,6 +220,10 @@ public SingularityUploaderType getUploaderType() { | |||
return encryptionKey; | |||
} | |||
|
|||
public boolean getUseS3ServerSideEncryption() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sry, missed this earlier. Can this be isUseS3ServerSideEncryption
|
This enables a flag to turn on the SSE-S3 which transparently encrypts the data on the server side and is managed by S3.
https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
We've tested the object metadata flag to make it indeeds sets SSE-S3 when we inspect the uploaded object on S3. This follows the S3 java-sdk documentation.
https://docs.aws.amazon.com/AmazonS3/latest/dev/SSEUsingJavaSDK.html
I am unfamiliar with the naming convention for the JSON Values so open to change it to something more suitable for our convention so far.
@baconmania @ssalinas