Commit Graph
21 Commits
Author SHA1 Message Date
aiongg f2c76aa9e5 Feature code's Db has no query methods; effects inside a transaction or wave throw in tests; reads of bytes in a wave must be alone; idle transactions end after 10 s 2026-11-25 14:25:01 +00:00
aiongg 54630cc7f9 GitHub App allowed owners: match installations by account id, list every installed account when enforcement starts and repo owners when tracked, read an installation's repos before removing it, refuse tracking for owners not allowed, answer installation webhooks at once, page the installation list, count a 404 as already removed, show protected owners 2026-11-23 21:04:02 +00:00
aiongg 2d833f9f80 GitHub App allowed owners: installations on other accounts are uninstalled (webhook and 10-minute sweep), operator list on the GitHub App page and CLI 2026-11-23 20:53:22 +00:00
aiongg de71c62cee Registering a GitHub App over unreadable stored keys needs an explicit confirmation 2026-11-22 15:49:56 +00:00
aiongg 49f56f0a67 GitHub App keys: every process reads the store, unreadable keys are reported
openDb() opens the process's app-key store with its database, so job
processes and commands read the stored keys too, and the planner thread opens
its own; readAppSecrets and the minter no longer fall back to the secrets file,
which is read only for the one-time import. Stored keys the session_key cannot
open are logged once and shown on the GitHub App page; a new registration may
replace them. The webhook-secret copy updates only the same app's readable row.
A dev server seals with its secrets file's session_key when it has one.
2026-11-22 15:25:52 +00:00
aiongg 0a39282973 GitHub App keys live in the database, sealed; a secrets file's app keys are imported once
Registration stores the app's keys in the github_app table, sealed with the
token box derived from session_key, so dashboard replicas and the runner read
the same keys without a shared filesystem, and the secrets file can be a
read-only mount. A secrets file that still holds github_app_* keys is imported
while no row exists; a removed app keeps its row (keys null) so the file does
not bring it back. Processes reread the row at most every 10 seconds.
2026-11-22 15:01:32 +00:00
aiongg 3a615a8d2e github-app tests: await the audit and state reads before checking that no secret appears in them 2026-11-21 23:17:15 +00:00
aiongg 1af87b50e3 Dashboard server: github-app, github-setup, image-index, index and reseal build their queries with Kysely 2026-11-21 22:53:30 +00:00
aiongg 5d0e07986c Convert src/access.ts and its tests' access, session, permission and link fixtures to the Kysely builder 2026-11-21 21:58:47 +00:00
aiongg e8bffa8f39 Dashboard SQL on both dialects: decisions and needs builders take the handle, JSON idioms through portable helpers, index hints and NOCASE through helpers, RETURNING for new ids, test upserts 2026-11-21 18:53:18 +00:00
aiongg 20061c88d9 Apply async codemod: node scripts/codemod-async.ts over the program 2026-11-21 17:00:38 +00:00
aiongg e6a158ebdd Cost report's runs list binds only the hidden-repo parameters, artifact names keep a plain filename next to the encoded one, a job may take its own lease again, and app tests write secrets files 0600 2026-11-10 15:17:41 +00:00
aiongg 8c44df135c File Discord-drafted issues under the person's GitHub account: reporter sign-in routes, token store, junk check, limits, unlink 2026-11-09 13:08:52 +00:00
aiongg bda27cc948 GitHub identity review fixes: no OAuth fallback in app mode, sign-in bound to the identity it started under, coverage checks (switch, track, health) with transient errors apart, minter caches keyed by app, confirm step on the switch 2026-11-08 21:04:06 +00:00
aiongg 72b1a4edfa One instance-wide GitHub identity (box account or GitHub App) replaces the per-repo identity and the login-app variable; app keys are read again when the keys file changes 2026-11-08 20:56:53 +00:00
aiongg e6e38b2563 GitHub App: user-token vault (CAS refresh, shared refresh pair, removal revokes) and identity map on grants and audit rows 2026-11-05 16:21:13 +00:00
aiongg c6cb199514 GitHub App page: Remove clears the registered app's keys so another app can be registered 2026-11-05 15:47:40 +00:00
aiongg 46ff06bd74 Org setup link review fixes: role-call fallbacks, owner check results, OAuth client for the flow, installation verification, token revocation, flow keys 2026-11-05 15:45:10 +00:00
aiongg a844723355 Test the org setup link flow: owners only, single use, owner token kept nowhere, app manager fallback 2026-11-05 15:29:35 +00:00
aiongg cd9966c1ab GitHub App review fixes: probe the secrets file before converting, keep user_tokens current on refresh, POST registration bound to the session, app owner, safer secrets write, docs 2026-11-05 15:22:48 +00:00
aiongg 3c372b2b39 GitHub App groundwork: app secrets, manifest registration page, app sign-in with user_tokens 2026-11-05 15:10:58 +00:00