pub struct KernelRef {
pub source: String,
pub sha256: String,
pub sig: Option<String>,
}Expand description
A microVM kernel selection: a content-hash pin, verified before boot, with an optional detached signature checked against the static kernel-signing keys.
Fields§
§source: StringWhere the kernel comes from: a content-addressed blob hash (or a ref a higher layer resolved to one).
sha256: StringThe expected SHA-256 of the kernel bytes. The runtime fetches, hashes, and refuses to boot on mismatch (verify-before-boot).
sig: Option<String>Detached signature (hex) over sha256, verified against a
static [compute] kernel_signing_pubkeys. Required under the strict
(multi-tenant) posture; optional under single-tenant/dev. None = unsigned.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KernelRef
impl<'de> Deserialize<'de> for KernelRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KernelRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KernelRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KernelRef
Source§impl Serialize for KernelRef
impl Serialize for KernelRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for KernelRef
Auto Trait Implementations§
impl Freeze for KernelRef
impl RefUnwindSafe for KernelRef
impl Send for KernelRef
impl Sync for KernelRef
impl Unpin for KernelRef
impl UnsafeUnpin for KernelRef
impl UnwindSafe for KernelRef
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.