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

Method ensure_attested

kms/src/main_service.rs:172–177  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

170 }
171
172 fn ensure_attested(&self) -> Result<&VerifiedAttestation> {
173 let Some(attestation) = &self.attestation else {
174 bail!("No attestation provided");
175 };
176 Ok(attestation)
177 }
178
179 async fn ensure_kms_allowed(&self, vm_config: &str) -> Result<BootInfo> {
180 let att = self.ensure_attested()?;

Callers 2

ensure_kms_allowedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected