Skip to content

Security: Public metrics endpoint may expose sensitive operational data#3479

Open
tuanaiseo wants to merge 1 commit intoscrewdriver-cd:masterfrom
tuanaiseo:contribai/fix/security/public-metrics-endpoint-may-expose-sensi
Open

Security: Public metrics endpoint may expose sensitive operational data#3479
tuanaiseo wants to merge 1 commit intoscrewdriver-cd:masterfrom
tuanaiseo:contribai/fix/security/public-metrics-endpoint-may-expose-sensi

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

The /metrics route is registered without authentication and explicitly disables rate limiting. Prometheus output often includes process, runtime, and request-level telemetry that can aid reconnaissance and capacity attacks.

Severity: medium
File: plugins/metrics.js

Solution

Require authentication (or network-level allowlisting) for /metrics, and enable throttling. If public scraping is required, expose only a sanitized metric subset.

Changes

  • plugins/metrics.js (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

The `/metrics` route is registered without authentication and explicitly disables rate limiting. Prometheus output often includes process, runtime, and request-level telemetry that can aid reconnaissance and capacity attacks.

Affected files: metrics.js

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 95.424%. remained the same
when pulling 6e638e3 on tuanaiseo:contribai/fix/security/public-metrics-endpoint-may-expose-sensi
into e7667ee on screwdriver-cd:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants