8000 T128 — Hold the proxy's keys in the TPM · Issue #3324 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T128 — Hold the proxy's keys in the TPM #3324

Closed

Description

@norrietaylor

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, 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.

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, 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
    • 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
    • cargo nextest run -p bep --run-ignored ignored-only a_tpm_key_is_fixed_exempt_from_lockout_and_needs_its_authorization (deferred: tpm)

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

Activity

  1. added
    kind:taskA task the plan skill rendered; the body carries ## Task
    size:L500 to 900 net lines; one PR, and the ceiling
    model:strongestThe strongest model available: unknown ground, or large work that needs care
    on Nov 12, 2026
  2. minimal-foundry commented on Nov 12, 2026

    @minimal-foundry
    Contributor

    Done. #3343 merged.

    branch agent/3324-hold-the-proxy-s-keys-in-the-tpm · epic #1501 · PR #3343

    round outcome job
    1 pushed c36ad19a
    2 pushed f4a9f487
    3 pushed 60384b95
    4 pushed 403d25d1
    5 pushed ca275133
    6 pushed f5d23e28
    7 refused: the container platform has had no instance for the coder for 32 minutes, longer than the 30 the runtime holds a command for, so nothing ran and nothing was counted; '/revise' again once the platform h
    7 pushed 96b48229
    8 pushed a6ece366
    9 pushed 8da6c465
    10 pushed 4a49ee72

    Updated 2026-11-13T22:01:52.633Z.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:taskA task the plan skill rendered; the body carries ## Taskmodel:strongestThe strongest model available: unknown ground, or large work that needs caresize:L500 to 900 net lines; one PR, and the ceiling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0