The documentation you are viewing is for Dapr v1.9 which is an older version of Dapr. For up-to-date documentation, see the latest version.
AWS Secrets Manager
详细介绍了关于密钥仓库组件的信息
配置
要设置AWS Secrets Manager密钥仓库,请创建一个类型为secretstores.aws.secretmanager
的组件。 See this guide on how to create and apply a secretstore configuration. See this guide on referencing secrets to retrieve and use the secret with Dapr components.
See Authenticating to AWS for information about authentication-related attributes.
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: awssecretmanager
namespace: default
spec:
type: secretstores.aws.secretmanager
version: v1
metadata:
- name: region
value: "[aws_region]"
- name: accessKey
value: "[aws_access_key]"
- name: secretKey
value: "[aws_secret_key]"
- name: sessionToken
value: "[aws_session_token]"
Warning
以上示例将密钥明文存储, It is recommended to use a local secret store such as Kubernetes secret store or a local file to bootstrap secure key storage.元数据字段规范
字段 | 必填 | 详情 | Example |
---|---|---|---|
region | Y | AWS Secrets Manager 实例所部署的特定AWS 区域 | "us-east-1" |
accessKey | Y | 要访问此资源的 AWS 访问密钥 | "key" |
secretKey | Y | 要访问此资源的 AWS 密钥访问 Key | "secretAccessKey" |
sessionToken | N | 要使用的 AWS 会话令牌 | "sessionToken" |
创建一个AWS Secrets Manager实例
参考AWS文档设置AWS Secrets Manager:https://docs.aws.amazon.com/secretsmanager/latest/userguide/tutorials_basic.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.