Skip to content
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

阿里云oss使用自定义域名bucket进行下载操作时出现签名错误 #652

Open
Hopeeia opened this issue Apr 5, 2024 · 4 comments

Comments

@Hopeeia
Copy link

Hopeeia commented Apr 5, 2024

环境信息

  • ZFile 版本:4.1.5
  • 部署方式:Docker
  • 操作系统/设备:Linux
  • 浏览器/版本号:Mozilla/5.0 (Android 14; Mobile; rv:124.0) Gecko/124.0 Firefox/124.0

复现步骤

endpoint使用北京的aliyun官方endpoint,bucket域名填写https自己的域名,通过oss浏览器及外链可正常下载,使用zfile时可访问文件列表,但下载时出现签名错误

预期结果

正常下载

实际结果

因签名不匹配无法下载

额外信息

SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your key and signing method. 660F833A0AD071353882A749 oss.example.com(脱敏处理) ID(脱敏处理) 97d5db1cb9269de2239311f48029f54213e58027a229c34e1af65233c90e5e0f AWS4-HMAC-SHA256 20240405T045040Z 20240405/oss/s3/aws4_request 59bac2d1060bc73a53be3e90863d005c7f057f85861de9954fb1086e49d26394 41 57 53 34 2D 48 4D 41 43 2D 53 48 41 32 35 36 0A 32 30 32 34 30 34 30 35 54 30 34 35 30 34 30 5A 0A 32 30 32 34 30 34 30 35 2F 6F 73 73 2F 73 33 2F 61 77 73 34 5F 72 65 71 75 65 73 74 0A 35 39 62 61 63 32 64 31 30 36 30 62 63 37 33 61 35 33 62 65 33 65 39 30 38 36 33 64 30 30 35 63 37 66 30 35 37 66 38 35 38 36 31 64 65 39 39 35 34 66 62 31 30 38 36 65 34 39 64 32 36 33 39 34 0002-00000429 https://api.aliyun.com/troubleshoot?q=0002-00000429
@zhaojun1998
Copy link
Collaborator

刚验证了下,阿里云 oss 上使用自定义域名是有这个域名,暂时还未确认是 zfile bug 还是阿里云 oss 对 Amazon S3 的 V4 签名兼容性有问题。

@zhaojun1998
Copy link
Collaborator

我尝试了更换签名版本来获取是没问题的,我也去提工单问阿里的工程师了,如果阿里能兼容 Amazon S3 的 V4 签名,等他们解决就正常了,如果兼容不了,那就等下个版本我更换签名版本即可。(因为捐赠版功能差异,捐赠版没这个问题)

@Hopeeia
Copy link
Author

Hopeeia commented Apr 5, 2024

👌

@Hopeeia
Copy link
Author

Hopeeia commented Jul 7, 2024 via email

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

No branches or pull requests

2 participants