【问题标题】:How to config Ceph rgw sts key如何配置 Ceph rgw sts 密钥
【发布时间】:2020-12-23 06:47:22
【问题描述】:

我将使用 Ceph(rook-ceph V15.2.5)STS 服务创建临时凭证以通过 Java 访问 ceph 存储桶资源,并按照示例步骤:https://docs.ceph.com/en/latest/radosgw/STS/。 当调用assumeRole 来获取凭据时,它的结果为400。从rgw 日志中:

debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700 10 moving my-store.rgw.meta+roles+roles.5c5d7e0e-7492-4b53-8aa2-cd0a316f88af to cache LRU end
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role verifying op params
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role pre-executing
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role executing
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  0 ERROR: Invalid secret key
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role completing
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role op status=-22
debug 2020-12-23T02:57:26.656+0000 7f8fd8dd4700  2 req 451 0.003000119s sts:assume_role http status=400

存在“无效的密钥”错误。这是否意味着 rgw sts 密钥无效?

我已经在 rgw pod: /etc/ceph/ceph.conf 下设置了 sts 键的 16 个字符

[client.radosgw.gateway]
rgw sts key = "abcdefghijklmnop"
rgw s3 auth use sts = true

有人知道如何解决这个问题吗?谢谢

【问题讨论】:

  • 问题已解决,
  • 嗨@Dylan!你能解释一下你解决问题的方法吗?我们目前遇到同样的问题,对解决方案没有任何想法。

标签: ceph sts


【解决方案1】:

你已经得到了你的答案。 但我认为有人需要提示这个问题。

以下链接将对某人有所帮助。

【讨论】:

    【解决方案2】:

    章节标题 [client.radosgw.gateway] 不能盲目地从 Ceph 文档中复制:其中应该有一个 {cluster-name} 需要替换。如果您只有一个集群或对所有集群使用相同的密钥,则将这些条目放在 [global] 下也可以。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-04
      • 2019-11-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多