Skip to content

Conversation

@windmgc
Copy link
Member

@windmgc windmgc commented Aug 17, 2023

Summary

This PR ensures that canonicalise_query_string should always return a URL encoded format query string. Currently when query is a table, the value will not be encoded again. This makes the STS assumeRole not working since assumeRole requires a IAM ARN which contains colon that should be URL encoded. Calling STS assumeRole will return signature not match error without the PR's fix.

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

Luacheck Report

7 tests   0 ✔️  0s ⏱️
1 suites  0 💤
1 files    7

For more details on these failures, see this check.

Results for commit 60b4b92.

♻️ This comment has been updated with latest results.

@windmgc windmgc changed the title fix(*): fix v4 signing request should canonicalized query table as well fix(*): fix v4 signing request should correctly canonicalized query table as well Aug 17, 2023
@windmgc windmgc force-pushed the fix-signing-v4-encode-query-args branch from 0a1b8f4 to 60b4b92 Compare August 17, 2023 05:21
@windmgc windmgc merged commit a06312f into main Aug 17, 2023
@windmgc windmgc deleted the fix-signing-v4-encode-query-args branch August 17, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants