Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

prometheus/exporter-toolkit
master @ f4c8320
2
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
web/handler.go: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: A collision vulnerability in the basic authentication cache allowed attackers to poison cache entries using string-concatenation bypasses (CVE-2022-46146). Any changes to the web handler's authentication cache keys must utilize strict delimiters and absolute validation flags to prevent multi-tenant or multi-user credential confusion.
Information Disclosure: The TLS private key was vulnerable to exposure through debugging logs or configuration serialization due to being held in a standard string representation. Moving forward, all high-entropy secrets and keys must utilize custom wrapped types (e.g., Secret) to guarantee redaction.