You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using `sudo -E`, these host variables are automatically passed: `GITHUB_TOKEN`, `GH_TOKEN`, `GITHUB_PERSONAL_ACCESS_TOKEN`, `USER`, `TERM`, `HOME`, `XDG_CONFIG_HOME`.
19
+
20
+
The following are always set/overridden: `HTTP_PROXY`, `HTTPS_PROXY` (Squid proxy), `PATH`, `DOCKER_HOST`, `DOCKER_CONTEXT` (container values).
21
+
22
+
Variables from `--env` flags override everything else.
23
+
24
+
## Security Warning: `--env-all`
25
+
26
+
Using `--env-all` passes all host environment variables to the container, which creates security risks:
27
+
28
+
1.**Credential Exposure**: All variables (API keys, tokens, passwords) are written to `/tmp/awf-<timestamp>/docker-compose.yml` in plaintext
29
+
2.**Log Leakage**: Sharing logs or debug output exposes sensitive credentials
30
+
3.**Unnecessary Access**: Extra variables increase attack surface (violates least privilege)
31
+
4.**Accidental Sharing**: Easy to forget what's in your environment when sharing commands
0 commit comments