密钥仓库组件

    Dapr integrates with secret stores to provide apps and other components with secure storage and access to secrets such as access keys and passwords. 每个密钥存储组件都有一个名称,这个名称用于访问密钥。

    与其他构建块组件一样,密钥存储组件是可扩展的,可以在components-contrib 仓库中找到。

    密钥存储的类型由type字段决定,连接地址和其他元数据等放在部分。

    Different will have different specific fields that would need to be configured. 例如,当配置一个使用 AWS Secrets Manager秘密存储时,文件看起来就像这样:

    要在本地运行,创建一个包含YAML文件的components目录,并提供命令的路径,标志为--components-path

    若要在 Kubernetes 中部署,假定您的组件文件名为 ,运行: