gpt4 book ai didi

google-cloud-platform - 为服务帐号生成 HMAC key 以用于 Google Cloud Storage Interoperability API

转载 作者:行者123 更新时间:2023-12-01 03:19:30 25 4
gpt4 key购买 nike

一些工具(例如 fog library )需要使用 Interoperability API能够管理 Google Cloud Storage 存储分区中的对象。该 API 使用 HMAC 身份验证。

为个人账户生成 HMAC 凭证很简单。以下是来自 documentation of fog 的步骤:

get your credentials under the section “Interoperable Access”.



但是我不知道如何为服务帐户生成这些。在我的情况下这是必要的,因为我想将存储桶的访问权限授予应用程序而不是个人。

最佳答案

无法为服务帐户生成 HMAC secret 。次优解决方案是创建专用用户帐户进行签名。您可以使用服务帐户 RSA 证书创建签名 URL,但这不适用于 HMAC 兼容性。

关于google-cloud-platform - 为服务帐号生成 HMAC key 以用于 Google Cloud Storage Interoperability API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46635437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com