Skip to content

feat(permissions): check the revisions each caller puts - #147

Open
PiquelChips wants to merge 1 commit into
feat/permissions-statement-checksfrom
feat/permissions-revision-checks
Open

PiquelChips wants to merge 1 commit into
feat/permissions-statement-checksfrom
feat/permissions-revision-checks

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

A signed-in caller can still put a revision authored by someone else, one evolving from a revision they can't see, or one whose tree places the blob of a file they may not read where they may, to fetch it back.

Revisions:

  • A revision's author must be the caller.
  • It may only evolve from revisions they see.
  • It may only hold content they sent, or that already sits at the same path in a snapshot it refers to, its base's or a predecessor's (Store::unsupplied). Then every path holds what someone who could read it put there.
  • Its description, an attachment, must come with it if the repository has it.

A batch may hold a stack of revisions, each on the one below.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 075a0478-fa3b-450a-ac7c-43811a7327c1
Commits

Reviewing files that changed from the base of the PR and between fa4a849 and e87ef36.

Files selected for processing: 3

  • apps/origin-src/src/permissions.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/src/tree.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/permissions-revision-checks branch from 5b71455 to 747c91d Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/permissions-revision-checks branch 2 times, most recently from 8e0db62 to 209c1bc Compare November 22, 2026 18:54
A signed-in caller could still put a revision authored by someone else,
one evolving from a revision they can't see, or one whose tree places
the blob of a file they may not read where they may, to fetch it back.

A revision's author must now be the caller, and it may only evolve
from revisions they see. It may only hold content they bring with it,
or that a snapshot it refers to, its base's or a predecessor's, holds
at the same path (`Store::unsupplied`): then every path holds what
someone who could read it put there. Its description, an attachment,
must come with it if the repository has it. A batch may hold a stack of
revisions, each on the one below.
@PiquelChips
PiquelChips force-pushed the feat/permissions-revision-checks branch from 209c1bc to e87ef36 Compare November 22, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant