log access keys

This commit is contained in:
trinity-1686a
2025-08-02 13:43:38 +02:00
parent afcb22bf16
commit b340599e68
4 changed files with 32 additions and 12 deletions
+6
View File
@@ -343,6 +343,12 @@ impl ApiHandler for S3ApiServer {
Ok(resp_ok)
}
fn key_id_from_request(&self, req: &Request<IncomingBody>) -> Option<String> {
garage_api_common::signature::payload::Authorization::parse_header(req.headers())
.map(|auth| auth.key_id)
.ok()
}
}
impl ApiEndpoint for S3ApiEndpoint {