From 586c8abce67a15322ace9bd635f14d47577e37d9 Mon Sep 17 00:00:00 2001 From: Matt <1240531+mattes@users.noreply.github.com> Date: Tue, 18 Feb 2025 11:40:58 -0800 Subject: [PATCH] disable manifest check for debugging purposes (#483) --- notary/src/proxy.rs | 12 ++++++------ notary/src/tee.rs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/notary/src/proxy.rs b/notary/src/proxy.rs index 2fe15928..385fa8db 100644 --- a/notary/src/proxy.rs +++ b/notary/src/proxy.rs @@ -51,13 +51,13 @@ pub async fn proxy( let response = from_reqwest_response(reqwest_response).await; // debug!("{:?}", response); - if !payload.manifest.request.is_subset_of(&request) { - return Err(NotaryServerError::ManifestRequestMismatch); - } + // if !payload.manifest.request.is_subset_of(&request) { + // return Err(NotaryServerError::ManifestRequestMismatch); + // } - if !payload.manifest.response.is_subset_of(&response) { - return Err(NotaryServerError::ManifestResponseMismatch); - } + // if !payload.manifest.response.is_subset_of(&response) { + // return Err(NotaryServerError::ManifestResponseMismatch); + // } // TODO: Maybe move that to `TeeProof::from_manifest`? payload.manifest.validate()?; diff --git a/notary/src/tee.rs b/notary/src/tee.rs index 53caa3ce..94f09ae8 100644 --- a/notary/src/tee.rs +++ b/notary/src/tee.rs @@ -212,13 +212,13 @@ pub async fn tee_proxy_service( let response = ManifestResponse::from_payload(&response_header, &response_body)?; debug!("{:?}", response); - if !manifest.request.is_subset_of(&request) { - return Err(NotaryServerError::ManifestRequestMismatch); - } + // if !manifest.request.is_subset_of(&request) { + // return Err(NotaryServerError::ManifestRequestMismatch); + // } - if !manifest.response.is_subset_of(&response) { - return Err(NotaryServerError::ManifestResponseMismatch); - } + // if !manifest.response.is_subset_of(&response) { + // return Err(NotaryServerError::ManifestResponseMismatch); + // } // send TeeProof to client let tee_proof = TeeProof::from_manifest(&manifest);