Skip to content

The request signature we calculated does not match the signature #251

Open
@varontron

Description

@varontron

Describe the bug

Receive "The request signature we calculated does not match the signature" error when attempting to load a resource from s3, with proxy_intercept_errors off

To reproduce

Steps to reproduce the behavior:

  1. Set env var AWS_SIGS_VERSION=4
  2. Launch container
  3. Attempt to load resource in browser
  4. See error

Expected behavior

Expect resource to load

Your environment

  • Version of the S3 container used (when downloaded from either Docker Hub or the GitHub Container Registry)
    ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway:latest-njs-oss
    from 2 days ago
ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway     <none>           054c76852ec4   2 days ago      216MB
  • Target deployment platform for the S3 container
Linux ip-10-102-35-223.ec2.internal 6.1.27-43.48.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May  2 04:53:36 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • S3 backend implementation (AWS, Ceph, NetApp StorageGrid, etc...)
    AWS

  • Authentication method (IAM, IAM with Fargate, IAM with K8S, AWS Credentials, etc...)
    IAM

Additional context

System was working flawlessly for months using AWS_SIGS_VERSION=4, launched with docker-compose. A couple days ago, I added an additional contaner spec to docker-compose.yml and restarted. The problem seemed to arise when a new version of the gateway image was downloaded and deployed.

Changing the config to use AWS_SIGS_VERSION=2 re-enables the system and delivers the resources as expected.

Regrettably I don't have a handy backup of the docker-compose.yml config, but I'm reasonably confident the AWS_SIGS_VERSION was not changed from 2 to 4 prior to the restart.

Is it possible something in the latest image broke with regard to the AWS_SIGS_VERSION setting?

Sensitive Information

Remember to redact any sensitive information such as authentication credentials or license keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions