ggershinsky commented on code in PR #18337:
URL: https://github.com/apache/iceberg/pull/18337#discussion_r4159842671


##########
core/src/main/java/org/apache/iceberg/encryption/StandardEncryptionManager.java:
##########
@@ -146,8 +157,17 @@ String keyEncryptionKeyID() {
     }
 
     // No unexpired key encryption keys; create one
-    ByteBuffer unwrapped = newKey();
-    ByteBuffer wrapped = kmsClient.wrapKey(unwrapped, tableKeyId);
+    ByteBuffer unwrapped;
+    ByteBuffer wrapped;
+    if (kekGenerationEnabled && kmsClient.supportsKeyGeneration()) {
+      KeyManagementClient.KeyGenerationResult result = 
kmsClient.generateKey(tableKeyId);
+      unwrapped = result.key();
+      wrapped = result.wrappedKey();
+    } else {

Review Comment:
   nope, nothing significant. We do need this patch. I'll review it early next 
week when back in office.



-- 
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]

Reply via email to