enroll: community-ca — replace the StubGranter before its first consumer #210
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
Device-add spec #13 (the identity grant, ADR 0055). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben.
What's true today
What to build
A ruling first, then the granter: what the community CA is — a per-community root minted at founding? a key sealed in clan vars? kanidm-adjacent? — and where its key lives and how it survives rescue (the crown-jewel question touches ADR 0104's key posture). Then the real granter implements it and the stub demotes to tests, with the default becoming fail-loud-if-unset.
Acceptance criteria
Task manifest
Blocks
None directly — flagged before its first consumer arrives.
Ruling taken (Ben, 2026-07-30): the community CA is a per-community root, minted at founding. Recorded as ADR 0111 (
docs/adr/0111-community-ca-per-community-root-minted-at-founding.md, commitfcb3ccc).needs_human_decisionresolved — re-labelledready-for-agent.Done — commit
5d69c55onorigin/main(following the ADR 0111 ruling recorded in this thread).What shipped:
internal/enroll/community_ca.go:MintCommunityCAself-signs an ed25519 per-community root (ADR 0111);CommunityCA.Grantsigns a genuine x509NodeCertcertifying the device's own key (threaded asGrantSpec.DevicePub, bound at Redeem), verifiable against the community root viaVerifyNodeCert.ClanTrust.CAPubKeyis the real root pubkey and the SSH host credential is a real root signature — no random-bytes-as-credential remains; mesh admission stays fresh random secrets.enroll.Config.Granterhas no default;Approvereturns the newErrNoCAand leaves the request Pending when no CA is configured. The stub never ships an answer.internal/enroll/enrolltestingsub-package (test-only). The enroll package's own internal tests use the real CA (avoiding an internal-test import cycle); external test packages andsmoke-storeswire an explicit granter.TestGrant_FullCommunityCAverifies the minted NodeCert against the community root;TestGrant_NoCAFailsLoudproves approval fails loud withErrNoCAand leaks no grant. Rescue posture (AC3) is the ADR 0111 ruling citing ADR 0104.Deliberately deferred (follow-up, not filed): the production helper's founding ledger stays granter-less on purpose — founding's S9 approval fails loud (like its other not-yet-wired ports) until the founding-mint step (the ADR 0111 crown-jewel key posture, ADR 0104) is wired. That mint-at-founding wiring is its own slice.
Caveat: Go slice shipped verified by careful review only — the Sandcastle sandbox still has no Go toolchain (#198), so this was not compiled/tested locally.