Skip to content

Explicitly remove X-Amz-Security-Token on 3xx redirect #3247

@hunshcn

Description

@hunshcn

Acknowledgements

Describe the bug

Happend on handle 307 response.

Like Authorzation, if the host has been changed, the X-Amz-Security-Token should also be remove from request.

Regression Issue

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

Expected Behavior

do not send X-Amz-Security-Token after 307 to a different host

Current Behavior

Now aws-sdk-go-v2 handle 307 response through http stdlib. It will remove the Authorzation header if host changed but X-Amz-Security-Token not.

Reproduction Steps

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

latest

Compiler and Version used

1.25.5

Operating System and version

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rd-partyIssue relates to a 3rd-party clone of an AWS servicefeature-requestA feature should be added or improved.p3This is a minor priority issuequeuedThis issues is on the AWS team's backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions