我设置了 Minio 服务器,一切似乎都在正常运行。
对于我的 CLI,我的 config.json 中有这个:
"myalias": {
"url": "https://myurl",
"accessKey": "myaccesskey",
"secretKey": "mysecretkey",
"api": "S3v4",
"lookup": "auto",
"Region": "us-east-1"
}
但是当我尝试上传文件时,我得到了这个:
# mc cp test.txt myalias/stuff/
0 B / 19 B [ ] 0.00%
mc: <ERROR> Failed to copy `test.txt`. The request signature we
calculated does not match the signature you provided. Check your key and
signing method.
如果我将 config.json 中的 api 更改为:
"api": "S3v2"
有用:
# mc cp test.txt myalias/stuff/
test.txt: 19 B / 19 B [==============================] 100.00% 193 B/s 0s
我的问题是,我可以将 Minio 配置为使用版本 4 签名验证而不是版本 2 吗?minio 不应该默认使用版本 4 吗?