singhpk234 commented on code in PR #18081:
URL: https://github.com/apache/iceberg/pull/18081#discussion_r4749626592


##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -238,8 +238,17 @@ public void initialize(String name, Map<String, String> 
unresolved) {
 
     if (mergedProps.containsKey(CatalogProperties.ENCRYPTION_KMS_TYPE)
         || mergedProps.containsKey(CatalogProperties.ENCRYPTION_KMS_IMPL)) {
-      // REST can't delegate KMS access, so storage access must also come from 
the client
-      RESTUtil.checkNoAccessDelegation(RESTUtil.configHeaders(mergedProps));
+      // REST can't delegate KMS access, so storage access must also come from 
the client unless
+      // the client opts in; the opt-in is read from client properties so the 
server can't set it

Review Comment:
   i feel we should always allow the server to override the client side, we 
followed the same in scan planning, i change this to merged properties 



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