-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-19197. S3A: Support AWS KMS Encryption Context #7193
Conversation
Add the property fs.s3a.encryption.context that allow users to specify the AWS KMS Encryption Context to be used in S3A. The value of the encryption context is a key/value string that will be Base64 encoded and set in the parameter ssekmsEncryptionContext from the S3 client. Contributed by Raphael Azzolini
🎊 +1 overall
This message was automatically generated. |
@steveloughran, I just finished running the integration tests and updated the description. The PR should be good to merge, and then we can close the JIRA. |
did you have to make any changes for the backport? if so, what? That's all I need to know before approval. |
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.
+1
Add the property fs.s3a.encryption.context that allow users to specify the AWS KMS Encryption Context to be used in S3A.
The value of the encryption context is a key/value string that will be Base64 encoded and set in the parameter ssekmsEncryptionContext from the S3 client.
Contributed by Raphael Azzolini
Description of PR
This code change adds a new property to S3A: fs.s3a.encryption.context\
The property's value accepts a set of key/value attributes to be set on S3's encryption context. The value of the property will be base64 encoded and set in the parameter ssekmsEncryptionContext from the S3 client.
This change was merged to trunk by the pull request #6874. This request is to merge the code change to branch-3.4.
How was this patch tested?
Tested in us-west-1 with
mvn -Dparallel-tests -DtestsThreadCount=16 clean verify
I added a new test
ITestS3AEncryptionSSEKMSWithEncryptionContext
.I added this property to
auth-keys.xml
Then I executed the following tests:
I also executed the test with the following statement in my KMS key:
When using that statement, tests without encryption context fail, and the new test will pass only if the given key-pair is set in
fs.s3a.encryption.context
.For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?