Skip to content

Commit ab58f63

Browse files
Merge #376
376: [PLAT-66] Attestation verification code for Nitro r=raoulstrackx a=raoulstrackx Co-authored-by: Raoul Strackx <[email protected]>
2 parents ea880d0 + a4a2a2e commit ab58f63

File tree

13 files changed

+1486
-13
lines changed

13 files changed

+1486
-13
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ matrix:
2020
- sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
2121
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
2222
packages:
23+
- faketime
2324
- protobuf-compiler
2425
- libsgx-dcap-ql-dev
2526
- clang-11
@@ -40,6 +41,11 @@ matrix:
4041
- cargo test --verbose --locked -p dcap-ql --features verify
4142
- cargo build --verbose --locked -p aesm-client --target=x86_64-fortanix-unknown-sgx
4243
- cargo build --verbose --locked -p aesm-client --target=x86_64-fortanix-unknown-sgx --features sgx-isa/sgxstd
44+
- cargo test --locked -p nitro-attestation-verify
45+
# Unfortunately running `faketime '2021-09-10 11:00:00 GMT' cargo test -p nitro-attestation-verify` causes a segmentation
46+
# fault while compiling. We only execute `faketime` during the tests
47+
- cargo test --locked -p nitro-attestation-verify --no-run && faketime '2021-09-08 11:00:00 GMT' $(find ./target/debug/deps -name "nitro_attestation_verify*" -executable)
48+
- cargo test --locked -p nitro-attestation-verify --no-run && faketime '2021-09-10 11:00:00 GMT' $(find ./target/debug/deps -name "nitro_attestation_verify*" -executable)
4349
# NOTE: linking glibc version of OpenSSL with musl binary.
4450
# Unlikely to produce a working binary, but at least the build succeeds.
4551
- mkdir -p /tmp/muslinclude && ln -sf /usr/include/x86_64-linux-gnu/openssl /tmp/muslinclude/openssl && PKG_CONFIG_ALLOW_CROSS=1 CFLAGS=-I/tmp/muslinclude cargo build --locked -p fortanix-sgx-tools --target x86_64-unknown-linux-musl

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ members = [
44
"fortanix-vme/eif-tools",
55
"fortanix-vme/fortanix-vme-abi",
66
"fortanix-vme/fortanix-vme-runner",
7+
"fortanix-vme/nitro-attestation-verify",
78
"fortanix-vme/tests/hello_world",
89
"fortanix-vme/tests/outgoing_connection",
910
"fortanix-vme/tests/incoming_connection",
@@ -32,6 +33,7 @@ exclude = ["examples"]
3233

3334
[patch.crates-io]
3435
libc = { git = "https://github.com/fortanix/libc.git", branch = "fortanixvme" }
36+
mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", branch = "master" }
3537
serde = { git = "https://github.com/fortanix/serde.git", branch = "master" }
3638
vsock = { git = "https://github.com/fortanix/vsock-rs.git", branch = "fortanixvme" }
3739
rustc-serialize = { git = "https://github.com/jethrogb/rustc-serialize.git", branch = "portability" }

0 commit comments

Comments
 (0)