Repository navigation
feat(permissions): tell callers what they may do, and issue scoped tokens - #142
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-tokens
branch
3 times, most recently
from
November 22, 2026 18:54
bf8417f to
5691047
Compare
…kens With callers told apart, they need a way to see what the policy lets them do, and to hand an agent or a CI runner less than that. `OriginService::rights` resolves a caller's rights from the policy in force, kept until `policy` moves, narrowed by their token's scope: the owner has every right. `GET whoami` returns them, and `POST tokens` issues a token acting for the caller with a scope their rights must cover, refused with the new `forbidden` error code otherwise. A token lasts at most 7 days, and one issued with a scoped token never outlasts it, so no token renews itself. An operator signs tokens for any principal with the server's key, `origin token issue --config <file> --as <principal>`, to give agents identities of their own. On the command line, `origin whoami` and `origin permissions` show what the remote says, and `origin token issue --scope <capability>...` asks it for a token.
PiquelChips
force-pushed
the
feat/permissions-tokens
branch
from
November 22, 2026 19:20
5691047 to
93381ad
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.
With callers told apart, they need a way to see what the policy lets them do, and to hand an agent or a CI runner less than that.
OriginService::rightsresolves a caller's rights from the policy in force, kept untilpolicymoves, narrowed by their token's scope. The owner has every right.GET whoamireturns them, andPOST tokensissues a token acting for the caller, with a scope their rights must cover. Anything wider is refused with the newforbiddenerror code.origin token issue --config <file> --as <principal>, to give agents identities of their own.On the command line,
origin whoamiandorigin permissionsshow what the remote says, andorigin token issue --scope <capability>...asks it for a token.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)