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);