Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21146

Knox JAAS configuration file should not allow the Kerberos ticket cache to be used when establishing its identity on startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 2.5.2
    • None
    • None

    Description

      The JAAS configuration for Knox allows the interactive user's ticket cache to be used to establish the service's identity when starting up. This is problematic and potentially confusing. To prevent this, the JAAS config should be set as follows:

      com.sun.security.jgss.initiate {
        com.sun.security.auth.module.Krb5LoginModule required
        renewTGT=false
        doNotPrompt=true
        useKeyTab=true
        keyTab="/etc/security/keytabs/knox.service.keytab"
        principal="knox/c6403.ambari.apache.org@EXAMPLE.COM"
        storeKey=true
        useTicketCache=false;
      };
      

      Note: the keytab file and principal name values need to be set based on the relevant Kerberos configuration.

      Attachments

        1. AMBARI-21146_branch2.5.patch
          0.8 kB
          Attila Magyar
        2. AMBARI-21146.patch
          2 kB
          Attila Magyar

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              amagyar Attila Magyar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: