Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3620

Consider removing check on UGI-logged-in user in KerberosToken

VotersWatch issueWatchers
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • client
    • None

    Description

      Fixing a bunch of tests, I've found that the following is hard to work around:

      KerberosToken.java
        public KerberosToken() throws IOException {
          this(UserGroupInformation.getCurrentUser().getUserName());
        }
      

      It makes the client API harder to manage because you have to be logged in as the user you intend to be acting as. So, things like creating a new user "user" as a different user "root" is non-intuitive.

      Server-side, I know there is at least one place that we construct a KerberosToken which only works because the server is already logged in (but it's just used as a place holder and not as a substitute for some other user's credentials).

      I think we want to remove the check (make it an empty constructor), but I'm not sure what other checks would be desired/necessary to the constructors that accept arguments.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment