mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-15 20:20:38 +00:00
pageserver: require management permissions on HTTP /status
This commit is contained in:
committed by
Egor Suvorov
parent
10d554fcbb
commit
1ca76776d0
@@ -184,6 +184,7 @@ async fn build_timeline_info(
|
||||
|
||||
// healthcheck handler
|
||||
async fn status_handler(request: Request<Body>) -> Result<Response<Body>, ApiError> {
|
||||
check_permission(&request, None)?;
|
||||
let config = get_config(&request);
|
||||
json_response(StatusCode::OK, StatusResponse { id: config.id })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user