Skip to content

Sign URL query parameters in API request signatures (v2) - #90

Merged
glaubinix merged 3 commits into
masterfrom
api-signature-v2-cover-query-params
May 8, 2026
Merged

Sign URL query parameters in API request signatures (v2)#90
glaubinix merged 3 commits into
masterfrom
api-signature-v2-cover-query-params

Conversation

@jdworschak

Copy link
Copy Markdown
Contributor

The HMAC signature plugin used to sign only the request method, host, path, and body. Query-string parameters appended to GET URLs (e.g. pagination) were not covered. An MITM could tamper with them without invalidating the signature.

Updates the plugin to emit Version=2 in the Authorization header and include URL query parameters in the signed payload.

jdworschak and others added 2 commits May 6, 2026 13:25
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread src/HttpClient/Plugin/RequestSignature.php Outdated
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jdworschak
jdworschak marked this pull request as ready for review May 7, 2026 11:27
@jdworschak
jdworschak requested a review from glaubinix May 7, 2026 11:27

@glaubinix glaubinix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@glaubinix
glaubinix merged commit c0eaedc into master May 8, 2026
8 checks passed
@glaubinix
glaubinix deleted the api-signature-v2-cover-query-params branch May 8, 2026 13:31
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.

2 participants