Repository navigation
cut v0.5.1 - #151
Merged
Merged
cut v0.5.1#151
Conversation
Contributor
|
👍 |
simonpasquier
pushed a commit
to simonpasquier/prometheus-operator
that referenced
this pull request
Feb 3, 2022
…es-master [bot] Bump openshift/prometheus-operator to v0.54.0
bicknell-effodio
added a commit
to bicknell-effodio/prometheus-operator
that referenced
this pull request
May 20, 2026
Apply the review feedback from prometheus-operator#8577. Design changes: - Drop operator-managed internal user. The operator no longer generates credentials or owns a Secret with a stable name. Replaced with a user-supplied `web.internalUser` field referencing a Secret with three keys: username, password (plaintext), and an optional passwordBcrypt. - When passwordBcrypt is absent, the operator bcrypts the plaintext at reconcile and caches the result keyed on a hash of the plaintext, so reconciles where the plaintext is unchanged reuse the cached bcrypt and produce byte-identical web-config Secrets. - When passwordBcrypt is set, the operator verifies it matches the plaintext and writes it verbatim. On mismatch the operator falls back to default-mode bcrypting with a Warning event; the system stays functional. - In-pod callers (probes, reloader, sidecar) read credentials from a mounted Secret volume so rotation propagates without pod restarts. Reloader uses --reload-basic-auth-password-file rather than an env var. - Add Thanos version gate (>= 0.24.0) for the http-client-file flag. - basicAuthUsers without internalUser is now a reconcile error. Text changes: - Workarounds list rewritten: drop the unsupported spec.secrets bullet, add the reverse-proxy sidecar pattern with a reference to Hades32's comment in prometheus-operator#4652, drop the "most popular" framing for which we have no data. - Rename the "Ingress-level auth is no longer a defensible answer" subsection to "Proxy-based workarounds share a structural limitation". Treat the proxy-in-front pattern generically; trim the ingress-nginx retirement discussion to a single soft sentence with one citation; add an explicit acknowledgment that basic auth is not a complete security solution and layered defenses (NetworkPolicies, TLS) are encouraged. - Validation section expanded with the new internal user rules and the reconcile-time bcrypt format heuristics. CEL enforces only the structural rule (basicAuthUsers requires internalUser); content-based checks are runtime events since CEL cannot read Secret values. - Open questions trimmed to one item (exporter-toolkit prometheus-operator#151 follow-up). Status-condition/metric and CEL-on-Secret-values questions dropped. - Add a new Alternatives entry documenting Secret-as-user-list as considered and rejected for v1, with rationale and forward-compat note. - Take the suggested addition to the operator-side-bcrypt rejection bullet ("exposes the operator to potential security issues which maintainers don't want to deal with") and clarify that the bullet addresses the general case; the internal user's bounded operator-side bcrypt is a different question handled in "Internal user" above. cspell: - Add bcrypting, bcrypts, htpasswd to the dictionary for the new wording. Signed-off-by: Leo Bicknell <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@fabxc
/cc @aerokite @tamalsaha