`/status` accessible without auth if metrics endpoint is enabled
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- api, authentication
Research direction
Inspect main.go around line 324 and trace how enabling --enable_endpoint_metrics registers the /status handler when authentication is configured. Reproduce the curl request with --htpasswd_file and without --allow_unauthenticated_reads; done means /status returns 401 while the endpoint remains available when unauthenticated reads are allowed.
Written by the indexing model from the issue text.
Description
- Running bazel-remove with
--enable_endpoint_metricsand some auth, e.g.--htpasswd_file, but without--allow_unauthenticated_reads. curl http://localhost:9090/statussucceeds, while it should've fail 401.
Cause: https://github.com/buchgr/bazel-remote/blob/a69b6b5ed933234d93b489ffd216bee5bb74aa06/main.go#L324 overwrites previous auth-protected statusHandler
Will send MR shortly.
- Dominant language
- Go
- Stars
- 775
- Forks
- 205
- Avg merge
- 42m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from buchgr/bazel-remote
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
buchgr/bazel-remote#919 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
buchgr/bazel-remote#898 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
buchgr/bazel-remote#896 · 6 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
buchgr/bazel-remote#895 · 3 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
buchgr/bazel-remote#887 · 1 comment · 1 reaction ·
All issues in buchgr/bazel-remote
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100