Public: anyone can read this; the crew can change it.
Owner decision: where do a pull's checks run on a Mac, away from the machine that holds signing keys #18543
Merged 2h 48m ago, live in production
mason/forge:mason/18517-owner-decision-where-do-a-pull-s-checks → main 0 commits fork 4 threads · 4 unresolved
1 file
changed +21
−5
docs/designs/compute-leaves-the-forge.md +21 −5
| @@ -56,7 +56,8 @@ says so. | ||
| 56 | 56 | |
| 57 | 57 | **A job** is: a commit (fetched from the forge's git door with a short-lived token), a recipe |
| 58 | 58 | (the repository's own `forge.json` check steps), the cache keys it may read, a time budget, and |
| 59 | the secrets the repository was granted for that kind of run and nothing else. | |
| 59 | no secrets. A secret that signs or ships (signing keys, store credentials) stays in the forge and | |
| 60 | is used by the forge, never handed to a runner; a job receives only its short-lived git token. | |
| 60 | 61 | |
| 61 | 62 | **Running.** The same cell the forge uses today (bubblewrap on Linux; a container or the system |
| 62 | 63 | sandbox on macOS, with the honest note that a Mac result is for macOS-compatible steps: a check |
| @@ -66,8 +67,23 @@ with the test list it ran and kept. | ||
| 66 | 67 | **Trust.** A result is signed by the runner's key and recorded with who ran it. Three classes: |
| 67 | 68 | the forge's own machine (trusted); a runner the owner enrolled (trusted for that owner's |
| 68 | 69 | repositories); anyone else's (its green is evidence, and the landing gate re-runs on a trusted |
| 69 | runner). A pull from a stranger never runs on a runner that holds anyone's secrets: the outside | |
| 70 | lane the forge already has. | |
| 70 | runner). A runner holds no one's secrets, so trust decides whose green counts, not who sees secrets; | |
| 71 | a pull from a stranger still runs in the outside lane the forge already has. | |
| 72 | ||
| 73 | **Signing keys (owner's decision, 2026-12-06, #18517).** Where a pull's checks run on a Mac, away | |
| 74 | from the machine that holds signing keys, is answered by taking the question away: no runner holds | |
| 75 | signing keys, and a runner should not see the secrets of the job it runs, ideally nothing at all. | |
| 76 | Not a VM, not a second macOS user, not a second Mac: the keys are sealed into the forge. The next | |
| 77 | step is a spike (#334, P17 line 5a): an archive built unsigned on a Mac, then signed and sent to | |
| 78 | TestFlight by the forge. | |
| 79 | *Proves out* means the spike's exit: an unsigned archive is built on a Mac, then signed and | |
| 80 | uploaded to TestFlight by the forge, with no key on the Mac. When that has run once, this | |
| 81 | paragraph's interim lines below are retired. | |
| 82 | ||
| 83 | *Interim, and open.* Until then, the landing job (TestFlight, main only) stays on the keyed Mac | |
| 84 | that runs it today, with its launchd watcher. Pull checks on a Mac are not moved away from it: | |
| 85 | they wait for the spike, and the accepted risk is that any Mac pull check that does run runs on | |
| 86 | the keyed Mac. #18517's question is closed for the long run, not for the interim. | |
| 71 | 87 | |
| 72 | 88 | **Losing a runner.** A job has a lease. A runner that goes silent loses the lease and the job is |
| 73 | 89 | queued again without counting as a try (the rule that now holds for restarts). |
| @@ -116,7 +132,7 @@ the seed of that), and that is a tier, not a redesign. | ||
| 116 | 132 | +-------v--+ +-----v-----+ +-----------+ |
| 117 | 133 | | runner: | | runner: | | runner: | checks, crew runs, looks; |
| 118 | 134 | | its own | | a pool | | the Mac, | join and leave freely; |
| 119 | | machine | | (hosted) | | when able | sandboxed; no secrets it was not given | |
| 135 | | machine | | (hosted) | | when able | sandboxed; no secrets at all | |
| 120 | 136 | +----------+ +-----------+ +-----------+ |
| 121 | 137 | |
| 122 | 138 | |
| @@ -137,7 +153,7 @@ forge is small and always there; the work it asks for happens wherever there is | ||
| 137 | 153 | ## Risks |
| 138 | 154 | |
| 139 | 155 | - **Security is the whole game.** A runner executes untrusted code and holds a token. Scope every |
| 140 | token to one job; give secrets only to trusted runners; treat a volunteer runner's green as | |
| 156 | token to one job; give secrets to no runner (what signs or ships stays in the forge); treat a volunteer runner's green as | |
| 141 | 157 | evidence, never as proof. |
| 142 | 158 | - **macOS is not Linux.** The forge's checks assume Linux cells. The Mac can run the large share |
| 143 | 159 | that is plain `bun test`; the rest stays on Linux. Do not chase parity. |
new above
offline
This replaces the secrets model, but the A job definition (line 58-59), Trust (line 69) and Risks (line 147) still say jobs get granted secrets and secrets go to trusted runners. Reword them in this pull so the doc has one answer.