You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(security): the App's installation tokens carry only the permissions the roadmap jobs use #2473
The owner gave GitHub App devops-cli-service read and write on every repository permission on 2026-10-28, for planned repository-management work (ADR 0015, #2454). Each installation token that the Service and the cluster Jobs mint today gets every permission of the installation, including Administration, Secrets, Variables, Environments and Workflows, which AGENTS.md leaves to a person. A bug, a prompt injection that reaches a write, or a leaked token can then use all of them. The roadmap jobs need only Issues, Pull requests and Contents read and write, and Checks, Actions and Metadata read (k8s/README.md, "Roadmap service", step 1).
GitHub's "Create an installation access token for an app" endpoint takes a permissions object (and repositories) that narrows the token below the installation's grant. src/devops_cli/github/app_installation.py:145-150 mints the token with no such object.
Proposed Solution & Architectural Design
The token request names the permissions the roadmap jobs use, from one constant: issues: write, pull_requests: write, contents: write, checks: read, actions: read, metadata: read.
A request that GitHub refuses because the installation lacks one of them fails with an error that names the missing permission.
A later feature that needs more asks for its own token with its own set; the App's grant stays the owner's setting.
GitHub's documented permissions parameter of POST /app/installations/{installation_id}/access_tokens, through gidgethub.apps.get_installation_access_token or the session's request, whichever the code uses. Nothing is built.
Acceptance criteria
With GitHub faked at the HTTP edge, the token request body holds exactly the permissions above.
The minted token's permissions in the reply are logged as names only, and a reply that grants more is not an error.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The change reduces the token's granted permissions to limit the blast radius of a compromised or leaked token.It is a defense-in-depth fix with no active exploit, so it is important but not urgent.It limits the damage a single leaked token can cause, which protects all roadmap jobs.The change adds one constant and one parameter to an existing API call in app_installation.py.Both work in the GitHub session area, but #767 consolidates token discovery and transport while this candidate restricts the permissions on minted installation tokens.feat(security): the App's installation tokens carry only the permissi…
chore(main): release 0.10.0 (#2463)
feat(service): roadmap-service runs at one replica, and each model ca…