Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
custom-metrics-stackdriver-adapter/pkg/adapter/translator/query_builder.go: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
SSRF: Allowing arbitrary API endpoint overrides can lead to credential leakage to attacker-controlled domains during metric exports. Secure configuration must enforce host-level allowlists targeting only trusted Google domains.
Path Traversal: Weak validation of the authTokenFile path can allow reading arbitrary local files under the guise of loading scraping configurations. Strict path canonicalization and prefix checks are required.
Information Disclosure: Standard HTTP clients automatically follow redirects, which can leak sensitive alternate GCE tokens to external hosts if the metadata endpoint redirects the request. Redirects must be explicitly disabled on token-fetching clients.