Skip to content

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

Merged
merged 7 commits into from
Aug 19, 2020
Merged

V2 #6

merged 7 commits into from
Aug 19, 2020

Conversation

msailes
Copy link
Contributor

@msailes msailes commented Jul 31, 2020

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.

msailes added 2 commits July 30, 2020 20:42
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.
@adam-aws adam-aws requested review from adam-aws and aws-rizi July 31, 2020 21:23
@@ -212,4 +182,18 @@ public boolean isAlwaysThroughS3() {
public void setAlwaysThroughS3(boolean alwaysThroughS3) {
this.alwaysThroughS3 = alwaysThroughS3;
}

public PayloadStorageConfiguration withServiceSideEncryption(ServerSideEncryptionStrategy serverSideEncryptionStrategy) {
Copy link
Contributor

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

Copy link
Contributor Author

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.

* 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

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

Copy link
Contributor Author

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 {

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Adding Javadocs.
@msailes msailes requested a review from aws-rizi August 17, 2020 20:18
@adam-aws adam-aws dismissed aws-rizi’s stale review August 18, 2020 20:32

Changes addressed

@adam-aws adam-aws merged commit df627a5 into awslabs:master Aug 19, 2020
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.

4 participants