The documentation you are viewing is for Dapr v1.11 which is an older version of Dapr. For up-to-date documentation, see the latest version.

Local environment variables (for Development)

Detailed information on the local environment secret store component

This Dapr secret store component uses locally defined environment variable and does not use authentication.

Component format

To setup local environment variables secret store create a component of type secretstores.local.env. Create a file with the following content in your ./components directory:

kind: Component
  name: envvar-secret-store
  type: secretstores.local.env
  version: v1
    # - name: prefix
    #   value: "MYAPP_"

Spec metadata fields

Field Required Details Example
prefix N If set, limits operations to environment variables with the given prefix. The prefix is removed from the returned secrets’ names.
The matching is case-insensitive on Windows and case-sensitive on all other operating systems.


For security reasons, this component cannot be used to access these environment variables:

  • Any variable whose name begines with the DAPR_ prefix

Last modified May 17, 2023: Apply suggestions from code review (082f61ee)