Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4002

&authMechanismProperties=JAVA_SUBJECT:mongodb

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.12.7
    • Component/s: Security
    • Labels:
      None
    • Environment:
      Linux/Nifi/Kerberos GSSAPI
    • Needed

      Both explicit calls via MongoCredential and the URI support overriding the JAVA_SUBJECT_KEY to use a defined section of the jaas-config instead of "com.sun.security.jgss.krb5.initiate". 

      However, the underlying code appears to use the literal-String value instead of getting the Subject() from the running-kerberos jaas config which then errors out. I'd expect the running jaas-config to be consulted for the named-subject and then the appropriate method calls invoked.

       

      Without this fix, I'm forced to run the app with javax.security.auth.useSubjectCredsOnly=false which defeats some of the isolation that the Nifi product was looking to achieve.

       

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            nick.lange@morganstanley.com Nick Lange
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: