Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boostrapped security.json config doesn't work with the Prometheus exporter in Solr 8.9.0 due to new endpoint #289

Closed
thelabdude opened this issue Jul 16, 2021 · 1 comment · Fixed by #299
Labels
metrics security TLS or Auth for Solr
Milestone

Comments

@thelabdude
Copy link
Contributor

thelabdude commented Jul 16, 2021

Solr 8.9.0 has a new metrics endpoint being hit: /admin/zookeeper/status. The boostrapped security.json (created by the Solr operator when basic auth is enabled) doesn't wire-up access for this new endpoint for the k8s role.

ERROR - 2021-07-16 22:57:47.229; org.apache.solr.prometheus.collector.SchedulerMetricsCollector; Error occurred during metrics collection => org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at https://dev-solrcloud-0.dev-solrcloud-headless.dev:8983/solr: Forbidden

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at https://dev-solrcloud-0.dev-solrcloud-headless.dev:8983/solr: Forbidden

request: https://dev-solrcloud-0.dev-solrcloud-headless.dev:8983/solr/admin/zookeeper/status?wt=json&version=2.2

Work-around is to add the following mapping to your security.json file:

      {
        "name": "k8s-zk",
        "role": "k8s",
        "collection": null,
        "path": "/admin/zookeeper/status"
      },
@thelabdude thelabdude added this to the main (v0.4.0) milestone Jul 16, 2021
@thelabdude thelabdude changed the title Boostrapped security.json config doesn't work with the Prometheus exporter in Solr 8.9.0 due to new endpoints Boostrapped security.json config doesn't work with the Prometheus exporter in Solr 8.9.0 due to new endpoint Jul 16, 2021
@thelabdude
Copy link
Contributor Author

Will fix this when I fix #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics security TLS or Auth for Solr
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants