pub enum PluginTrustTier {
Signed,
Unsigned,
}Expand description
Trust classification assigned to a wasm component at load time.
Variants§
Signed
Component is signed by a trusted key (cosign / sigil).
May import raw transport (transport.tcp, transport.tls) and
the secrets interface. All safe-tier primitives also available.
Unsigned
Component is unsigned (customer wasm or unsigned local plugin).
May only import the safe high-level primitives: http, persistence,
pubsub, file, clock, crypto, process, quota.
Attempting to link against privileged primitives traps at instantiation.
Implementations§
Source§impl PluginTrustTier
impl PluginTrustTier
Sourcepub const fn is_privileged(&self) -> bool
pub const fn is_privileged(&self) -> bool
Whether this tier may access raw TCP/TLS transport or the secrets interface.
Sourcepub fn resolve(is_signed: bool, environment: &str) -> Self
pub fn resolve(is_signed: bool, environment: &str) -> Self
Determine the effective trust tier for a component given the environment and whether a valid signature was found.
In development mode the signing check is bypassed — unsigned plugins load
and receive Signed privileges so local development doesn’t require a
full cosign pipeline.
Trait Implementations§
Source§impl Clone for PluginTrustTier
impl Clone for PluginTrustTier
Source§fn clone(&self) -> PluginTrustTier
fn clone(&self) -> PluginTrustTier
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 PluginTrustTier
Source§impl Debug for PluginTrustTier
impl Debug for PluginTrustTier
Source§impl Default for PluginTrustTier
impl Default for PluginTrustTier
Source§fn default() -> PluginTrustTier
fn default() -> PluginTrustTier
Source§impl<'de> Deserialize<'de> for PluginTrustTier
impl<'de> Deserialize<'de> for PluginTrustTier
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>,
Source§impl Display for PluginTrustTier
impl Display for PluginTrustTier
impl Eq for PluginTrustTier
Source§impl Hash for PluginTrustTier
impl Hash for PluginTrustTier
Source§impl PartialEq for PluginTrustTier
impl PartialEq for PluginTrustTier
Source§fn eq(&self, other: &PluginTrustTier) -> bool
fn eq(&self, other: &PluginTrustTier) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PluginTrustTier
impl Serialize for PluginTrustTier
impl StructuralPartialEq for PluginTrustTier
Auto Trait Implementations§
impl Freeze for PluginTrustTier
impl RefUnwindSafe for PluginTrustTier
impl Send for PluginTrustTier
impl Sync for PluginTrustTier
impl Unpin for PluginTrustTier
impl UnsafeUnpin for PluginTrustTier
impl UnwindSafe for PluginTrustTier
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToEcoString for T
impl<T> ToEcoString for T
Source§fn to_eco_string(&self) -> EcoString
fn to_eco_string(&self) -> EcoString
EcoString.