Expand description
Sanitized environment handling for child processes.
Functions§
- apply_
to_ command - apply_
to_ git_ command - Start a git child from the sanitized environment plus
GIT_PASSTHROUGH_KEYS. Repository config (core.fsmonitor, hooks, filters,core.sshCommand) can make any git command run a program chosen by whoever wrote the workspace, so git must not hand that program the parent’s credentials. - apply_
to_ pty_ command - apply_
to_ tokio_ command - apply_
to_ tokio_ command_ mcp - sanitized_
child_ env - Return the environment for a child process after dropping parent secrets.
- sanitized_
mcp_ env - Build the sanitized child environment used for MCP stdio servers.
- sanitized_
plugin_ mcp_ env_ from - Build a reviewed plugin child environment from an immutable host snapshot.
- sanitized_
runtime_ env_ from - Environment for a Codewhale runtime child (a Fleet worker), built from a snapshot of the parent environment.
- string_
map_ env - Convert a string env map into owned OS strings for child env helpers.