|
| 1 | +--- |
| 2 | +title: doppler-secrets |
| 3 | +title_tag: doppler-secrets Pulumi ESC provider |
| 4 | +meta_desc: The doppler-secrets Pulumi ESC Provider enables you to dynamically import secrets from Doppler into your environment. |
| 5 | +h1: doppler-secrets |
| 6 | +menu: |
| 7 | + esc: |
| 8 | + identifier: doppler-secrets |
| 9 | + parent: esc-dynamic-secrets |
| 10 | + weight: 5 |
| 11 | +aliases: |
| 12 | + - /docs/pulumi-cloud/esc/providers/doppler-secrets/ |
| 13 | + - /docs/esc/providers/doppler-secrets/ |
| 14 | +--- |
| 15 | + |
| 16 | +The `doppler-secrets` provider enables you to dynamically import Secrets from Doppler into |
| 17 | +your Environment. The provider will return a map of names to Secrets. |
| 18 | + |
| 19 | +## Example |
| 20 | + |
| 21 | +```yaml |
| 22 | +values: |
| 23 | + doppler: |
| 24 | + login: |
| 25 | + fn::open::doppler-login: |
| 26 | + oidc: |
| 27 | + identityId: 00000000-0000-0000-0000-000000000000 |
| 28 | + secrets: |
| 29 | + fn::open::doppler-secrets: |
| 30 | + login: ${doppler.login} |
| 31 | + project: example-project |
| 32 | + config: dev |
| 33 | + get: |
| 34 | + api-key: |
| 35 | + name: API_KEY |
| 36 | + app-secret: |
| 37 | + name: APP_SECRET |
| 38 | +``` |
| 39 | +
|
| 40 | +## Configuring OIDC |
| 41 | +
|
| 42 | +To learn how to configure OpenID Connect (OIDC) between Pulumi Cloud and Doppler, see |
| 43 | +the [OpenID Connect integration](/docs/pulumi-cloud/oidc/provider/doppler/) documentation. Once you have completed |
| 44 | +these steps, you can validate that your configuration is working by running either of the following: |
| 45 | +
|
| 46 | +* `esc open <org>/<project>/<environment>` command of the [Pulumi ESC CLI](/docs/esc-cli/) |
| 47 | +* `pulumi env open <org>/<project>/<environment>` command of the [Pulumi CLI](/docs/install/) |
| 48 | + |
| 49 | +Make sure to replace `<org>`, `<project>`, and `<environment>` with the values of your Pulumi organization and |
| 50 | +environment identifier respectively. You should see output similar to the following: |
| 51 | + |
| 52 | +```json |
| 53 | +{ |
| 54 | + "doppler": { |
| 55 | + "login": { |
| 56 | + "accessToken": "dp.said.XXX..." |
| 57 | + }, |
| 58 | + "secrets": { |
| 59 | + "api-key": "my-api-key", |
| 60 | + "app-secret": "my-app-secret" |
| 61 | + } |
| 62 | + } |
| 63 | +} |
| 64 | +``` |
| 65 | + |
| 66 | +## Inputs |
| 67 | + |
| 68 | +| Property | Type | Description | |
| 69 | +|----------|--------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| |
| 70 | +| `login` | [DopplerSecretsLogin](#dopplersecretslogin) | Credentials to use to log in to Doppler. | |
| 71 | +| `project` | string | The project identifier in Doppler | |
| 72 | +| `config` | string | The config identifier in Doppler | |
| 73 | +| `get` | map[string][DopplerSecretsGet](#dopplersecretsget) | A map from names to secrets to read from Doppler Secrets. The outputs will map each name to the secret's sensitive data. | |
| 74 | + |
| 75 | +### DopplerSecretsLogin |
| 76 | + |
| 77 | +| Property | Type | Description | |
| 78 | +|---------------|--------|---------------------------------------------------------------------------------------------------------------------------| |
| 79 | +| `accessToken` | string | The access token to use for authentication. | |
| 80 | + |
| 81 | +### DopplerSecretsGet |
| 82 | + |
| 83 | +| Property | Type | Description | |
| 84 | +|---------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 85 | +| `name` | string | The secret name in Doppler | |
| 86 | + |
| 87 | +### Outputs |
| 88 | + |
| 89 | +| Property | Type | Description | |
| 90 | +|----------|--------|-------------------------------------| |
| 91 | +| N/A | object | A map of names to imported Secrets. | |
0 commit comments