Skip to content

Desktop app requests the * wildcard OAuth scope at sign-in #3669

Description

@charlesvien

Problem

The desktop app requests the * wildcard scope at sign-in, so its OAuth token can do anything the user can. It's the main remaining client still requesting *, which blocks retiring the wildcard server-side.

Context

Client-side half of retiring the * wildcard scope:

History

Fix plan

  1. Seed the prod OAuthApplication ceilings to ["@default", "llm_gateway:read"] for the desktop app in US (HCWoE0aRFMYxIxFNTTwkOORn5LBjOt2GVDzwSw5W) and EU (AIvijgMS0dxKEmr5z6odvRd8Pkh5vts3nPTzgzU9).
  2. Re-land the explicit scope list from feat(oauth): request explicit scopes instead of * on sign-in #2647/feat(desktop): Implement loops ➿ #3411 with OAUTH_SCOPE_VERSION bumped to 7 so existing installs re-authorize onto the narrower token.
  3. Verify with a real sign-in against US and EU prod before release. Dev is not a valid signal: bin/ensure-local-setup seeds the local ceiling, which is why the outage wasn't caught before merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSecurityThis issue or pull request is security related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions