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

Scope or Signature not working #85

Open
HenriqueOtsuka opened this issue Jun 30, 2023 · 3 comments
Open

Scope or Signature not working #85

HenriqueOtsuka opened this issue Jun 30, 2023 · 3 comments

Comments

@HenriqueOtsuka
Copy link

Hey guys,

I've generated the scope and the signature using the python script and hardcoded into my NGINX to test, but AWS response says that the signature expected doesn't match
The request signature we calculated does not match the signature you provided. Check your key and signing method

I'm stucked into this somedays and I really don't know what more I can do.

I'm using ./script -k my-aws-secret-key -r my-aws-region -s my-aws-service, it returns the right scope and the signature and the I'm copying and pasting into nginx to use it.

location /test {
aws_access_key AKIAEXAMPLETEST;
        aws_s3_bucket my-test-bucket;
        aws_key_scope 20230630/us-east-1/s3/aws4_request;
        aws_signing_key SOMERANDOMVALUE=;
        aws_sign;

        proxy_pass http://my-test-bucket/my-test-file.mp4
}

Any ideas?

@thindrs
Copy link

thindrs commented Oct 4, 2023

Do you have debug nginx logs to share for the entire request, and response?

@HenriqueOtsuka
Copy link
Author

Hmmm, no I don't have any other logs.

This error is the only thing I have.

@gauravko
Copy link
Contributor

Is your proxy pass url of the format bucket-name.aws-region.s3.amazonaws.com ? I had the same problem and just reduced it to bucket-name.s3.amazonaws.com to solve it.

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

No branches or pull requests

3 participants