Use peer grants as the complete service policy - #185
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.
Summary
allowarray as the complete shell and exec policy.Migration safety
A false or missing legacy key removes its matching grant from each peer.
A true legacy key preserves only grants that the peer array already contains.
The migration reports every removed grant and its reason.
Format 2 readers ignore the generated mirrors as policy.
The mirrors equal whether any peer array contains the matching grant.
This preserves the same effective policy if the automatic updater restores 0.2.5.
The code comment permits mirror removal only when the actual rollback binary understands format 2.
Silber and Hetz already use format 2 with matching mirrors.
Both hosts passed doctor, two-way real exec, and a 0.2.5 no-op write proof.
Verification
cargo check --all-targetscargo test --lib: 533 passed, 5 ignoredcargo test --lib config::tests::: 61 passedcargo test --test local_slice: 31 passedcargo test --test shell: 14 passedcargo test --test provisioning: 12 passedNo release or deployment is part of this pull request.