Repository navigation
feat(account): recover revoked named enrollments with retained authority - #1101
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Recover one positively revoked named enrollment without rotating the native identity, deleting original credentials/receipts or retargeting saved contexts.
account connections recovery plan/apply/listbinds the prior authorized account receipt, positive revocation receipt and exact replacement connection/key operation.Reviewed apply admits schema 56, parent recovery and child key creation in one registry transaction before key I/O. The child cannot bypass parent admission. Per-enrollment writer fences drain older users; admitted key creation resumes after expiry and a missing ready key is never silently recreated. Production retains its database filename/owner marker, and frozen schema-55 plan serialization, digests and results remain unchanged.
Every replacement authorization fixes the original account and revoked public key. Only a validated same-account receipt completes recovery; replay finishes a crash after credential persistence without repeating a single-use exchange. New requests through the retired enrollment refuse while historical receipts remain replayable. Lock ordering avoids nested registry acquisition and stages attestation signatures before registry ownership.
Desktop's reviewed public-plan bridge accepts this apply path. Recovery arguments, replies and error prose are omitted from diagnostics, including normalized whitespace paths. Dedicated guided recovery UX remains a later increment.
Windows account sessions use bounded compressed binary Credential Manager records, retaining reads of existing UTF-16 password entries and unchanged device-key encoding. The native blob limit is 2,560 bytes; decoded records are capped at 64 KiB. Corruption, trailing bytes, expansion and oversized incompressible records refuse; no token file fallback exists. A stronger journal fence protects old readers.
Qualification on exact head
0014e49824a4c6101e945c14246a1550503f8a76:sha256:1191a867b775997312e0978bec632cba0e9e1b0846c99e5fae1088991194afdc, 51 snapshot tables, SQLite 3.53.2.This is a bounded #1071 checkpoint under #1070. It requires positive retained
device_revokedevidence and refuses unfinished publication/sync belonging to that enrollment. Missing-key preparation is isolated in draft #1103; exact named-delivery interruption/reconciliation, qualified project/harness contexts and the remaining program acceptance stay open. Do not close #1071 or publish a public client release from this increment. No production registry migration is executed by merging source. Rollback preserves data and requires a schema-56-compatible client for already admitted recovery.