-
Notifications
You must be signed in to change notification settings - Fork 15
V2 #6
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
V2 #6
Conversation
Known limitations - The customer cannot currently specify that they would like to encrypt with KMS and use their default key. SSEAwsKeyManagementParams does not exist in the v2 SDK and I lost the functionality in the refactor.
…se of the customer wanting to use the AWS managed CMK.
@@ -212,4 +182,18 @@ public boolean isAlwaysThroughS3() { | |||
public void setAlwaysThroughS3(boolean alwaysThroughS3) { | |||
this.alwaysThroughS3 = alwaysThroughS3; | |||
} | |||
|
|||
public PayloadStorageConfiguration withServiceSideEncryption(ServerSideEncryptionStrategy serverSideEncryptionStrategy) { |
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 get some comments on these new methods
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.
Done, I've also added a description of the usage in the class docs.
Adding Javadocs to the class and methods.
* This is optional, it is set only when you want to configure S3 server side encryption with KMS. | ||
* | ||
* @param serverSideEncryptionStrategy The method of encryption required for S3 server side encryption with KMS. | ||
* @return |
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 complete the @return
info
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.
done
@@ -0,0 +1,11 @@ | |||
package software.amazon.payloadoffloading; | |||
|
|||
public class ServerSideEncryptionFactory { |
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 add unit tests for the newly added SseStrategy
implementations?
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.
done
Adding Javadocs.
Issue #, if available:
You didn't ask for it, but it enables future work.
Description of changes:
I've refactored the project to use the AWS SDK for Java v2.
I doing this I have changed how the configuration of server side encryption is managed. I've implemented it in one way, but I'm sure there could be better ways.
This isn't a final cut, I'm missing documentation and unit test coverage.
I thought it best to get the ball rolling on what is quite a big PR.
Thanks,
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.