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ポッドの下に16文字のstsキーを設定しました:/etc/ceph/ceph.conf
[client.radosgw.gateway]
rgw sts key = "abcdefghijklmnop"
rgw s3 auth use sts = true
この問題を解決する方法を知っている人はいますか?ありがとう