Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13127

Correctly cache delegation tokens in KMSClientProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.6.1
    • None
    • security
    • None

    Description

      In the initial implementation of HADOOP-10770, the authToken is updated with delegation tokens during {{KMSClientProvider#addDelegationTokens }} in the following line:

      Token<?> token = authUrl.getDelegationToken(url, authToken, renewer);
      

      HADOOP-11482 is a good fix to handle UGI issue, but has a side effect in the following code:

      public Token<?> run() throws Exception {
        // Not using the cached token here.. Creating a new token here
        // everytime.
        return authUrl.getDelegationToken(url,
          new DelegationTokenAuthenticatedURL.Token(), renewer, doAsUser);
      }
      

      IIUC, we should do setDelegationToken on the authToken here to cache it.

      Attachments

        1. HADOOP-13127.01.patch
          4 kB
          Xiao Chen

        Activity

          People

            xiaochen Xiao Chen
            xiaochen Xiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: