apache / apache/solr-operator

The SolrPrometheusExporter should detect whether to use a basicAuth secret

Open
#654 2 comments 0 reactions 0 assignees View on GitHub
metrics security
Dominant language
Go
Stars
283
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Currently in the PrometheusExporter spec, you must specify a `basicAuthSecret` if you have BasicAuth enabled on a solrCloud.

The operator should be able to detect if the SolrCloud is setup to use BasicAuth, and figure out the secret it is using if the use does not provide an explicit `basicAuthSecret`. This should work very similarly to how the zkConnection info and solrImage are also taken from the `SolrCloud` reference, if none are provided.

Docs:
https://apache.github.io/solr-operator/docs/solr-prometheus-exporter/#prometheus-exporter-with-basic-auth

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the PrometheusExporter spec and the SolrCloud reference behavior for zkConnection and solrImage, then read the linked BasicAuth documentation. Done means the exporter can infer BasicAuth and its secret from the referenced SolrCloud when basicAuthSecret is omitted, while still honoring an explicit value.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, prometheus
Domain
devops, observability-sre, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.