pub enum FleetTrustLevel {
Sandbox = 0,
Local = 1,
RemoteVerified = 2,
Operator = 3,
}Expand description
Legacy trust classification retained only to deserialize old Fleet ledgers.
It is not Fleet identity and new run creation rejects it. Current authority comes from live Runtime policy; these helper predicates describe the old wire vocabulary only.
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
impl Copy for FleetTrustLevel
Source§impl Debug for FleetTrustLevel
impl Debug for FleetTrustLevel
Source§impl Default for FleetTrustLevel
impl Default for 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
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FleetTrustLevel
impl PartialEq for FleetTrustLevel
Source§impl PartialOrd for FleetTrustLevel
impl PartialOrd for FleetTrustLevel
Source§impl Serialize for FleetTrustLevel
impl Serialize for FleetTrustLevel
impl StructuralPartialEq for FleetTrustLevel
Auto Trait Implementations§
impl Freeze for FleetTrustLevel
impl RefUnwindSafe for FleetTrustLevel
impl Send for FleetTrustLevel
impl Sync for FleetTrustLevel
impl Unpin for FleetTrustLevel
impl UnsafeUnpin for FleetTrustLevel
impl UnwindSafe for FleetTrustLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.