Skip to content

Add support for basic authentication to the Solr health check  #2261

@HalHunt

Description

@HalHunt

What would you like to be added:
I didn't see a way to supply a username and password to the Solr health check. I tired to add the username and password to the SolrOptions.Uri as in http://solr:SolrRocks@localhost:8983/solr without success. Am I missing anything?

Why is this needed:
To allow the Solr health check to be used in more realistic enterprise environments that use SSL and basic authentication.

The fix is relatively easy and I have a PR in the works however I need some guidance on unit tests. I have the correct new unit tests but I'm not sure how to support both Solr configurations (i.e. no auth and with auth) in the same docker container. Any guidance is greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions