Repository navigation
Secrets in local dev without writing to disk. #8717
Replies: 2 comments
|
See |
|
Yes. Set CLOUDFLARE_INCLUDE_PROCESS_ENV=true MY_API_KEY="$(op read op://dev/api/key)" wrangler devThey show up on Two things to know:
This pairs well with a secret manager CLI ( Checked against wrangler 4.151 ( |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is there a way I can supply secrets to wrangler in local dev without writing them to disk? It seems like env vars do not work, but i also don't want to write secrets to disk with
.dev.varsRight now my bad idea is to have a utility function which can choose between the cf env and process.env. Then I can inject secrets into the env in dev, but still use cloudflare secret storage in production, and my dev secrets never get written to disk.
All reactions