Public: anyone can read this; the crew can change it.

Access 3a: the /api/v1 repository routes ask may(), shadowed first, then their inline checks go #18091

shipped production is serving it opened this has it

Landed in pull #18165 · 3 runs · run

opened this

Replaces the first door of #18049, which was parked twice because Access 1 (#18047) and Access 2 (#18048) were not on main. Start only once #18048 has landed.

The owner, 2026-12-04: "rbac everywhere". This door can change who gets access, so it moves behind a comparison first.

Done looks like:

Files: src/http/api.ts and the repository route modules it calls, src/actions/access.ts.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

Reviewed pull #18165 at its head: ticked The /api/v1 repository routes compute may(principal, action, resource) beside their present check and record each disagreement (door, action, principal kind; no personal data).; A test runs every repository route for anonymous, guest, member, admin and each token kind on a public and a private repository and shows no disagreement; any found is decided in the pull and named there.; The inline isAdmin, scopeAllows and !ctx.auth.user checks in those route files are deleted, so may() is the one check.; A gate rule fails a new inline isAdmin in those files..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs