Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed blacklist header from canonical calc #480

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

duckboy81
Copy link

In building a backend system to recreate and verify client request before signing them, I noticed the AWS SDK for PHP have blacklist of headers for those it will not sign.

As such, I have removed the content-length header from AwsSignatureV4.prototype.canonicalHeaders function to align with AWS's signature process.

AWS-SDK reference: https://github.com/aws/aws-sdk-php/blob/6ef06165ef815358d3e60872b4c9f6c10deb3816/src/Signature/SignatureV4.php#L40-L74

Referencing the aws-sdk-php repo, removed the "Content-Type" header from being signed due to its existence on the header blacklist.
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.

None yet

1 participant