Skip to content

fix: preserve raw query parameters during signing#782

Open
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:fix/raw-query
Open

fix: preserve raw query parameters during signing#782
QuakeWang wants to merge 1 commit into
apache:mainfrom
QuakeWang:fix/raw-query

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Closes #778.

SigningRequest previously parsed existing URI queries and rebuilt them from decoded pairs. This could change percent-encoded values and even alter query parameter boundaries during signing.

This PR preserves unchanged raw query parameters when applying signed requests. Affected signers now use separate canonical query representations for signature calculation without rewriting the query sent over the wire.

Regression tests cover header signing and query signing across affected services

SigningRequest parsed and rebuilt existing URI queries, which could change their encoded wire representation during signing.

Preserve unchanged raw query parameters while keeping service-specific canonical queries separate for signature calculation.

Closes apache#778.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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.

SigningRequest should preserve existing raw query when applying signed requests

1 participant