Skip to content

fix(aliyun-oss): avoid duplicated bucket in canonicalized resource for path-style#692

Open
polyrabbit wants to merge 1 commit intoapache:mainfrom
polyrabbit:main
Open

fix(aliyun-oss): avoid duplicated bucket in canonicalized resource for path-style#692
polyrabbit wants to merge 1 commit intoapache:mainfrom
polyrabbit:main

Conversation

@polyrabbit
Copy link

When using PrivateLink to access OSS, users must use the path-style access method. For more information, see
https://help.aliyun.com/zh/oss/user-guide/access-oss-via-privatelink-network

But reqsign currently does not support path-style signature, it always duplicates the bucket name in the path, which causes signature failure. A valid string to sign should be like:

GET


Wed, 25 Feb 2026 13:53:35 GMT
/test-bucket/

whereas the current code signs this:

GET


Wed, 25 Feb 2026 13:52:33 GMT
/test-bucket/test-bucket

@Xuanwo
Copy link
Member

Xuanwo commented Feb 26, 2026

I don't understand how could this happen. Can you share your config about endpoint and bucket?

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