Skip to content

feat(roadmap): act as GitHub App devops-roadmap instead of a machine account - #2411

Merged
dan-petty merged 3 commits into
mainfrom
feat/1647-roadmap-github-app
Oct 28, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/1647-roadmap-github-app

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

GitHub suspended the machine account of the roadmap Service (#1562), so no roadmap job could call GitHub without a person. The owner kept the repositories and the board on the personal account. The Service and the cluster Jobs now act as GitHub App devops-roadmap, which the personal account owns (ADR 0015, which supersedes ADR 0002).

  • A process whose environment holds the App's private key, DEVOPS_CLI_SERVICE_GITHUB_APP_PRIVATE_KEY, acts as the App. It signs a JWT with the key and exchanges it for an installation token through gidgethub.apps.get_installation_access_token. It mints a new token when less than ten minutes are left, and each gh and git child gets the current token as GH_TOKEN. A workstation keeps the key only in the keyring, so a workstation run keeps the gh login of its person.
  • The App's login is <slug>[bot] from service.github_app.slug, with no GET /user. The session and the quota ledger are keyed by the installation, so a new token keeps them, and the session sends the current token with each request. The job clone commits as <id>+<login>@users.noreply.github.com, with the ID from GET /users/<login>.
  • New settings service.github_app.app_id, installation_id and slug go into ConfigMap devops-cli-config, which PyYAML now renders. The managed credential service.github_app.private_key replaces the GH_TOKEN row of Secret devops/devops-cli. service.machine_account, k8s.github_account, GitHubAccountSource, the gh account read of devops k8s push-secrets and its --github-account option are removed.
  • The roadmap's webhook consumer refuses the bot's own deliveries with ignored_own_write. devops serve --service does not start without the App's settings and its key in the environment.
  • An App installation cannot reach the board of a personal account. A separate item moves the roadmap state to labels and milestones, and deployment/roadmap-service stays at replicas: 0 until then.

Closes #1647

Change: openspec/changes/archive/2026-10-28-1647-roadmap-github-app/

…account

A process whose environment holds the App's private key acts as the App.
It mints an installation token with gidgethub and mints a new one before
the token expires. The login is <slug>[bot], the session and the ledger
are keyed by the installation, and the webhook consumer refuses the bot's
own writes. The App's private key replaces GH_TOKEN in Secret
devops/devops-cli. service.machine_account and k8s.github_account are
removed. ADR 0015 supersedes ADR 0002.
Only an App identity reads the process's current installation token. A gh
identity's session sends its own token, so a session that a caller holds
after a reset of the process's token does not look up a new one.
@dan-petty
dan-petty marked this pull request as ready for review October 28, 2026 14:49
@dan-petty
dan-petty merged commit d739a47 into main Oct 28, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/1647-roadmap-github-app branch October 28, 2026 14:49
dan-petty pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.9.0](v0.8.3...v0.9.0)
(2026-10-28)


### Features

* **ai:** observe the Ollama slot wait by priority and chart its p95
([#2404](#2404))
([ffeeda4](ffeeda4))
* **github:** send GitHub request, throttle and GraphQL point metrics,
and show them on the devops-cli dashboard
([#2406](#2406))
([bded64b](bded64b))
* **k8s:** gpu row panels for clock-event reasons, power against the
enforced limit and pcie throughput
([#2409](#2409))
([21f023c](21f023c)),
closes [#821](#821)
* **review:** a review session records its head commit and clean tree,
and says whether it is on merged code
([#2434](#2434))
([8b4ed46](8b4ed46))
* **review:** an issue filed from a review finding carries its
fingerprint, and the review leaves out a finding that an issue already
carries ([#2428](#2428))
([acace03](acace03))
* **review:** the feedback export counts each review subject once and
keeps every human verdict
([#2417](#2417))
([73d1807](73d1807))
* **roadmap:** act as GitHub App devops-roadmap instead of a machine
account ([#2411](#2411))
([d739a47](d739a47)),
closes [#1647](#1647)
* **roadmap:** labels and milestones hold each item's status, priority,
value and effort, and no roadmap job reads or writes the project board
([#2435](#2435))
([84f02a1](84f02a1)),
closes [#2399](#2399)
* **roadmap:** refine investigates open questions with code and web
tools and decides design questions by the best practice
([#2410](#2410))
([890e228](890e228)),
closes [#2398](#2398)
* **telemetry:** count embedding cache lookups and send every metric
through a declared instrument
([#2416](#2416))
([19412fa](19412fa))


### Bug Fixes

* **git:** ignore missing files when measuring directory size during
reclaim ([#2438](#2438))
([4226904](4226904))
* **security:** scan all namespaces with Popeye when no namespace is
given ([#2436](#2436))
([4d5f789](4d5f789))
* **security:** scan_uv_audit runs a uv audit adapter that audits the
lockfile as it is
([#2446](#2446))
([0b2d005](0b2d005)),
closes [#2106](#2106)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant