Repository navigation
Closed
Labels
Description
This was generated by AI during triage.
Parent
#1753 (Spec: the Console API). Governing decision: ADR 0026.
What to build
Each address on the Console sign-in list carries scopes of its own, and a token request can name a person, whom the owning machine checks against its own list (#1142 Q3.3, Q4.1, answering #952).
- The User config's
[console]gains a per-address scopes table besideallowed_emails. An address absent from it has all five scopes, so a one-person list behaves as today. It is set and shown from the CLI only, andsetupwrites it out with the other[console]settings. No API endpoint and no page writes it. - A signed-in session's scopes are its address's scopes. The page hides any control the session's scopes don't allow, and the API refuses the call with a 403 naming the scope.
- A token request may name a person in a request header. The owning machine refuses it with a 403 when that address isn't on its sign-in list. Otherwise the effective scopes are the token's scopes intersected with that person's scopes.
- The Activity log names a Stop or Dismissal made for a named person as "by
<person>from the Console on<machine>", where<machine>is the token's holder.
Acceptance criteria
- Through the binary: the CLI sets and shows an address's scopes, and
setupwrites the table with the default stated. - A session for an address with only
readsees no Stop or Dismiss controls, and its API POSTs get a 403 namingact. - An HTTP test: an
acttoken naming a person who isn't on the list gets a 403. Naming a listed person with onlyreadgets a 403 namingact. Naming a listed person withactsucceeds. - The Activity log line reads "by
<person>from the Console on<holder>" for that success. - No route writes the address scopes table or
allowed_emails. A test asserts it. -
docs/guide.mddocuments address scopes and naming a person. The glossary's Console account already describes them.
Activity
JacobStephens2 commentedon Nov 6, 2026
Closed by #1803, merged into issue-1753 by a thirdshift Ticket run with Self-merge.