Skip to content

fix: redact invalid configuration values - #2335

Merged
jaydeluca merged 1 commit into
mainfrom
agent/redact-config-values
Jul 31, 2026
Merged

fix: redact invalid configuration values#2335
jaydeluca merged 1 commit into
mainfrom
agent/redact-config-values

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

  • remove raw invalid configuration values from exception messages
  • avoid exposing configured properties-file paths
  • apply the same redaction to PushGateway validation paths

This is the focused replacement for the #2286 portion of #2297.

Fixes #2286

Ongoing discussion

None currently. The earlier escape-versus-redact question is resolved in favor of full redaction because servlet containers can expose exception messages.

Validation

  • mise run lint:fix
  • mise run build
  • ./mvnw test -pl prometheus-metrics-config,prometheus-metrics-exporter-pushgateway -Dcoverage.skip=true -Dcheckstyle.skip=true
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger
zeitlinger marked this pull request as ready for review July 23, 2026 11:17
@jaydeluca
jaydeluca merged commit 7e7e533 into main Jul 31, 2026
24 checks passed
@jaydeluca
jaydeluca deleted the agent/redact-config-values branch July 31, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants