Skip to content

Commit

Permalink
disable manifest check for debugging purposes (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes authored Feb 18, 2025
1 parent 2dc768e commit 586c8ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions notary/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down
12 changes: 6 additions & 6 deletions notary/src/tee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ pub async fn tee_proxy_service<S: AsyncWrite + AsyncRead + Send + Unpin>(
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);
Expand Down

0 comments on commit 586c8ab

Please sign in to comment.