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 moreimpl Copy for FleetTrustLevel
Source§impl Debug for FleetTrustLevel
impl Debug for FleetTrustLevel
Source§impl Default for FleetTrustLevel
impl Default for FleetTrustLevel
Source§fn default() -> FleetTrustLevel
fn default() -> FleetTrustLevel
Source§impl<'de> Deserialize<'de> for FleetTrustLevel
impl<'de> Deserialize<'de> for FleetTrustLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FleetTrustLevel
Source§impl Ord for FleetTrustLevel
impl Ord for FleetTrustLevel
Source§fn cmp(&self, other: &FleetTrustLevel) -> Ordering
fn cmp(&self, other: &FleetTrustLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FleetTrustLevel
impl PartialEq for FleetTrustLevel
Source§fn eq(&self, other: &FleetTrustLevel) -> bool
fn eq(&self, other: &FleetTrustLevel) -> bool
self and other values to be equal, and is used by ==.