pageserver: require management permissions on HTTP /status

This commit is contained in:
Egor Suvorov
2022-11-01 22:34:01 +02:00
committed by Egor Suvorov
parent 10d554fcbb
commit 1ca76776d0

View File

@@ -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 })
}