[ 
https://issues.apache.org/jira/browse/HDFS-15230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17937520#comment-17937520
 ] 

Wei-Chiu Chuang commented on HDFS-15230:
----------------------------------------

We reverted HDDS-14884 from our internal build, but I forgot to revert from 
Apache. Submitting a PR to revert. Target branches: trunk, branch-3.4 and 
branch-3.3. Hopefully to include it in the upcoming Hadoop 3.4.2 release.

> Sanity check should not assume key base name can be derived from version name
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-15230
>                 URL: https://issues.apache.org/jira/browse/HDFS-15230
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>            Priority: Major
>              Labels: pull-request-available
>
> HDFS-14884 checks if the encryption info of a file matches the encryption 
> zone key.
> {code}
>         if (!KeyProviderCryptoExtension.
>                 getBaseName(keyVersionName).equals(zoneKeyName)) {
>           throw new IllegalArgumentException(String.format(
>                   "KeyVersion '%s' does not belong to the key '%s'",
>                   keyVersionName, zoneKeyName));
>         }
> {code}
> Here it assumes the "base name" can be derived from key version name, and 
> that the base name should be the same as zone key.
> However, there is no published definition of what a key version name should 
> be. 
> While the code works for the builtin JKS key provider, it may not work for 
> other kind of key providers. (Specifically, it breaks Cloudera's KeyTrustee 
> KMS KeyProvider)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to