diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-28 12:21:26 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-02-28 12:22:39 +0100 |
commit | 97f245f218836c699088ab51d810f33ae947c903 (patch) | |
tree | c659625cfc6d591acb77145ba28797353f763e50 | |
parent | 8129a9829165c8543b2ab2d32e8f20ed54ced9e5 (diff) | |
download | garage-97f245f218836c699088ab51d810f33ae947c903.tar.gz garage-97f245f218836c699088ab51d810f33ae947c903.zip |
Add tracing output to signature calculation
-rw-r--r-- | src/api/signature/payload.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/signature/payload.rs b/src/api/signature/payload.rs index a6c32e41..85687a23 100644 --- a/src/api/signature/payload.rs +++ b/src/api/signature/payload.rs @@ -60,6 +60,9 @@ pub async fn check_payload_signature( let (_, scope) = parse_credential(&authorization.credential)?; let string_to_sign = string_to_sign(&authorization.date, &scope, &canonical_request); + trace!("canonical request:\n{}", canonical_request); + trace!("string to sign:\n{}", string_to_sign); + let key = verify_v4( garage, &authorization.credential, |