Public: anyone can read this; the crew can change it.
Crash reports: a private app's owner makes a report key, and a build with it can file reports without a session #18242
Closed 5h 23m ago
A private app's owner can now make a report key, and a build carrying it can file crash reports without a session. The tests for this and for crash reports pass (16), tsc and the design lint are clean, and the gate's --fix changed nothing. I did not run the full suite, which the forge's check does on push.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy 5479989
-
History
- Report key: regenerate the route index 5479989
- Report key: settings block is behind the owner's sign-in c31db12
- Report key: its how-to e422a23
- Report key: pin its migration, route roles, wrap comments a2a6262
- Crash reports: a private app's owner makes a report key; a build with it files reports without a session 3fbfa37
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
- Access 5c: a linked game player mints the visitor principal (#18209) d46f453
- A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing (#18184) 1b94cba
- Full suite red: 3 files in check run 01m90cxa10vb1wxr16pmrhnt09 (#18225) 831c98f
- Game door: plain questions go to Talk at once, and continue until /forge clear (#18055) b5161cb
- Spend 3: the same cost reads and planned stop/delete as MCP tools and a terminal screen (#18206) c30e6bb
- Games: host the spark profiler viewer and its uploads in the forge (#18096) beabbda
- Games: a day after a mod set is installed, the games page says whether it helped, with take-back one tap away (#18201) 2243020
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- Connections on an account: verified identities the person controls, each with its own uses, and a lookup that answers only on opt-in (#18120) 314f4eb
- A granted app's two-page print comes out as one sheet, printed on both sides (#18194) e2e7eb4
- Traces 5c: the trace list and one trace read through MCP tools and a terminal screen compare (#18183) cc38920
- Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits (#18174) e261ee9
A private app's owner can now make a report key, and a build carrying it can file crash reports without a session. The tests for this and for crash reports pass (16), tsc and the design lint are clean, and the gate's --fix changed nothing. I did not run the full suite, which the forge's check does on push. The branch was already pushed with all five commits, so this run added no commits.
What changed
- Key storage:
src/core/report_keys.tsand a pinned migration build on the existing token pattern insrc/core/tokens.ts, with no new grant table. The key is shown once, stored hashed, and can be revoked or rotated. A newsrc/actions/report_keys.tsholds the make and revoke actions. - Filing without a session:
src/http/api/crash_reports.tsaccepts a report carrying a valid key for that private app. The key grants nothing else, and the same rate limit applies. A missing, wrong or revoked key gets the identical 404 an app that doesn't exist gets, so a private app's existence isn't revealed. - Owner doors: make and revoke are an API route (
POSTandDELETE /api/v1/apps/{owner}/{name}/report-key), a settings block (src/web/pages/report_key.ts) and a terminal screen (src/tui/screens/reportkey.ts), all using the same wording. The settings block is behind the owner's sign-in. The how-to isdocs/features/report-key.md. - Test:
test/report-key.test.tscovers the three cases the issue names:- only the owner can make a key;
- a report filed with the key is accepted;
- the same report is refused after revoke, and a wrong key gets a 404 body identical to the one for a missing app.
Left out
- Rotating a key is revoke then make again, not a single action.
- The gate's "one implementation?" notes between
reportKeyMakeandreportKeyRevoke, and between the key screen and the app-flags screen, are advisory. I kept the functions separate.
Try it
- As the app's owner, open the app's settings and make a report key.
- File a crash report to the private app with the key and no session, and check it is accepted.
- Revoke the key, file again, and check you get the same 404 as for an app that doesn't exist.
[
{"go": "/trevato/<private-app>/settings", "look": "Report key block", "expect": "Make shows the key once; revoke removes it"},
{"go": "POST crash report to private app with the key, no session", "look": "response", "expect": "accepted; after revoke or with a wrong key, the same 404 as a missing app"}
]
🤖 Generated with Claude Code
Declined: already done on main in fbb3da48f. Main's #18202 built the same feature, so the merge conflicts are two rival implementations, not edits to resolve. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m90v5m6yy3ry2k8fwahh7fvd
A private app's owner can now make a report key, and a build carrying it can file crash reports without a session. The tests for this and for crash reports pass (16),
tscand the design lint are clean, and the gate's--fixchanged nothing. I did not run the full suite, which the forge's check does on push. The branch was already pushed with all five commits, so this run added no commits.What changed
src/core/report_keys.tsand a pinned migration build on the existing token pattern insrc/core/tokens.ts, with no new grant table. The key is shown once, stored hashed, and can be revoked or rotated. A newsrc/actions/report_keys.tsholds the make and revoke actions.src/http/api/crash_reports.tsaccepts a report carrying a valid key for that private app. The key grants nothing else, and the same rate limit applies. A missing, wrong or revoked key gets the identical 404 an app that doesn't exist gets, so a private app's existence isn't revealed.POSTandDELETE /api/v1/apps/{owner}/{name}/report-key), a settings block (src/web/pages/report_key.ts) and a terminal screen (src/tui/screens/reportkey.ts), all using the same wording. The settings block is behind the owner's sign-in. The how-to isdocs/features/report-key.md.test/report-key.test.tscovers the three cases the issue names:Left out
reportKeyMakeandreportKeyRevoke, and between the key screen and the app-flags screen, are advisory. I kept the functions separate.Try it
🤖 Generated with Claude Code
Closes #18224