Repository navigation
Retire failed hosts across the cluster - #498
Merged
Merged
Conversation
|
Reviewed this PR for bugs, correctness, and security issues (membership protocol, cluster.rs retirement gating, storage persistence, CSRF/auth on the new retirement routes, and the admin UI). No bugs found. Notes from the review:
Given the size and architectural significance (new cluster-wide membership ledger, consensus/replication gating, and new admin endpoints), this is a good candidate for a deeper second-pass review. |
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.
Permanently retiring a failed host on one surviving node now excludes that identity across the connected cluster. An append-only SQLite/Turso membership journal merges retirement records and durable receipts over authenticated peer exchange; reconnecting nodes catch up before distribution, and returned retired identities enter quarantine while retaining local data and admin recovery access.
The server-admin host list adds impact warnings, full-ID confirmation, retry-safe requests, and propagation history. The existing DELETE endpoint uses the same durable service. Offline unknown-version peers warn instead of deadlocking recovery; online unsupported peers block creation. Replication policy deficits and repair remain separate from propagation. Local client enrollment stays available while membership catch-up pauses cluster transfers. Health remains independent of admission: live pending peers cannot be retired, and the UI labels them as awaiting membership.
Startup admission requires an exchange with a known peer even when the local ledger is empty: a restored backup may predate the first retirement. Local client access, enrollment, priority and endpoint configuration, storage capacity updates, and rendezvous presence metadata remain available during this wait without admitting the node. Unknown decision schemas fail closed; capability-version claims remain replayable independently of the negotiated protocol.
Validation:
RUST_MIN_STACK=16777216); one macOS path-overlap test excluded after reproducing its failure on unchanged main.Implements and supersedes the design-only proposal in #497.
GitHub CI on
ab818292: all three protected gates passed (Required CI,Required system tests,Required coverage), including Linux/Windows system suites and iOS. All review threads are resolved. The optional Claude review job failed because its service hit the five-hour quota; it is not a required merge check.