pub struct SandboxSettings {
pub read_roots: Vec<String>,
pub proxy_port: Option<NonZeroU16>,
pub proxy_allow_ech: bool,
pub package_min_release_age_days: Option<u16>,
}Expand description
The sandbox: section (ADR-018, ADR-019).
Fields§
§read_roots: Vec<String>Paths (directories or files) the OS layers let commands read although no
allow rule covers them: system and toolchain directories every build
reads. The hook decision ignores them, and deny rules win over them in
every layer. Absolute or ~/…, never a glob.
proxy_port: Option<NonZeroU16>The loopback port moat proxy listens on and the host sandboxes send
their commands’ traffic to; absent, the CLI’s default.
proxy_allow_ech: boolLet moat proxy forward a TLS ClientHello that carries an encrypted
server name (ECH, ESNI). Off, such a tunnel is refused: the server acts
on the encrypted name, which may be another site than the allowed host.
package_min_release_age_days: Option<u16>Days a package version must have been published before the package
managers moat run starts install it (ADR-030); 0 turns this off,
absent is 7 days (Policy::package_min_release_age_days).