Repository navigation
feat(permissions): show callers only what they may read - #144
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
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 34 minutes. View limit details
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. |
PiquelChips
force-pushed
the
feat/permissions-reads
branch
from
November 22, 2026 15:04
4b2d2c7 to
3b66577
Compare
PiquelChips
force-pushed
the
feat/permissions-reads
branch
2 times, most recently
from
November 22, 2026 18:54
70f1c42 to
145c99f
Compare
Every caller read everything a server held. Callers now see only what their rights let them read, as `permissions::Reader` decides. A caller who reads no path doesn't see the repository at all: it isn't listed, and every call answers as if it didn't exist. Otherwise they see its targets and acceptances, every revision that changes a path they read, or changes nothing, and the statements about what they see. Fetching records leaves out the others, and so do inventories, the revisions of a change and its heads, statements, pending landings and events, while a push's expected heads are compared with those the caller sees. A snapshot walk withholds the content of the paths they don't read: their entries keep their place in the trees, but neither the blobs nor the trees under them come. Everyone who sees the repository reads `policy`'s snapshots, which say what each may do and which keys sign acceptances, so they can verify every target. Walks only check paths where the rules differ: under a path whose level is settled, nothing more is checked.
PiquelChips
force-pushed
the
feat/permissions-reads
branch
from
November 22, 2026 19:20
145c99f to
8e6ddb4
Compare
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.
Every caller reads everything a server holds. Callers now see only what their rights let them read, as
permissions::Readerdecides.Reading:
policy's snapshots, which say what each may do and which keys sign acceptances, so they can verify every target.Walks only check paths where the rules differ: under a path whose level is settled, nothing more is checked.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)