Closed
Labels
kind:taskA task the plan skill rendered; the body carries ## TaskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs careThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling500 to 900 net lines; one PR, and the ceiling
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| Linux hosts hold the proxy's keys | L | unknown ground | strongest | an agent | 820 (420 code, 400 tests) |
Against
swtpm, the proxy's three keys are generated in the TPM, sign and agree there, carryfixedTPMandfixedParentin the public area the TPM reports for them, so the TPM never duplicates them, and load again with only their key and authorization files.
Covers:
- BEP-088
Layers:
- store:
- crates/bep/src/tpm.rs (new): a key store that generates each proxy key under the TPM's storage key as a P-256 key with
fixedTPM,fixedParentandnoDA, with an authorization value of at least 128 bits from the OS CSPRNG that the proxy writes to a file only its user can read, keeps the key file and the authorization file in~/.minimal/bep/tpm/, loads both at start, and implementsHeldKey(agreethrough the TPM's ECDH) andCaKey(signthrough the TPM's ECDSA), through the interface T127's record names - crates/bep/src/lib.rs: declares the
tpmmodule for Linux targets - crates/bep/Cargo.toml: the TPM dependency T127's record names, under the Linux target
- Cargo.lock: the TPM dependency
cargo nextest run -p bep tpm_key_template_is_fixed_exempt_from_lockout_and_needs_authorization
- crates/bep/src/tpm.rs (new): a key store that generates each proxy key under the TPM's storage key as a P-256 key with
- proof:
- crates/bep/tests/key_store_tpm_integration.rs (new): runs against the TPM that
BEP_TPM_TCTInames, and returns early without it, as the_root_integrationproofs do cargo nextest run -p bep --run-ignored ignored-only a_tpm_key_is_fixed_exempt_from_lockout_and_needs_its_authorization(deferred: tpm)
- crates/bep/tests/key_store_tpm_integration.rs (new): runs against the TPM that
Waits on:
Plan block
### T128 — Hold the proxy's keys in the TPM
slice: S18
kind: task
covers: BEP-088
size: L
est: 420 code, 400 tests
executor: agent
difficulty: unknown ground
model: strongest
diagnostics: a TPM key the store cannot create or use returns a key-store error naming the role and the TPM's response code, which the start refusals of T130 print to the person who started `bep`
observability: `bep` logs one line for each key it generates or loads from the TPM, with the role, the key's fingerprint and `store=tpm`, through the existing `tracing` subscriber
layers:
- store:
- crates/bep/src/tpm.rs (new): a key store that generates each proxy key under the TPM's storage key as a P-256 key with `fixedTPM`, `fixedParent` and `noDA`, with an authorization value of at least 128 bits from the OS CSPRNG that the proxy writes to a file only its user can read, keeps the key file and the authorization file in `~/.minimal/bep/tpm/`, loads both at start, and implements `HeldKey` (`agree` through the TPM's ECDH) and `CaKey` (`sign` through the TPM's ECDSA), through the interface T127's record names
- crates/bep/src/lib.rs: declares the `tpm` module for Linux targets
- crates/bep/Cargo.toml: the TPM dependency T127's record names, under the Linux target
- Cargo.lock: the TPM dependency
test: cargo nextest run -p bep tpm_key_template_is_fixed_exempt_from_lockout_and_needs_authorization
- proof:
- crates/bep/tests/key_store_tpm_integration.rs (new): runs against the TPM that `BEP_TPM_TCTI` names, and returns early without it, as the `_root_integration` proofs do
test (deferred: tpm): cargo nextest run -p bep --run-ignored ignored-only a_tpm_key_is_fixed_exempt_from_lockout_and_needs_its_authorization
produces:
- crates/bep/src/tpm.rs
consumes:
- docs/spikes/2026-11-13-bep-tpm-interface.md
proof: Against `swtpm`, the proxy's three keys are generated in the TPM, sign and agree there, carry `fixedTPM` and `fixedParent` in the public area the TPM reports for them, so the TPM never duplicates them, and load again with only their key and authorization files.
depends on:
- blocked by #3323
Reacted by minimal-foundry
Metadata
Metadata
Assignees
Labels
kind:taskA task the plan skill rendered; the body carries ## TaskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs careThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling500 to 900 net lines; one PR, and the ceiling
Activity
minimal-foundry commentedon Nov 12, 2026
Done. #3343 merged.
branch
agent/3324-hold-the-proxy-s-keys-in-the-tpm· epic #1501 · PR #3343c36ad19af4a9f48760384b95403d25d1ca275133f5d23e2896b48229a6ece3668da6c4654a49ee72Updated 2026-11-13T22:01:52.633Z.