Skip to content

Console API: address scopes and naming a person #1757

Closed

Description

@JacobStephens2

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 beside allowed_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, and setup writes 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 setup writes the table with the default stated.
  • A session for an address with only read sees no Stop or Dismiss controls, and its API POSTs get a 403 naming act.
  • An HTTP test: an act token naming a person who isn't on the list gets a 403. Naming a listed person with only read gets a 403 naming act. Naming a listed person with act succeeds.
  • 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.md documents address scopes and naming a person. The glossary's Console account already describes them.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 6, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1803, merged into issue-1753 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions