File tree Expand file tree Collapse file tree
attestation-provider-server/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ default = []
5757# Adds support for Microsoft Azure attestation generation and verification
5858azure = [" attestation/azure" ]
5959
60+ # Adds support for mock attestations for testing. Do not enable in production.
61+ mock = [" attestation/mock" ]
62+
6063[package .metadata .deb ]
6164maintainer = " Flashbots Team <devops+ci@flashbots.net>"
6265depends = " $auto"
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ async fn main() -> anyhow::Result<()> {
9797 let attestation_verifier = AttestationVerifier {
9898 measurement_policy,
9999 pccs_url : None ,
100- log_dcap_quote : cli. log_dcap_quote ,
100+ dump_dcap_quotes : cli. log_dcap_quote ,
101101 override_azure_outdated_tcb : false ,
102102 } ;
103103
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl AttestedTlsServer {
193193 let remote_attestation_type = remote_attestation_message. attestation_type ;
194194
195195 // If we expect an attestaion from the client, verify it and get measurements
196- let measurements = if self . attestation_verifier . has_remote_attestion ( ) {
196+ let measurements = if self . attestation_verifier . has_remote_attestation ( ) {
197197 let remote_input_data = compute_report_input ( remote_cert_chain. as_deref ( ) , exporter) ?;
198198
199199 self . attestation_verifier
@@ -745,7 +745,7 @@ mod tests {
745745 let attestation_verifier = AttestationVerifier {
746746 measurement_policy,
747747 pccs_url : None ,
748- log_dcap_quote : false ,
748+ dump_dcap_quotes : false ,
749749 override_azure_outdated_tcb : false ,
750750 } ;
751751
Original file line number Diff line number Diff line change @@ -1710,7 +1710,7 @@ mod tests {
17101710 . await
17111711 . unwrap ( ) ;
17121712
1713- let echoed: serde_json:: Value = res. json ( ) . await . unwrap ( ) ;
1713+ let echoed: serde_json:: Value = serde_json :: from_slice ( & res. bytes ( ) . await . unwrap ( ) ) . unwrap ( ) ;
17141714 assert ! ( echoed[ "measurement" ] . is_null( ) ) ;
17151715 assert ! ( echoed[ "attestation_type" ] . is_null( ) ) ;
17161716 }
You can’t perform that action at this time.
0 commit comments