Skip to content

/status accessible without auth if metrics endpoint is enabled #920

Description

@VladRassokhin
  1. Running bazel-remove with --enable_endpoint_metrics and some auth, e.g. --htpasswd_file, but without --allow_unauthenticated_reads.
  2. curl http://localhost:9090/status succeeds, while it should've fail 401.

Cause:

statusHandler = middlewarestd.Handler("status", metricsMdlw, http.HandlerFunc(h.StatusPageHandler)).ServeHTTP
overwrites previous auth-protected statusHandler

Will send MR shortly.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions