szlta commented on code in PR #17155:
URL: https://github.com/apache/iceberg/pull/17155#discussion_r4272056538


##########
open-api/rest-catalog-open-api.py:
##########
@@ -791,10 +791,44 @@ class Sha256QueryLocal(Action):
     action: Literal['sha-256-query-local']
 
 
+class KeyManagementCredential(BaseModel):
+    """
+    Provider-specific credential config for accessing one or more KMS keys 
required by an encrypted
+    table operation.
+
+    The key-management provider is advertised in catalog configuration, such 
as `encryption.kms-type`
+    returned from `/v1/config`. The `config` map contains provider-specific 
properties for the
+    selected key-management provider.

Review Comment:
   I actually see benefit in both - and we could support both perhaps:
   - a catalog-level `encryption.kms-type` for a catalog-wide default
   - allow individual KeyManagementCredential entries to optionally override it
    
   Thus supporting different KMS providers across tables and also multiple 
providers within a table - while retaining a catalog default which I think 
would cover most use cases. WDYT?



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