Expand description
exec:* stage implementation.
Exec action stage.
Stage identity syntax:
exec:<program>exec:<program>|<arg1>|<arg2>|...
This stage forwards the input bytes unchanged while also spawning <program> when policy
allows side effects. The input bytes are written to the child process’s stdin.
Safety:
- Disabled by default.
- To enable, set
BYTEOR_EXEC_ALLOWLISTto a comma-separated list of allowed program strings. The<program>in the stage key must exactly match one of the entries.
Structs§
Constants§
- BYTEOR_
EXEC_ ALLOWLIST_ ENV - Environment variable containing a comma-separated allowlist of programs.
- BYTEOR_
EXEC_ TIMEOUT_ ENV - Environment variable overriding the exec timeout.
- EXEC_
PREFIX - Prefix for exec stage keys.
Functions§
- parse_
exec_ cmd - Try to parse an
exec:<program>orexec:<program>|arg|...stage key.