Repository navigation
fix(runtime): make confirmed controller policy recovery durable - #189
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou'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 33 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (6)
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. Comment |
RentnerKev
force-pushed
the
fix/controller-recovery-durability
branch
from
October 6, 2026 20:57
fc0940d to
128d388
Compare
This was referenced Oct 6, 2026
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.
Summary
Controller policy activation now persists recovery state before changing traffic and commits it only after Caddy confirms the revision. An unfinished activation selects the closed baseline after restart; failed activation restores the previous verified configuration. A later configuration retry repairs pending recovery state before certificate rotation proceeds.
Related issue
Refs #72. This PR handles one item from the security review; the overall review remains open.
Type of change
Testing
cargo fmt --all --check, locked offline Clippy with warnings denied, andgit diff --checkpassed.Checklist
Breaking changes
None. The existing v7 policy snapshot format is retained. Snapshot preparation and pre-commit errors fail the activation. After the confirmed policy is durably stored and the marker is unlinked, a directory-sync error preserves that confirmed policy and records a warning; a subsequent restart may select the closed baseline if the unsynced marker reappears.
Screenshots
None.