Skip to content

Commit 1f43a5f

Browse files
committed
Update README to reflect secrets behavior change
1 parent 4970f2a commit 1f43a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ apps:
110110
# Environment variables
111111
env:
112112
NODE_ENV: production
113-
secrets:
113+
secrets: # config keys managed directly in Dokku
114114
- SECRET_KEY
115115

116116
# Linked services
@@ -231,7 +231,7 @@ global:
231231

232232
Env vars are omitted by default from `inspect` output because they typically contain secrets. Use `--include-env` to include them.
233233

234-
The `secrets` field lets you reference environment variables by name. At apply time, values are pulled from the host's environment so secrets never appear in the YAML file:
234+
The `secrets` field lists config keys that are managed directly in Dokku (via `dokku config:set`). Apply never reads or writes their values — it only excludes them from env drift detection so they aren't flagged or unset. Set them once with `dokku config:set myapp SECRET_KEY=value` and dokkufile will leave them alone:
235235

236236
```yaml
237237
apps:

0 commit comments

Comments
 (0)