Skip to main content

Module bash_env

Module bash_env 

Source
Expand description

The fixed deny list for bash.env and per-call env names.

Two strengths, both case-insensitive at config load:

  • refused at every tier: the names can hijack process startup, redirect where tools (and AFT’s own nested processes) find configuration and storage, inject code into an interpreter, corrupt or redirect Git, or drive AFT, the sandbox, or a build worker;
  • refused at the project tier only: user configuration may set them, but a repository must not swap the user’s credentials, identity, or the trust chain of its network traffic.

The list is fixed in code and changes only through review; a config-time extension could only ever tighten it, which nobody has asked for.

Enums§

BashEnvTier
Which tier a bash.env map came from. The strength of the deny list and the disclosure wording both depend on it.

Functions§

first_blocked_env_key
is_blocked_provider_env_key
is_preexec_hijack_env_key
Startup hooks that execute code before a command can enter its sandbox. These names must be rejected for user-configured and per-call environments.