hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11187) NameNode - KMS communication fails after a long period of inactivity
Date Thu, 06 Nov 2014 02:21:35 GMT

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

Hudson commented on HADOOP-11187:
---------------------------------

FAILURE: Integrated in Hadoop-trunk-Commit #6462 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/6462/])
HADOOP-11187 NameNode - KMS communication fails after a long period of inactivity. Contributed
by Arun Suresh. (atm: rev ef5af4f8de91fbe7891ae3471eb03397e74e1811)
* hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/KerberosAuthenticationHandler.java
* hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestPseudoAuthenticationHandler.java
* hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAuthenticationFilter.java
* hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/PseudoAuthenticationHandler.java
* hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationHandler.java
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/KMSClientProvider.java
* hadoop-common-project/hadoop-common/CHANGES.txt
* hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/server/AuthenticationFilter.java
* hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
* hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/TestPseudoAuthenticator.java


> NameNode - KMS communication fails after a long period of inactivity
> --------------------------------------------------------------------
>
>                 Key: HADOOP-11187
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11187
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Arun Suresh
>            Assignee: Arun Suresh
>             Fix For: 2.7.0
>
>         Attachments: HADOOP-11187.1.patch, HADOOP-11187.2.patch
>
>
> As reported by [~atm] :
> The issue is due to the authentication token that the NN has to talk to the KMS is expiring,
AND the signature secret provider in the KMS authentication filter is discarding the old secret
after 2x the authentication token validity period.
> If the token being supplied is under 1x the validity lifetime then the token will authenticate
just fine. If the token being supplied is between 1x-2x the validity lifetime, then the token
can be validated but it will be expired, so a 401 will be returned to the client and it will
get a new token. But if the token being supplied is greater than 2x the validity lifetime,
then the KMS authentication filter will not even be able to validate the token, and will return
a 403, which will cause the client to not retry authentication to the KMS.
> The KMSClientProvider needs to be modified to retry authentication even in the above
case



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message