Implement common comms channel abstraction for pluggable transports

Open
#66 0 comments 0 reactions 1 assignee View on GitHub

@dymk is already working on this.

Since Apr 16, 2026.

Assessment

This issue has not been assessed yet.

Description

Task

Refactor services to use a common communications channel abstraction instead of reading/writing arbitrary byte arrays directly. This prepares the codebase for pluggable comms backends (eSPI, UART, etc.) as the underlying transport between the EC secure partition and the embedded controller.

Motivation

Currently each service manually packs/unpacks raw byte arrays for request and response data. This tightly couples service logic to the wire format and makes it difficult to swap the underlying transport. A common comms channel trait/abstraction would:

  • Decouple service logic from transport details
  • Enable pluggable backends (eSPI OOB, UART, shared memory, etc.)
  • Provide a consistent interface for framing, serialization, and error handling
  • Make it easier to test services with mock transports

Scope

  • Define a comms channel trait (send/receive with typed messages or structured buffers)
  • Refactor existing services to use the new abstraction instead of raw byte slices
  • Ensure unit tests still pass with an in-memory/mock backend
  • Document the abstraction and how to implement new backends

Related

  • #55 (eSPI OOB support — would be one backend implementation)
  • Part of #60

Parent

Part of #60

Dominant language
Rust
Stars
4
Forks
11
Avg merge
35m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenDevicePartnership/odp-secure-services

All issues in OpenDevicePartnership/odp-secure-services

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.