[ 
https://issues.apache.org/jira/browse/HDFS-15230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wei-Chiu Chuang resolved HDFS-15230.
------------------------------------
    Resolution: Fixed

Thanks [~szetszwo]!

> 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
>             Fix For: 3.3.7, 3.5.0, 3.4.2
>
>
> 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-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to