Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 36 additions & 77 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"crates/nested-tls",
"crates/attestation",
"crates/pccs",
"crates/mock-tdx",
]

[workspace.lints.rust]
Expand All @@ -19,6 +20,7 @@ unused_async = "warn"

[workspace.dependencies]
attestation = { path = "crates/attestation" }
mock-tdx = { path = "crates/mock-tdx" }
rustls = { version = "0.23.37", default-features = false, features = ["brotli"] }
tokio = { version = "1.50.0", features = ["default"] }
tokio-rustls = { version = "0.26.4", default-features = false }
Expand Down
10 changes: 4 additions & 6 deletions crates/attestation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ keywords = ["attestation", "CVM", "TDX"]
[dependencies]
dcap-qvl = { workspace = true, features = ["danger-allow-tcb-override"] }
pccs = { workspace = true }
mock-tdx = { workspace = true, optional = true }
Comment thread
0x416e746f6e marked this conversation as resolved.
tokio = { workspace = true, features = ["fs"] }
tokio-rustls = { workspace = true, default-features = false }

Expand Down Expand Up @@ -38,15 +39,12 @@ az-tdx-vtpm = { version = "0.7.4", optional = true }
tss-esapi = { version = "7.6.0", optional = true }
openssl = { version = "0.10.78", optional = true }

# Used by test helpers
tdx-quote = { version = "0.0.5", features = ["mock"], optional = true }

[dev-dependencies]
mock-tdx = { workspace = true }
tempfile = "3.23.0"
tokio-rustls = { workspace = true, default-features = true }

serde-saphyr = "0.0.22"
tdx-quote = { version = "0.0.5", features = ["mock"] }
tempfile = "3.23.0"

[features]
default = []
Expand All @@ -55,7 +53,7 @@ default = []
azure = ["tss-esapi", "az-tdx-vtpm", "openssl"]

# Allows mock quotes used in tests and exposes related functions for testing
mock = ["tdx-quote"]
mock = ["dep:mock-tdx"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/attestation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ must be explicitly enabled via the `override_azure_outdated_tcb` flag on

### `mock`

Enables mock quote support via `tdx-quote` for tests and development on non-TDX
Enables mock quote support via the local `mock-tdx` crate for tests and development on non-TDX
hardware. Do not use in production. Disabled by default.
Comment thread
ameba23 marked this conversation as resolved.
Outdated

## Attestation Types
Expand Down
Loading
Loading