使用 swift 样式访问 rclone 和非经典 OCI 对象存储

Using swift style access with rclone and non-classic OCI object storage

任何人都可以评论是否可以使用 rclone 的 swift 支持来访问 OCI 对象存储(新 OCI,非经典)中的存储桶。

我对此很感兴趣,因为 S3 兼容模式仅限于一个指定的隔间,我希望能够将 rclone 与我租户中的任何存储桶一起使用。

我知道 public 桶仍然有 swift 风格 URL。 3 个功能 URLs 样式似乎是:

https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm 略微讨论了 Swift 密码(Auth Tokens),您可以在控制台中创建一个。

但是我找不到关于 auth URL 对非经典版本的对象存储有何作用的任何信息。 storage_url 和 auth_token 似乎也不起作用。

使用 -vvvv 不会显示超过 401 Unauthorized 的任何内容。

I'm interested in it because S3 compatibility mode is limited to a single designated compartment and I'd like to be able to use rclone with any bucket in my tenancy.

指定的隔间仅控制通过该协议(S3 或 Swift)创建的存储桶的放置位置。指定隔间不影响授权。授权由相关的 IAM 策略控制。

But I can't find anything about what the auth URL would be for the non-classic version of object storage. And storage_url with a auth_token doesn't seem to work either.

new/current OCI Object 存储不支持授权 URL。您必须在 OCI 上使用 HTTP basic-style 身份验证和 Swift。 rclone 似乎不支持直接使用 swift 的 HTTP 基本身份验证(可以自己创建基本身份验证 header 并让 rclone 发送它)。

综上所述,将 rclone 与 s3 结合使用是 OCI Object 存储的最佳方法。确保将“区域”选项设置为正确的区域名称,如“us-phoenix-1”,你应该没问题。

谢谢!