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

v0.34 - The request signature we calculated does not match the signature you provided error #206

Closed
skibak opened this issue Aug 23, 2024 · 5 comments · Fixed by #207
Closed
Assignees

Comments

@skibak
Copy link

skibak commented Aug 23, 2024

I'm getting error when using release v0.34.
"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."

When I downgraded to v0.33, code started to work without issues.

I'm using in python like

        payload = json.dumps({
            <redacted>
        })
        session = boto3.Session()
        creds = session.get_credentials()
        response = awscurl.make_request(
            method='POST',
            service='<redacted>',
            region=self.region,
            uri=self.uri + <redacted>,
            headers={
                "Content-Type": "application/json; charset=UTF-8",
                "Connection": "keep-alive",
                "Content-Encoding": "amz-1.0",
                "x-amz-requestsupertrace": "true"
            },
            data=payload,
            data_binary=False,
            access_key=creds.access_key,
            secret_key=creds.secret_key,
            security_token=creds.token
        )
        return (json.loads(response.text), response)
@okigan
Copy link
Owner

okigan commented Aug 23, 2024

Seems to be introduced in Include user-specified signed headers (#200) 22cebb0

and the above code has "x-amz-requestsupertrace" header

@MegaWattSec

@okigan okigan self-assigned this Aug 23, 2024
okigan added a commit that referenced this issue Aug 23, 2024
okigan added a commit that referenced this issue Aug 23, 2024
@okigan okigan closed this as completed in 8569c4d Aug 23, 2024
@okigan
Copy link
Owner

okigan commented Aug 23, 2024

@skibak try latest v0.35 build -- let us know if that resolved the issue

@okigan okigan reopened this Aug 23, 2024
@okigan
Copy link
Owner

okigan commented Aug 25, 2024

@skibak kind nudge for the above

@skibak
Copy link
Author

skibak commented Aug 27, 2024

I checked release 0.35 and it works fine.
Thanks!

@skibak
Copy link
Author

skibak commented Aug 27, 2024

verified

@skibak skibak closed this as completed Aug 27, 2024
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 a pull request may close this issue.

2 participants