mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-23 13:50:09 +00:00
|
Some checks are pending
* Let the user stop the security check entirely (#740) An F-Droid reviewer on fdroiddata!42096 found the app queries public CT logs on a schedule with no way to turn it off: HttpCtLogFetcher (crt.sh) and CertspotterCtLogFetcher, both in the shipped dex, with the per-device hostname as the query value. Settings offered only cadence choices. Add `Never` to the existing check-interval control. The interval already governs the whole feature -- SelfCertVerifier and CtLogMonitor are each reachable only via SecurityCheckSources -> SecurityCheckWorker, with no other caller and no other scheduler -- so `Never` completes that control rather than carving a second one into it. Default is unchanged; nothing becomes opt-in. It stops the work, it does not hide the result. Enforced in two places, both load-bearing: - SecurityCheckScheduler.cancelPeriodic removes the scheduled work. - SecurityCheckWorker re-checks the flag before touching either source. The second is not redundant. TunnelForegroundService enqueues a *one-time* run on connect, in a different unique-work slot the scheduler cannot cancel, and it fires whenever the last check is stale. Under `Never` the last-check time stops advancing, so scheduler-only cancellation would have made the CT queries more frequent -- one per tunnel connect -- not fewer. Persisted as its own boolean rather than a sentinel hour count. forHours() snaps unrecognised values to HOURS_12, so a "never" encoded in the interval key would sit one stale read away from decoding back into a live 12-hour cadence and silently resuming the egress the user switched off. NEVER.hours is null, so no integer can name it. The stored cadence is left untouched while checks are off, so switching back restores it. Tests assert at the CtLogFetcher boundary -- the frame that opens the socket -- over a real CtLogMonitor, not a stubbed source: a gate that suppressed only the result would still reach the fetcher and fail. Both directions are covered, so an implementation that disabled everything, or that could never be turned back on, does not pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYSPuh9bZEJkrzvnEpY1QK * Cite the approval provenance instead of flagging it unverified (#740) The ux-decisions entry shipped with its Approved by line reading "NOT independently verified" and asking Jason to confirm it. That was the honest state at the time -- the approval reached the implementing agent relayed, and writing an owner's name against a quote it had not witnessed is what #735 did wrong. But an entry that merges in that state leaves a permanent open question in the file that is supposed to be the record. The repo agent has since posted the verbatim provenance on #741 (issuecomment-5604042230). Cite it, and attribute the witnessing to the repo agent rather than to this agent -- that distinction is the reason the line was flagged in the first place, so collapsing it now would defeat the point. Jason proposed the design himself: offered a separate CT-specific toggle, he asked for "a different value in the interval? like never" instead. The approval covers the mechanism and the order of work. It does not cover the reply to fdroiddata!42096, which he reserved for his own sign-off; the entry now says so. Also records that the entry is voluntary. Adding an option to an existing Settings control is a pure addition behind an existing entry point, which .claude/rules/ux-changes.md lists under "does NOT require approval". Without that note a future reader would read this as a mandatory gate that was nearly missed. Docs only -- no code, tests or goldens touched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYSPuh9bZEJkrzvnEpY1QK --------- Co-authored-by: Monkopedia <monkopedia@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||