-
Notifications
You must be signed in to change notification settings - Fork 45
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 support for Server-Side Encryption via AWS Key Management Service (KMS) #12
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for the PR!
Tests are failing for me, looks like they just need to be updated with the new S3Writer
constructor signature.
if (bucket == null || bucket == "") { | ||
throw new ConnectException("S3 bucket must be configured"); | ||
} | ||
if (prefix == null) { | ||
prefix = ""; | ||
} | ||
|
||
String s3Region = config.get(S3SinkConnectorConstants.S3_REGION_CONFIG); |
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.
Whats the default here? We probably want this to be optional, so dont set the region if there is not a config key.
import com.amazonaws.services.s3.model.PutObjectRequest; | ||
import com.amazonaws.services.s3.model.S3Object; | ||
import com.amazonaws.services.s3.model.S3ObjectInputStream; | ||
import com.amazonaws.services.s3.model.*; |
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.
Would prefer to keep explicit deps please.
import java.io.IOException; | ||
import java.io.Reader; | ||
import java.lang.StringBuilder; | ||
import java.io.*; |
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.
And here keep explicit deps.
S3 Source and Systemic Refactor
No description provided.