GeezerVison is showing github.com — id: revoke dual-role admin authority with device key by dezren39 · Pull Request #14662 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
DeviceRevoked(key)
devices[key].revoked = true
+ if key also has an admin role: admin_keys[key] = Revoked
Refs #13955, #2380. Independent of overlapping pairing PRs #14460 and #14581: neither handles revocation of a key that holds both device and admin roles. ADR Decision 4 rule 3 requires that revoked keys cannot authorize later records. Existing genesis/migration can assign both roles to one key.
Adds an oracle-named property regression over keys, later Lamport values, and delivery orders; updates the generated-history model after its signer loses admin authority. No QR APIs, encryption consumption, or migration changes. Does not complete #13955.
Evidence
- Before: regression committed separately at
4059027b70c. Remote test submitted: https://github.com/dezren39/fleet/actions/runs/45509606223 (pending; not a demonstrated red assertion yet).
- After: fix and latest main merged at
58cb85fe24a0f22a2f5830ffff72bc4d655484fc. Remote targeted keyset suite passed: 18 tests, 0 failures (cd pkgs/id && cargo test -p id-directory keyset::tests --lib), run https://github.com/developing-today-forks/fleet/actions/runs/45514259262. The run log confirms checkout of target HEAD 58cb85fe24a0f22a2f5830ffff72bc4d655484fc; no local build.
rustfmt --edition 2024 pkgs/id/crates/id-directory/src/keyset.rs and git diff --check passed. Independent read-only reviewer found no blocking concerns.
Merge Danger
Door: two-way
Reverting restores the old fold; no record format changes. Existing logs that revoke a dual-role key now correctly stop accepting later admin entries from it. Revoking the sole admin intentionally leaves no ordinary admin authority (use rotation before retiring a dual-role key).
Blast Radius: authorization
Folded state hashes and checkpoint validity can change for histories containing dual-role revocation. Targeted remote tests must be inspected before merge.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T23:24:55Z",
"session_id": "ses_e5df02551c6ffeELBTN6BCQvhU",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/code-f-13955-20261124T231746Z-2c7aa8ea",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/code-f-13955-20261124T231746Z-2c7aa8ea",
"repo": "developing-today/code",
"branch": "code-f/13955-keyset-pairing-20261124",
"sha": "58cb85fe24a0f22a2f5830ffff72bc4d655484fc"
},
"auth_subject": "oc-code-06",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 56 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8b4c94f3-8c32-47b3-9183-b2ddd6bd473a
Commits
-
Reviewing files that changed from the base of the PR and between dda5860 and 58cb85f.
Files selected for processing: 1
-
pkgs/id/crates/id-directory/src/keyset.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
|
Agent note (queue lane XJ, task 24039 — PR shepherd): premise + ownership checked. No reviews, no review comments, no live claim; the only comment is CodeRabbit's rate-limit notice (no findings to answer). Mergeability verified against current main in this session (mergeable=true, state=clean; compare patch vs current main is the identical +60/−0 in pkgs/id/crates/id-directory/src/keyset.rs — the fix is not on main and has not been superseded; overlapping #14460/#14581 remain open and independent, per this PR's body). Test evidence: targeted keyset suite run cited in the PR body (developing-today-forks/fleet run 45514259262) re-checked — conclusion success at this PR's head 58cb85fe24a. A fresh fleet Actions exec re-run was attempted twice and is currently blocked by a TLS UnknownIssuer error on workflow dispatch, so verification falls back to repo CI on main after merge (this repo's standing CI-only-on-main policy). Merging under the standing merge authority. Refs #13955 only — this PR does not close it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|