GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: revoke dual-role admin authority with device key by dezren39 · Pull Request #14662 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
dezren39 added 3 commits November 24, 2026 17:22
@dezren39
test(id): expose revoked dual-role key authorization
4059027
@dezren39
fix(id): revoke admin authority of dual-role device keys
12ac620
@dezren39
Merge remote-tracking branch 'origin/main' into code-f/13955-keyset-p…
58cb85f
…airing-20261124
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 24, 2026
id keyset log (#2380) implementation: enrolment/revocation, device-key consumption, migration #13955
Closed
id: finish QR revoke and pairing payload validation #14688
Merged
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 25, 2026
id: keyset/authorization log — device keys, revocation, bindings as signed records (identity substrate) #2380
Closed
4 tasks
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
fleet: ready PRs are left unmerged (20 open; the merge sweep has filed nothing since 2026-11-17) #12280
Open
@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot merged commit 14906d9 into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the code-f/13955-keyset-pairing-20261124 branch November 26, 2026 15:37
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
id: enrol a second device key via QR pairing (#2380 packet 2) #14581
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.