smaheshwar-pltr commented on code in PR #13225:
URL: https://github.com/apache/iceberg/pull/13225#discussion_r4722019125
##########
core/src/main/java/org/apache/iceberg/rest/RESTTableOperations.java:
##########
@@ -155,6 +180,16 @@ enum UpdateType {
}
this.endpoints = endpoints;
this.readQueryParams = readQueryParams;
+
+ // CREATE operations need encryption configured before current metadata is
available.
+ encryptionPropsFromMetadata(current);
+
+ // Set up encryption here rather than on first use, so a missing KMS
client or invalid
+ // encryption settings fail before the table is used.
Review Comment:
(This is tricky, I realised in
https://github.com/apache/iceberg/pull/13225/commits/05caedafc6fce5acaad15afbcb8acec24a1a2d5b
that I think we *do* want to check for KMS here because otherwise, a client
without a KMS can load and even commit to encrypted sometimes. That could go
wrong in e.g. snapshot expiration where the expiration commit succeeds on the
server, but the encryption-less client won't be able to do clean up - it can't
even read manifest lists to work out the files to delete)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]