Replaces #18024, which was handed to builders twice before the code it extends was on main. Start from main once #18006 has landed (pull #18018 adds src/core/apple_crash.ts, recordCrash and the apple_crash_group table).
Why: recordCrash keeps at most 200 groups and never deletes one. An anonymous sender (5 a minute from one address) can fill the table with made-up groups. After that, real crashes are not kept, and there is no way to clear them.
Done looks like:
Files: src/core/apple_crash.ts, the /admin/telemetry page and route, the terminal App usage screen, docs/features/apple-usage.md, a test.
Replaces #18024, which was handed to builders twice before the code it extends was on main. Start from main once #18006 has landed (pull #18018 adds
src/core/apple_crash.ts,recordCrashand theapple_crash_grouptable).Why:
recordCrashkeeps at most 200 groups and never deletes one. An anonymous sender (5 a minute from one address) can fill the table with made-up groups. After that, real crashes are not kept, and there is no way to clear them.Done looks like:
Files: src/core/apple_crash.ts, the /admin/telemetry page and route, the terminal App usage screen, docs/features/apple-usage.md, a test.