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.

GCP Secret Manager

Detailed information on the GCP Secret Manager secret store component

Component format

To setup GCP Secret Manager secret store create a component of type secretstores.gcp.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.

kind: Component
  name: gcpsecretmanager
  type: secretstores.gcp.secretmanager
  version: v1
  - name: type
    value: <replace-with-account-type>
  - name: project_id
    value: <replace-with-project-id>
  - name: private_key_id
    value: <replace-with-private-key-id>
  - name: client_email
    value: <replace-with-email>
  - name: client_id
    value: <replace-with-client-id>
  - name: auth_uri
    value: <replace-with-auth-uri>
  - name: token_uri
    value: <replace-with-token-uri>
  - name: auth_provider_x509_cert_url
    value: <replace-with-auth-provider-cert-url>
  - name: client_x509_cert_url
    value: <replace-with-client-cert-url>
  - name: private_key
    value: <replace-with-private-key>

Spec metadata fields

Field Required Details Example
type Y The type of the account. "serviceAccount"
project_id Y The project ID associated with this component. "project_id"
private_key_id N The private key ID "privatekey"
client_email Y The client email address ""
client_id N The ID of the client "11111111"
auth_uri N The authentication URI ""
token_uri N The authentication token URI ""
auth_provider_x509_cert_url N The certificate URL for the auth provider ""
client_x509_cert_url N The certificate URL for the client "<project-name>"
private_key Y The private key for authentication "privateKey"

Setup GCP Secret Manager instance

Setup GCP Secret Manager using the GCP documentation: