Skip to main content

Module child_env

Module child_env 

Source
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.