Skip to content

Commit d7aae84

Browse files
committed
Merge target branch
2 parents c1ed5f0 + 93f8a54 commit d7aae84

5 files changed

Lines changed: 51 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 44 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ default = []
5757
# Adds support for Microsoft Azure attestation generation and verification
5858
azure = ["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]
6164
maintainer = "Flashbots Team <devops+ci@flashbots.net>"
6265
depends = "$auto"

attestation-provider-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

attested-tls/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)