Skip to content

Commit

Permalink
docs: clarify env var handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Feb 28, 2024
1 parent b585f76 commit 6ae8fbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ It's not recommended to use the mount options to remount `/` as `hostfs` other t

## Environment variables

`env` holds environment variables to set or take over from the host inside the enclave. By default, all environment variables not starting with `EDG_` are dropped when entering the enclave.
To protect against manipulations by the untrusted host, all environment variables not starting with `EDG_` are dropped when entering the enclave.

To securely provide environment variables to your application (not starting with `EDG_`), define them in the `env` section. You can either set a static value or whitelist a variable to be taken over from the host.

* `name` (required): The name of the environment variable
* `value` (required if not `fromHost`): The value of the environment variable
Expand Down

0 comments on commit 6ae8fbd

Please sign in to comment.