K2V: double urlencoding #574

Merged
lx merged 2 commits from fix-k2v-urlencoding into main 2023-05-18 09:33:04 +00:00
Owner

This is a proposal fix for #573. Since rusoto_signature double-urlencodes paths for all APIs except S3, then we will do the same when verifying signatures client-side. This page suggest that path segments must indeed be url-encoded twice (once by http, once by the signature calculation algorithm): https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html

EDIT: wrote an extensive comment in the source code with more explanation, go read that.

Fix #573

This is a proposal fix for #573. Since rusoto_signature double-urlencodes paths for all APIs except S3, then we will do the same when verifying signatures client-side. This page suggest that path segments must indeed be url-encoded twice (once by http, once by the signature calculation algorithm): https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-sign-process.html EDIT: wrote an extensive comment in the source code with more explanation, go read that. Fix #573
lx force-pushed fix-k2v-urlencoding from de39da1103 to 92fdeb1c56 2023-05-18 09:17:21 +00:00 Compare
lx force-pushed fix-k2v-urlencoding from 92fdeb1c56 to 4420db7310 2023-05-18 09:18:27 +00:00 Compare
lx merged commit 03efc191c1 into main 2023-05-18 09:33:04 +00:00
lx deleted branch fix-k2v-urlencoding 2023-05-18 09:33:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#574
No description provided.