MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / verify_os_image_hash

Method verify_os_image_hash

kms/src/main_service.rs:229–245  ·  view source on GitHub ↗
(
        &self,
        vm_config: String,
        report: &VerifiedAttestation,
    )

Source from the content-addressed store, hash-verified

227 }
228
229 async fn verify_os_image_hash(
230 &self,
231 vm_config: String,
232 report: &VerifiedAttestation,
233 ) -> Result<()> {
234 if !self.state.config.image.verify {
235 info!("Image verification is disabled");
236 return Ok(());
237 }
238 let mut detail = VerificationDetails::default();
239 self.state
240 .verifier
241 .verify_os_image_hash(vm_config, report, false, &mut detail)
242 .await
243 .context("Failed to verify os image hash")?;
244 Ok(())
245 }
246
247 async fn ensure_app_attestation_allowed(
248 &self,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected