-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
safekeeper,pageserver: fix CPU profiling allowlists (#9856)
## Problem The HTTP router allowlists matched both on the path and the query string. This meant that only `/profile/cpu` would be allowed without auth, while `/profile/cpu?format=svg` would require auth. Follows #9764. ## Summary of changes * Match allowlists on URI path, rather than the entire URI. * Fix the allowlist for Safekeeper to use `/profile/cpu` rather than the old `/pprof/profile`. * Just use a constant slice for the allowlist; it's only a handful of items, and these handlers are not on hot paths.
- Loading branch information
1 parent
211e417
commit e939d36
Showing
2 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e939d36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5626 tests run: 5398 passed, 1 failed, 227 skipped (full report)
Failures on Postgres 16
test_compaction_l0_memory[github-actions-selfhosted]
: release-x86-64Flaky tests (1)
Postgres 17
test_create_churn_during_restart
: debug-x86-64Code coverage* (full report)
functions
:31.4% (7958 of 25344 functions)
lines
:49.3% (63157 of 128104 lines)
* collected from Rust tests only
e939d36 at 2024-11-22T19:42:30.352Z :recycle: