-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support AWS-KMS on S3 for FTE #22529
Merged
Praveen2112
merged 1 commit into
trinodb:master
from
marcinsbd:marcinsbd/FTE-to-support-self-managed-keys-on-S3
Aug 29, 2024
Merged
Add support AWS-KMS on S3 for FTE #22529
Praveen2112
merged 1 commit into
trinodb:master
from
marcinsbd:marcinsbd/FTE-to-support-self-managed-keys-on-S3
Aug 29, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Praveen2112
reviewed
Jul 1, 2024
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
...change-filesystem/src/main/java/io/trino/plugin/exchange/filesystem/s3/ExchangeS3Config.java
Outdated
Show resolved
Hide resolved
...change-filesystem/src/main/java/io/trino/plugin/exchange/filesystem/s3/ExchangeS3Config.java
Show resolved
Hide resolved
testing/trino-testing-containers/src/main/java/io/trino/testing/containers/Kes.java
Outdated
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/containers/MinioStorage.java
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/containers/MinioStorage.java
Outdated
Show resolved
Hide resolved
b97d5f7
to
52f3752
Compare
2d96da6
to
016c10e
Compare
Praveen2112
reviewed
Jul 29, 2024
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/containers/MinioStorage.java
Outdated
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/s3/TestExchangeS3Config.java
Outdated
Show resolved
Hide resolved
@marcinsbd Can you please rebase the PR ? |
6b5178b
to
6d22b83
Compare
Praveen2112
approved these changes
Aug 2, 2024
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
.../trino-testing-containers/src/main/java/io/trino/testing/containers/KeyManagementServer.java
Show resolved
Hide resolved
8f6cd1e
to
0cc6d27
Compare
ssheikin
reviewed
Aug 12, 2024
...change-filesystem/src/main/java/io/trino/plugin/exchange/filesystem/s3/ExchangeS3Config.java
Outdated
Show resolved
Hide resolved
ssheikin
reviewed
Aug 12, 2024
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/containers/MinioStorage.java
Outdated
Show resolved
Hide resolved
...ge-filesystem/src/test/java/io/trino/plugin/exchange/filesystem/containers/MinioStorage.java
Outdated
Show resolved
Hide resolved
.../test/java/io/trino/plugin/exchange/filesystem/s3/TestS3FileSystemExchangeManagerSseKms.java
Outdated
Show resolved
Hide resolved
...c/test/java/io/trino/plugin/exchange/filesystem/s3/TestS3FileSystemExchangeManagerSseS3.java
Outdated
Show resolved
Hide resolved
...c/test/java/io/trino/plugin/exchange/filesystem/s3/TestS3FileSystemExchangeManagerSseS3.java
Outdated
Show resolved
Hide resolved
.../test/java/io/trino/plugin/exchange/filesystem/s3/TestS3FileSystemExchangeManagerSseKms.java
Outdated
Show resolved
Hide resolved
0cc6d27
to
a64ae47
Compare
ssheikin
reviewed
Aug 13, 2024
...change-filesystem/src/main/java/io/trino/plugin/exchange/filesystem/s3/ExchangeS3Config.java
Outdated
Show resolved
Hide resolved
5b312b8
to
9f28c49
Compare
ssheikin
reviewed
Aug 14, 2024
...system/src/main/java/io/trino/plugin/exchange/filesystem/s3/S3FileSystemExchangeStorage.java
Outdated
Show resolved
Hide resolved
9f28c49
to
3a7db93
Compare
losipiuk
reviewed
Aug 28, 2024
Comment on lines
309
to
314
@AssertTrue(message = "Property value of exchange.s3.sse.kms-key-id needs to be provided only when exchange.s3.sse.type=KMS") | ||
public boolean isSseConfigValid() | ||
{ | ||
return sseType == KMS ^ getSseKmsKeyId().isEmpty(); | ||
} |
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.
nit: Would be a bit more readable to have two separate validations for
- sseType != KMS && sskeKeyId not emtpy
- sseType == KMS && sskKeyId empty
Then you could provide easier to understand error messages.
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
losipiuk
approved these changes
Aug 28, 2024
3a7db93
to
51bc447
Compare
Praveen2112
approved these changes
Aug 28, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for encrypting the files stored in S3 bucket as a part of files generated by FTEs.
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: