pub struct RuntimeAttestationEvidence {
pub schema: String,
pub verifier: String,
pub tier: RuntimeAssuranceTier,
pub issued_at: u64,
pub expires_at: u64,
pub evidence_sha256: String,
pub runtime_identity: Option<String>,
pub workload_identity: Option<WorkloadIdentity>,
pub claims: Option<Value>,
}Expand description
Normalized runtime attestation evidence carried with governed requests.
Fields§
§schema: StringSchema or format identifier of the upstream attestation statement.
verifier: StringAttestation verifier or relying party that accepted the evidence.
tier: RuntimeAssuranceTierNormalized assurance tier resolved from the evidence.
issued_at: u64Unix timestamp (seconds) when this attestation was issued.
expires_at: u64Unix timestamp (seconds) when this attestation expires.
evidence_sha256: StringStable SHA-256 digest of the attestation evidence payload.
runtime_identity: Option<String>Optional runtime identity or workload identifier associated with the evidence.
workload_identity: Option<WorkloadIdentity>Optional normalized workload identity when the upstream verifier exposed one explicitly.
claims: Option<Value>Optional structured claims preserved for adapters or operator inspection.
Implementations§
Source§impl RuntimeAttestationEvidence
impl RuntimeAttestationEvidence
pub fn is_valid_at(&self, now: u64) -> bool
pub fn normalized_workload_identity( &self, ) -> Result<Option<WorkloadIdentity>, WorkloadIdentityError>
pub fn validate_workload_identity_binding( &self, ) -> Result<(), WorkloadIdentityError>
pub fn resolve_effective_runtime_assurance( &self, policy: Option<&AttestationTrustPolicy>, now: u64, ) -> Result<ResolvedRuntimeAssurance, AttestationTrustError>
Trait Implementations§
Source§impl Clone for RuntimeAttestationEvidence
impl Clone for RuntimeAttestationEvidence
Source§fn clone(&self) -> RuntimeAttestationEvidence
fn clone(&self) -> RuntimeAttestationEvidence
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeAttestationEvidence
impl Debug for RuntimeAttestationEvidence
Source§impl<'de> Deserialize<'de> for RuntimeAttestationEvidence
impl<'de> Deserialize<'de> for RuntimeAttestationEvidence
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeAttestationEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeAttestationEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuntimeAttestationEvidence
impl Serialize for RuntimeAttestationEvidence
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 RuntimeAttestationEvidence
Auto Trait Implementations§
impl Freeze for RuntimeAttestationEvidence
impl RefUnwindSafe for RuntimeAttestationEvidence
impl Send for RuntimeAttestationEvidence
impl Sync for RuntimeAttestationEvidence
impl Unpin for RuntimeAttestationEvidence
impl UnsafeUnpin for RuntimeAttestationEvidence
impl UnwindSafe for RuntimeAttestationEvidence
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