The documentation you are viewing is for Dapr v1.15 which is an older version of Dapr. For up-to-date documentation, see the latest version.
华为云密钥管理服务 (CSMS)
详细介绍华为云密钥管理服务 (CSMS) - 密钥存储组件
	组件格式
要配置华为云密钥管理服务 (CSMS) 的密钥存储,需创建一个类型为 secretstores.huaweicloud.csms 的组件。请参阅本指南了解如何创建和应用密钥存储配置。有关如何引用密钥以在 Dapr 组件中检索和使用密钥的信息,请参阅本指南。
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: huaweicloudcsms
spec:
  type: secretstores.huaweicloud.csms
  version: v1
  metadata:
  - name: region
    value: "[huaweicloud_region]"
  - name: accessKey 
    value: "[huaweicloud_access_key]"
  - name: secretAccessKey
    value: "[huaweicloud_secret_access_key]"
元数据字段说明
| 字段 | 必需 | 详细信息 | 示例 | 
|---|---|---|---|
| region | 是 | 华为云 CSMS 实例所在的具体区域 | "cn-north-4" | 
| accessKey | 是 | 用于访问此资源的华为云访问密钥 | "accessKey" | 
| secretAccessKey | 是 | 用于访问此资源的华为云密钥访问密钥 | "secretAccessKey" | 
可选的每请求元数据属性
在从此密钥存储检索密钥时,可以提供以下可选查询参数:
| 查询参数 | 描述 | 
|---|---|
| metadata.version_id | 指定密钥的版本。 | 
设置华为云密钥管理服务 (CSMS) 实例
请参考华为云文档以设置华为云密钥管理服务 (CSMS):https://support.huaweicloud.com/intl/en-us/usermanual-dew/dew_01_9993.html。
相关链接
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.