pub struct VerifyPolicy {
pub accept_cognitum_release: bool,
pub record_cog_toml_pins: Vec<String>,
}Expand description
Verification options.
Fields§
§accept_cognitum_release: boolOpt in to the Cognitum ADR-154/155 release-record verifier. Off by default; when on, a valid record from a pinned Cognitum key that binds one of the package binaries counts as a signature.
record_cog_toml_pins: Vec<String>BLAKE3 hashes of cog.toml files an operator has reviewed and pins
for record-only trust. A Cognitum release record binds the cog id,
version, source commit and binary digest but not the raw cog.toml,
so a package trusted through a record alone is accepted only when its
cog.toml hash is in this list. Operator-signed packages need no pin
(the envelope signature covers cog.toml).
Trait Implementations§
Source§impl Clone for VerifyPolicy
impl Clone for VerifyPolicy
Source§impl Debug for VerifyPolicy
impl Debug for VerifyPolicy
Auto Trait Implementations§
impl Freeze for VerifyPolicy
impl RefUnwindSafe for VerifyPolicy
impl Send for VerifyPolicy
impl Sync for VerifyPolicy
impl Unpin for VerifyPolicy
impl UnsafeUnpin for VerifyPolicy
impl UnwindSafe for VerifyPolicy
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more