Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The offline ConfigFS/vSOCK generation claim requires confirmation on target TDX platforms because pinned external implementations are unavailable in this snapshot and mock socket tests do not validate the hardware paths.
No open issues 🎉
What changed in this PR
Moves TDX quote generation and platform metadata collection into attestation-provider-server, separating privileged hardware access from applications that request evidence over Unix sockets.
Changes:
- Introduces
AttestationGeneratorClientand updates TLS certificate issuance and renewal to use an optional provider client. - Requires an explicit provider platform type and replaces hardware auto-detection with the metadata-only
detect_gcp()helper. - Migrates dependencies, updates documentation, and adapts tests to use a mock socket provider.
| File | Description |
|---|---|
readme.md |
Describes attestation requests rather than local generation. |
crates/attested-tls/tests/nested_tls.rs |
Uses a mock provider for nested TLS handshakes. |
crates/attested-tls/tests/common/mod.rs |
Adds a shared mock socket provider fixture. |
crates/attested-tls/src/lib.rs |
Uses optional provider clients and tests both renewal modes. |
crates/attested-tls/readme.md |
Documents provider-backed and unattested certificate modes. |
crates/attested-tls/Cargo.toml |
Removes the quote feature and adds provider test dependencies. |
crates/attestation/src/provider.rs |
Adds the client API and rejects responses without evidence. |
crates/attestation/src/lib.rs |
Removes local generation and exposes detect_gcp(). |
crates/attestation/src/gcp/provenance.rs |
Updates tests to generate mock quotes directly. |
crates/attestation/src/dcap.rs |
Removes quote generation while retaining verification. |
crates/attestation/README.md |
Documents socket requests and revised platform detection. |
crates/attestation/Cargo.toml |
Removes the direct TDX generation dependency. |
crates/attestation-provider-server/src/main.rs |
Requires and tests explicit supported platform types. |
crates/attestation-provider-server/src/lib.rs |
Integrates the relocated generator and updates transport tests. |
crates/attestation-provider-server/src/generator.rs |
Implements local quote generation and metadata collection. |
crates/attestation-provider-server/README.md |
Documents platform selection and networking requirements. |
crates/attestation-provider-server/Cargo.toml |
Adds generation dependencies and mock support. |
Cargo.lock |
Records the dependency migration and test additions. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This switches things so that using a separate attestation provider process is no longer optional. This simplifies things a bit since this is now our chosen way to do things, since it has a security advantage relating to linux permissions.
attestation-provider-servercrate now contains the code for generating TDX quotes and collects platform metadata. Applications request evidence throughAttestationGeneratorClientover the existing Unix socket protocol. The provider can run without network access and retains the local vSOCK fallback.Migration
--server-attestation-type dcap-tdxor--server-attestation-type gcp-tdx. The server requires an explicit type and rejects auto and none.AttestedCertificateResolverto request evidence during certificate issuance and renewal. Pass None to issue and renew unattested certificates without contacting the provider.attestation::detect_gcp()if the application already expects TDX and needs to select a platform type. It checks GCP metadata without probing TDX hardware and defaults to DcapTdx when GCP is unconfirmed.Validation