Skip to content

[RTE-1352] Add enclave-runner-client crate - #1000

Open
gianlu33 wants to merge 4 commits into
masterfrom
gianlu33/rte-1352-enclave-runner-client
Open

gianlu33 wants to merge 4 commits into
masterfrom
gianlu33/rte-1352-enclave-runner-client

Conversation

@gianlu33

@gianlu33 gianlu33 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Add new enclave-runner-client crate. This crate contains the logic to connect to the runner from a Fortanix VME enclave.

Two main ideas behind this implementation:

  • make the client a standalone crate that is easy to maintain and test
  • hide internal details about the ABI and vsock connections, such that the enclave (i.e., our std fork) won't need to be changed if the ABI changes.

This crate replaces the existing client implementation in fortanix/rust: fortanix/rust#26

Added tests:

  • simple unit tests in src/test.rs for read/write operations and message parsing
  • src/tests/loopback.rs tests the public crate API using a fake runner and communication via vsock_loopback
    • these tests are disabled by default because vsock_loopback needs to be enabled for them to work. In the CI, we run these tests only if vsock_loopback is available

Missing: end-to-end tests using the real fortanix-vme-runner. For this a separate "test" crate should be implemented.

Other fixes:

  • fix some compiler warnings about missing edition in Cargo.toml and unused dependencies
  • fix fortanix-vme-abi dependencies to allow compilation with --no-default-features

Still TODOs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant