Skip to content

Fix url scheme using for forwarded request with changed proto #6884

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

Merged

Conversation

Olex1313
Copy link
Contributor

@Olex1313 Olex1313 commented Jun 16, 2025

What problem are we solving?

Correct signature calculation in case of proxied request with changed protocol (https -> http for example), more in
#6839

How are we solving the problem?

Taking into account X-Forwarded-Proto header for host extraction in auth_signature_v4.go

How is the PR tested?

I've builded a local image and deployed it into my k3s cluster where I'm using seaweedfs hidden after traefik proxy (https->http).

Then I've checked with tcpdump that recevied request is correct and checked seaweedfs logs, assuring that the default port is not added for https scheme

Checks

  • I have added unit tests if possible.
  • I will add related wiki document changes and link to this PR after merging.

@chrislusf chrislusf merged commit 29d1701 into seaweedfs:master Jun 16, 2025
7 checks passed
@Olex1313 Olex1313 deleted the fix-proto-change-in-s3-signature branch June 16, 2025 20:17
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 this pull request may close these issues.

2 participants