Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/docs/iac/concepts/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ For example, this command sets a configuration variable named `dbPassword` to th
$ pulumi config set --secret dbPassword S3cr37
```

{{% notes "warning" %}}
When storing secret values containing special characters (such as `$`, `!`, `@`, `#`, etc.), be aware that shell interpretation may modify the value before it reaches Pulumi. Consider using quotes around the value or escaping special characters according to your shell's requirements. For complex values, you may want to use input redirection or pipe the value from a file to avoid shell interpretation entirely.
{{% /notes %}}

If we list the configuration for our stack, the plain-text value for `dbPassword` will not be printed:

```bash
Expand Down
4 changes: 4 additions & 0 deletions content/tutorials/managing-config-and-secrets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ To encrypt a configuration value before runtime, you will need to run the `pulum
pulumi config set myPassword demo-password-123 --secret
```

{{% notes "warning" %}}
When storing secret values containing special characters (such as `$`, `!`, `@`, `#`, etc.), be aware that shell interpretation may modify the value before it reaches Pulumi. Consider using quotes around the value or escaping special characters according to your shell's requirements. For complex values, you may want to use input redirection or pipe the value from a file to avoid shell interpretation entirely.
{{% /notes %}}

Now run the `pulumi config` command again, and you will see that, unlike the value for `myEnvironment`, the value for `myPassword` is hidden:

```bash
Expand Down
Loading