Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9699

ES REST plugin not doing preemptive basic auth

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Meridian-2017.1.1
    • Fix Version/s: 21.0.1, Meridian-2017.1.2
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      Elasticsearch 5.6.3 with x-pack plugin installed (therefore basic auth required for REST interface)
    • Sprint:
      Horizon - October 25th, Horizon - November 1st, Horizon - November 8th

      Description

      Despite having set esusername and espassword to valid credentials in the org.opennms.plugin.elasticsearch.rest.forwarder config properties, the plugin is sending PUT requests with no Authentication: HTTP header. I surmise that the RestClientFactory needs to do an additional step when building the client to set preemptive authentication.

      Uninstalling the x-pack plugin from Elasticsearch works around this problem, but this may not always be feasible since other functionality provided by the X-Pack may be required in some environments.

        Attachments

          Activity

            People

            • Assignee:
              mvr Markus von Rüden
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: