Expand description
Capability policy: what a script may require, read from the environment, and send over HTTP, enforced inside the builtins.
Orthogonal to ExecMode — a policy narrows what is reachable, the mode
decides whether a mutating operation runs, suspends, or is refused. With
no policy loaded every check passes and behaviour is unchanged.
Modules§
- apply
- Wraps the HTTP builtins with policy guards after registration, the same
shape
readonlyandapprovaluse. Enforcement lives here rather than inside the builtins so one place decides, and the transport code stays unaware of who is allowed to call it.
Structs§
Enums§
Constants§
- POLICY_
FILE_ ENV - Path to a policy file applied to every VM this process creates. Follows the same env-driven pattern as the other sandbox knobs.
Functions§
- active
- The active policy for this VM, or
Nonewhen the process runs unpoliced. - env_
visible - from_
env - guard_
http - guard_
require - install
- is_read
- Whether the policy treats this request as a read. Drives the gates, so a declared authentication POST can proceed under read-only mode.
- is_
redacted_ header - redact_
json_ text - redact_
keys - response_
limit