Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-2198

[core] Reduce noise such as "handle_other(): Mutual authentication unavailable on 200 response"

    Details

      Description

      + CDH5.0.2
      + affect Kerberised environment

      Since the introduction of the "requests Kerberos/GSSAPI authentication library"

      Is it possible to request an improvement to reduce the noise coming from the above library

      Example:

      GET /filebrowser/ 
      GET /oozie/ 
      ...
      [25/Jun/2014 12:33:49 +0200] kerberos_ ERROR handle_other(): Mutual authentication unavailable on 200 response 
      ...
      

      The errors can be safely ignored, however they are generating plenty of noise in the runcpserver.log . It seems like the library log an error when mutual authentication[1,ref:1] is OPTIONAL [2a,b] or if Kerberos negotiation value is empty[3] (in this case HTTP 200/OK response) [ref:2].

      [1] https://github.com/cloudera/hue/blob/cdh5-3.5.0_5.0.2/desktop/core/ext-py/requests-kerberos-0.3/requests_kerberos/kerberos_.py#L21
      [2a] https://github.com/cloudera/hue/blob/cdh5-3.5.0_5.0.2/desktop/core/src/desktop/lib/rest/http_client.py#L25
      [2b] https://github.com/cloudera/hue/blob/cdh5-3.5.0_5.0.2/desktop/core/src/desktop/lib/rest/http_client.py#L88
      [3] https://github.com/cloudera/hue/blob/cdh5-3.5.0_5.0.2/desktop/core/ext-py/requests-kerberos-0.3/requests_kerberos/kerberos_.py#L194

      [ref:1] "About Mutual Authentication Using Kerberos"
      http://msdn.microsoft.com/en-us/library/ms674944(v=vs.85).aspx
      [ref:2] Authentication | Negotiate
      http://msdn.microsoft.com/en-us/library/windows/desktop/aa364452(v=vs.85).aspx
      Note The HTTP Server API appends the mutual authentication data to the final 200 OK response, if one was generated during the authentication handshake.

        Attachments

          Activity

            People

            • Assignee:
              romain Romain Rigaux
              Reporter:
              michalis Michalis Kongtongk
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: