Repository navigation
Conversation
…w it - cloud/team.mdx: what each role can do, the forbidden_role answer, keys are their scopes, sign-ins end on a demotion - authentication.mdx: login sessions hold their role's scopes (no longer full access) - mcp.mdx: an OAuth sign-in follows the role - cli/keys.mdx: plain member -> editor, viewer or billing member Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of the docs-only change. The role matrix reads consistently across the four files, apart from the stale statement and the owner/admin gap below. I did not check it against the API.
Docs: updated. Skill: tracked in squirrelscan/repo#3378. |
…ation feed needs audits:read Signed-off-by: Nik Cubrilovic <[email protected]>
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 7:40am (UTC) |
… rotate them Signed-off-by: Nik Cubrilovic <[email protected]>
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 7:40am (UTC) |
…ole and why (#1146) The cloud now enforces the organization role matrix (squirrelscan/repo#3293, and #1138 here documents it). A viewer or billing member signed in to the CLI cannot run audits in that organization, so the server refuses two calls with `403`: - the run register (`POST /v1/agent-runs/register`); - the auto-publish (`POST /v1/reports`). Both refusals come in the bare shape `{ error: "forbidden_role", message, role, missing_scope }`. The CLI did not handle that shape: - **Run register:** the run was silently left untracked. The warning path reads only a typed `error.code` from an allowlist. - **Publish:** the code read `error.code` and `error.message` off a string, so it returned a command error with no code and no message. Now: - **Register:** a bare `forbidden_role` is a definitive failure. The audit prints "⚠ Run not tracked in your dashboard: Your role (viewer) in this organization does not include audits:write". Other bare-string errors, such as a 429 rate limit, still stay quiet. - **Publish:** a bare `forbidden_role` returns the command error `forbidden_role` with the server's reason, plus "Ask an owner or admin for a role that runs audits, or run with --no-publish to keep the report local". Any other bare-string error returns `API_ERROR` naming the status and the error. - The local audit and its results are unchanged. Tests: - `tests/lib/run-tracker.test.ts`: a new case for the bare `forbidden_role` warning. The existing 429-stays-quiet case still passes. - `tests/cont
Documents the organization role matrix that the API now enforces (squirrelscan/repo#3293). These docs go live when the private changes behind them ship, so hold the merge until those land: PR1a (REST API) and PR1b (MCP and OAuth). The lead coordinates the timing.
cloud/team.mdx:403 forbidden_roleanswer;developers/authentication.mdx: login sessions hold their role's scopes. They are no longer "unscoped (full access)", and each role's scopes are listed.developers/mcp.mdx: an OAuth sign-in follows the role, a refused tool answersFORBIDDENwithroleandmissing_scope, and a demotion ends the sign-in.cli/keys.mdx: "plain member" now says "editor, viewer or billing member".Checks:
tangly check --strictpasses all checks over 503 pages, andscripts/check-links.tsfinds every internal link, anchor and Options table good. No em-dashes.Skill: squirrelscan/repo#3378 covers the agent skill explaining a
forbidden_role.