-
Notifications
You must be signed in to change notification settings - Fork 3k
Make StandardEncryptionManager serializable #14751
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
base: main
Are you sure you want to change the base?
Make StandardEncryptionManager serializable #14751
Conversation
|
cc @ggershinsky |
|
In general, sounds good to me. The security model of Iceberg table encryption does not preclude distribution of the encryption manager and the kms client. |
aws/src/main/java/org/apache/iceberg/aws/AwsKeyManagementClient.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/encryption/StandardEncryptionManager.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/iceberg/encryption/BaseEncryptedKey.java
Outdated
Show resolved
Hide resolved
…well/encrypted-serializable # Conflicts: # core/src/main/java/org/apache/iceberg/encryption/StandardEncryptionManager.java
spark/v4.0/spark/src/test/java/org/apache/iceberg/spark/sql/TestTableEncryption.java
Show resolved
Hide resolved
|
@huaxingao okay with this one? |
core/src/main/java/org/apache/iceberg/encryption/BaseEncryptedKey.java
Outdated
Show resolved
Hide resolved
|
LGTM except a minor comment. |
|
@ggershinsky @smaheshwar-pltr Do you have any more comments for this PR? |
aws/src/integration/java/org/apache/iceberg/aws/TestKeyManagementClient.java
Outdated
Show resolved
Hide resolved
ggershinsky
left a comment
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, LGTM
azure/src/main/java/org/apache/iceberg/azure/keymanagement/AzureKeyManagementClient.java
Outdated
Show resolved
Hide resolved
gcp/src/main/java/org/apache/iceberg/gcp/GcpKeyManagementClient.java
Outdated
Show resolved
Hide resolved
smaheshwar-pltr
left a comment
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.
LGTM too, only nits. Thanks!
StandardEncryptionManagerandKeyManagementClientare already declared asSerializablebut they are not actually serializable. This breaks use ofEncryptingFileIOwith certain things such asAllManifestsTableScan.#14750 will ensure key ids are preserved.