Skip to content

remote layer: revocations live in the signed state, certificate names in their delegation's namespace (Decision Logs 24, 25) - #199

Merged
SSFSKIM merged 4 commits into
masterfrom
remote-layer-revocations-in-state
Oct 27, 2026
Merged

SSFSKIM merged 4 commits into
masterfrom
remote-layer-revocations-in-state

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

desk-sminos-orchestrator's P1 from O11 M1's review: an admin-signed certificate revocation or retirement is checked against the current state's admins, so once the signing admin is demoted, removed or rotated it reads as from an unknown signer, and the revoked certificate gets its authority back.

  • Every admin retirement and revocation is a state change. RL5 gains an append-only revoked: {keyId, holder}[] for every key class, generalizing the proposed revokedCerts. A key leaving the state enters retired or revoked in that step, and a key leaves retired only into revoked. Decision Log 23's check becomes a check on a state and its predecessor.

  • The delegation key's retirement of its own certificates stays a record (devcloud vm delete stays unattended). A delegation's id, pub and prefix never change, expires moves only while both values lie ahead, and an expired delegation stays in the state, so the record's signer can't lapse.

  • Across a root transition, the first state under the new root is authoritative for revoked.

  • The same signer-lifecycle gap in grants (§6.3) and ownersProof (RL9) is closed.

  • Decision Log 25 (desk-sminos-orchestrator, from a forgery O11 M1 found): certificate names live in their delegation's namespace. No machineNames name lies under a delegation prefix, prefixes never match or nest, and a ref claimed under two delegations is refused, live or retired. Inside one delegation the key's reach is its trust domain.

  • From the adversarial review (doperpowers:adversarial-reviewer, two rounds, approved at 3f8a9c2): a grant names the machine key it was signed for, so a daemon that lost its state (and with it its key and grant ledger, while its ref survives in machine.json) refuses every grant from before; and a key in retired never becomes current again (the K1 → K2 → K1 case). A certificate's ref starts with its delegation's id, and names compare by their lower-cased key.

Sminos-Session: remote-architecture#3502a215 (macbook on macbook)

An admin-signed certificate revocation, verified against the current
admins, lost its signer once that admin was demoted or rotated, and the
revoked certificate got its authority back (O11 M1's review). Every admin
retirement and revocation is now a state change: RL5 gains an append-only
`revoked` for every key class, which also makes Decision Log 23's check
stateless. The delegation key's own retirement record stays, with the
delegation made immutable so its signer can't lapse. Grants and
ownersProof get the same treatment of signer lifecycle.

Sminos-Session: remote-architecture#3502a215 (macbook on macbook)
…(Decision Log 25)

A delegation's key could mint a certificate under an enrolled machine's
name, retire it at once with a future notAfter, and sign events as that
machine, because the name conflict rules see live claims only (O11 M1).
RL5 now keeps machineNames out of every delegation's prefix and keeps
prefixes from matching or nesting, so a certificate's name never meets
another namespace. Refs claimed under two delegations are refused, live
or retired. Inside one delegation the key's reach is its trust domain.

Sminos-Session: remote-architecture#3502a215 (macbook on macbook)
@SSFSKIM SSFSKIM changed the title remote layer: revocations live in the signed state (Decision Log 24) remote layer: revocations live in the signed state, certificate names in their delegation's namespace (Decision Logs 24, 25) Oct 27, 2026
…mes compare without case

Refusing refs that two delegations' certificates claim held only while
the hub served both (desk-sminos-orchestrator). A delegated machine's ref
now starts with its delegation's id and `_`, so the rule needs the
certificate alone. Names and prefixes compare by their lower-cased key,
as the hub's machineNameKey does, since names become file names on disks
that ignore case.

Sminos-Session: remote-architecture#3502a215 (macbook on macbook)
…mes current again

The adversarial review on #199 found two lifecycle gaps. The ref lives in
the profile's machine.json, outside mawsd's state (P5 O6), so a daemon
that lost its grant ledger kept its ref and could accept a replayed,
superseded grant. A grant now names the machine key it was signed for,
and a daemon that loses its state re-enrolls with a new key and refuses
every grant from before. And `retired` was not disjoint from current
keys, so a K1 -> K2 -> K1 rotation restored K1 past its notAfter.

Sminos-Session: remote-architecture#3502a215 (macbook on macbook)
@SSFSKIM
SSFSKIM marked this pull request as ready for review October 27, 2026 02:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T02:29:02.479998Z 3f8a9c2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit d0728d6 into master Oct 27, 2026
SSFSKIM added a commit that referenced this pull request Oct 27, 2026
…cceptance and five duties, O2's backup exclusion, a VM's ref under its delegation id; O10's answers to O2's seam)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 27, 2026
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant