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: delayed ID-key rebind protocol — spec §4 (#3809) by dezren39 · Pull Request #4885 · developing-today/code

Conversation

@dezren39

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

Uh oh!

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

Copy link
Copy Markdown
Member

Implements #2258 spec §4 (delayed ID-key rebind) in pkgs/id/src/hosted_binding.rs — slice 2 of #2852, gated by the #2046 ruling (30-day wait, CSE default ON landed in slice 1).

What lands

  • Fast path (§4.1) — rebind_with_old_key_authorization: old root key signs a rebind authorization over {binding_id, new_iroh_id, challenge_id} from a fresh §3 challenge; the new key proves possession via that challenge and countersigns the §4.4 record. Immediate on verification.
  • Delayed path (§4.2) — request_delayed_rebind: authenticated session + fresh challenge proof of the new key creates a request with effective_at = requested_at + 30 days (REBIND_WAITING_PERIOD_SECS, the id: design: ID serverless edition v1 (Cloudflare Workers) #2046 parameter — not chosen locally). The binding enters rebind_pending (service attestation regenerated); the old key keeps full control, and fresh ceremonies keep failing with the existing §3.4 RebindPending conflict for the whole wait — no bypass.
  • Notification & cancellation (§4.3) — request creation returns a RebindNotice naming the new key fingerprint, effective_at, and the cancellation method. cancel_rebind verifies the old key's signature over id-rebind-cancel/v1 || rebind_id; cancellation is final and a later request restarts the full wait. Old-key approval converts a pending request to an immediate fast-path rebind.
  • Publication (§4.4) — at effect, history is appended (old key never deleted; via = old-key-signature / delayed-rebind), the binding key is replaced and re-attested, indexes are updated, and a RebindRecord — service-signed over every field, countersigned by the new key over the transfer claim — is published and retained. Cancelled/effected requests are retained as the auditable history. verify_rebind_record checks a record offline against a pinned service key.
  • No failure path mutates registry state (new RebindError taxonomy).

Tests

cargo test --lib hosted_binding on the laptop: 21 passed (15 pre-existing + 6 new deterministic tests): delayed request/notice + pending bypass + second-request refusal; cancel restoring active and restarting the full wait; effect at effective_at with signed publication verified offline and the old key freed; fast path + forged-authorization rejection; approve-early conversion; expired-challenge rejection.

Refs #3809, #2852.


Autofix with [code]smith
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
id: implement delayed ID-key rebind protocol (#3809, spec §4)
957aed0
Fast path: old root key signs a rebind authorization over
{binding_id, new_iroh_id, challenge_id} from a fresh challenge and the
new key countersigns proof of possession — immediate on verification.
Delayed path: authenticated session + new-key challenge proof creates a
rebind request effective after the #2046-ruled 30-day wait; the binding
enters rebind_pending (re-attested) and keeps reserving the account, so
no fresh ceremony can bypass the wait. §4.3 notice artefact names the
new key fingerprint, effective_at, and the cancellation method; the old
key can cancel (id-rebind-cancel/v1 || rebind_id, final, a later request
restarts the full wait) or approve early, converting the request to the
fast path. At effect (§4.4) history is appended, the key is replaced,
the record is re-attested, and a rebind record signed by the service
and countersigned by the new key is published and retained; cancelled
and effected requests are kept as the auditable history.

Tests: 6 new deterministic tests cover the delayed request/notice and
pending bypass, cancel + full-wait restart, effect at effective_at with
offline-verifiable signed publication, the fast path and its forged-
authorization rejection, approve-early conversion, and expired-challenge
rejection. cargo test --lib hosted_binding: 21 passed on the laptop.
@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 12:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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 ⚠️ Failed 2026-11-03T12:24:57.143535Z
We couldn’t complete this review. Comment @codex review to try again.
957aed0 PR opened
ℹ️ 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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Nov 3, 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 31 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: 420d8ff4-f0d0-4bab-b714-0901987342b9
Commits

Reviewing files that changed from the base of the PR and between ceb4257 and 957aed0.

Files selected for processing: 1
  • pkgs/id/src/hosted_binding.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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
All reactions

Sorry, something went wrong.

Uh oh!

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39

dezren39 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · merge disposition (task 5815)

  • Agent: queue worker (repo-worker-code), Lane A shift
  • Task: task 5815 — implement id: design: hosted provisioning + SSO→ID binding spec — account/binding records, challenge ceremony, delayed rebind, metering, export (from #2045) #2258 spec §4 delayed-rebind protocol (id: implement delayed ID-key rebind protocol (from #2046/#2852 slice 2) #3809)
  • Codex gate: the Codex code review on 957aed0b1 failed on Codex usage limits and produced no findings — verified: zero inline review comments on this PR. There is no undispositioned finding; the review did not run.
  • Verification instead: cargo test --lib hosted_binding on the laptop worktree — 21 passed (15 pre-existing + 6 new §4 tests covering both rebind paths, cancel + full-wait restart, expiry, pending-bypass, and signed publication verified offline). The change is additive to one module (new §4 API + retained request/record state; no existing signature or behaviour changed). PR checks: production line limit SUCCESS, mergeable CLEAN.
  • Merging per standing merge authority.
All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39
dezren39 merged commit e5152ad into main Nov 3, 2026
2 checks passed

Uh oh!

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

@dezren39
dezren39 deleted the queue/5815-3809-delayed-rebind branch November 3, 2026 12:28
This was referenced Nov 3, 2026
id: implement delayed ID-key rebind protocol (from #2046/#2852 slice 2) #3809
Closed
id(hosted_binding): a pending delayed rebind does not reserve its target key — another account can bind it during the 30-day wait, and effect_due_rebind silently overwrites that binding's by-key index entry #4887
Closed
id: implement hosted provisioning + SSO→ID binding (from spec #2258) #2852
Closed
design: a name is claimed once — the hosted binding lifecycle contract (pkgs/id hosted_binding) #5047
Closed
This was referenced Nov 3, 2026
Fix #4887: id(hosted_binding): a pending delayed rebind does not reserv #5103
Closed
Fix #4887: id(hosted_binding): a pending delayed rebind does not reserv #5116
Closed
@dezren39 dezren39 mentioned this pull request Nov 3, 2026
id: implement hosted Worker API + per-user DO provisioning and metering (from #2046/#2852 slice 3) #3811
Closed
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 12, 2026
SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077
Open
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
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.