(
&self,
vm_config: String,
report: &VerifiedAttestation,
)
| 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, |
no outgoing calls
no test coverage detected