Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12579

Move obtainAuthTokenForJob() methods out of User

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • security
    • None

    Description

      The User class currently contains some utility methods to obtain HBase authentication tokens for the given user. However, these methods initiate an RPC to the TokenProvider coprocessor endpoint, an action which should not be part of the User class' responsibilities.

      This leads to a couple of problems:

      1. The way the methods are currently structured, it is impossible to integrate them with normal connection management for the cluster (the TokenUtil class constructs its own HTable instance internally).
      2. The User class is logically part of the hbase-common module, but uses the TokenUtil class (part of hbase-server, though it should probably be moved to hbase-client) through reflection, leading to a hidden dependency.

      The obtainAuthTokenForJob() methods should be deprecated and the process of obtaining authentication tokens should be moved to use the normal connection lifecycle.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ghelmling Gary Helmling
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: