pub enum FleetTrustLevel {
Sandbox = 0,
Local = 1,
RemoteVerified = 2,
Operator = 3,
}Expand description
Trust classification assigned to a worker host.
The trust level determines what a worker is allowed to do and what
secrets it may access. The default for new workers is FleetTrustLevel::Sandbox;
operators must explicitly raise trust for SSH or container workers.
Variants§
Sandbox = 0
Fully isolated: no network, no secrets, no writes outside .codewhale/fleet/.
Suitable for untrusted code review, community PR checks, or third-party tool runs.
Local = 1
Local-only worker with access to the workspace and configured secrets. Default for local workers. May read repo files but writes are gated.
RemoteVerified = 2
Worker on a known remote host with verified identity and a bounded set of explicitly granted capabilities. Requires SSH host-key verification or equivalent attestation.
Operator = 3
Fully trusted worker (e.g. operator’s own machine, CI runner). Has access to all configured secrets and may perform any action the operator can. Reserved for dogfood smoke and operator-owned machines.
Implementations§
Source§impl FleetTrustLevel
impl FleetTrustLevel
Sourcepub fn may_access_secrets(&self) -> bool
pub fn may_access_secrets(&self) -> bool
Whether this trust level is allowed to access provider secrets.
Sourcepub fn may_write_workspace(&self) -> bool
pub fn may_write_workspace(&self) -> bool
Whether this trust level is allowed to write outside .codewhale/fleet/.
Sourcepub fn may_access_network(&self) -> bool
pub fn may_access_network(&self) -> bool
Whether this trust level is allowed network access.
Trait Implementations§
Source§impl Clone for FleetTrustLevel
impl Clone for FleetTrustLevel
Source§fn clone(&self) -> FleetTrustLevel
fn clone(&self) -> FleetTrustLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more