feat(trust): generate a roster leaf in the dev trust set #22
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/trust-roster-leaf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat(trust): generate a
rosterleaf in the dev trust setWhat this is
Part of the fleet app-tier TLS change (design and plan in the
starfleetdocs repo:
2026-10-17-app-tier-tls-design.md/…-plan.md).rosterjoinscrewas a TLS-required service, so it needs its own leaf from the fleet CA —identical in shape to the existing
computerandcrewleaves.This is the trust-material prerequisite; the
rostertransport change is asibling branch.
Change
tools/starfleet_trust.py:DEV_FILESgainsroster.pem/roster.key,PRIVATE_KEY_FILESgainsroster.key, andLEAVESgains("roster", "starfleet-roster").generate()already iteratesLEAVES, soemitting the files needs nothing further.
host/tests/test_starfleet_trust.py: the pinnedDEV_FILESassertion wasextended, a new test asserts the roster membership, and the two tests that had
hardcoded leaf and key lists now iterate
st.LEAVESandst.PRIVATE_KEY_FILES— so the roster leaf is covered by the verify-chain andthe 0600-permission assertions, and the next leaf addition needs no test edit.
Verification
81 passed for the trust suites; the change touches only
tools/starfleet_trust.pyand its test. A fullhost/tests/run needswebsocketsandnumpy, which the sandbox python lacks — run the full suitewhere those are installed (CI). A manual check confirmed
roster.pemis signedby the CA, carries
CN=starfleet-roster, and its key is mode 0600.Note for the operator
Adding entries to
DEV_FILESmakes any existing shared.dev-trust/incomplete — a partial set is deliberately never "dev" — so the next
ensure()regenerates it with a new CA, which means a flashed dev devicemust be reflashed. The design's "a new leaf does not re-key the CA" is not true
in practice; this is recorded in the app-tier TLS runbook.
Deferred
to update there (verified by grep).
The verify-chain test iterated ("server.pem", "crew.pem") and the 0600 mode test iterated ("ca.key", "server.key", "crew.key", "signing.key"), so the new roster leaf was silently uncovered by both. Iterate st.LEAVES and st.PRIVATE_KEY_FILES so the checks are self-maintaining.