Skip to content

"X-Amz-User-Agent" causes signature issue with HTTP proxy #3119

@cweiske

Description

@cweiske

Describe the bug

We've got a MinIO instance running behind a (to me unkown) HTTP proxy, which removes the empty X-Amz-User-Agent header sent by the AWS PHP SDK. This causes a signature error:

There were headers present in the request which were not signed.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

No signature error.

Current Behavior

Signature error:

There were headers present in the request which were not signed.

This is because SignedHeaders contains x-amz-user-agent, despite it being on the signature blacklist.

Reproduction Steps

  1. Send request to HTTP to MinIO S3 server behind a proxy that removes empty HTTP headers

Possible Solution

No response

Additional Information/Context

No response

SDK version used

3.343.8

Environment details (Version of PHP (php -v)? OS name and version, etc.)

PHP 8.2.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    closing-soonThis issue will automatically close in 4 days unless further comments are made.guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions