Commit Graph
262 Commits
Author SHA1 Message Date
MrAlders0n 70aeca21e7 perf(db): find a node's late hearings through an index on its packets' last hearing
Two bounded ranges instead of an OR across first and last hearing: migration 086
adds idx_packets_origin_last_heard. Planguard entries guard both ranges, and the
node activity test holds the clock still and runs in CI again.
2026-11-19 17:47:14 -05:00
n30nex 08a00ee993 fix(db): count late hearings of a node's older packets in its activity (#308) 2026-11-19 17:42:49 -05:00
n30nex d2baa10025 perf(db): check each regional neighbour once when reconfirming neighbours (#350) 2026-11-19 09:30:03 -05:00
n30nex 4d076b0bdb fix(db): count only the routes a timed-out reconfirm slice skipped (#349) 2026-11-19 09:30:01 -05:00
n30nex 4516e19695 fix(db): keep 16 clock drift samples per node, not 17 (#305)
The trim could not see the row inserted in the same statement.
2026-11-19 09:29:56 -05:00
MrAlders0n ee4ee046c5 fix(alerts): hold rate-limited pushes without counting an attempt
A rate_limited item or a whole-call 429 now holds only the push until the
relay's wait (the item's, else Retry-After, else a minute), and never
counts toward MaxAttempts or shrinks the batch. Batches go back to 100
with a 30s call limit, matching the relay.
2026-11-18 06:09:12 -05:00
MrAlders0n 275c532e23 fix(alerts): retry email and push apart, and fit push batches to the relay
Each channel now has its own attempts, delay and done mark, so a failing
or rate-limited push no longer holds back or drops unsent mail. Push
batches drop to 20 with a 50s call limit, a batch shrinks after each
failure, and a call that times out leaves the rest for the next pass.
2026-11-18 06:00:59 -05:00
MrAlders0n 90c2ece473 feat(alerts): email and push channels through the push server
Alerts go out by email, by push or both, as each user chooses. Push is
sent through the push server with the operator's Push ID and secret and
sealed per device, so this server no longer holds a Firebase key. The
outbox tracks each channel, so a retry of one never repeats the other.
2026-11-17 20:22:51 -05:00
MrAlders0n 4924f0310b Bound the latest readings target scan and run its test in CI 2026-11-15 20:39:07 -05:00
MrAlders0n eb913d6cce Add a route for the latest reading of every polled node 2026-11-15 20:15:58 -05:00
MrAlders0n 2819d60ca2 Accept a telemetry view and tiles on Atlas pins, add a 72h telemetry range and the atlasTelemetry flag 2026-11-15 19:41:23 -05:00
MrAlders0n cf9b690e03 Report the poller's own state on a telemetry request 2026-11-15 17:21:44 -05:00
MrAlders0n 1e52ddb983 Free the seat of a repeater nobody requests any more 2026-11-15 11:26:21 -05:00
MrAlders0n c3a0141bbf Index readings by repeater and observer 2026-11-15 11:12:50 -05:00
MrAlders0n a39c947668 Trust a working poll over a stale login failure 2026-11-15 11:07:10 -05:00
MrAlders0n 941eae24f1 Build the owners answer from one snapshot 2026-11-15 10:58:58 -05:00
MrAlders0n 7cf737ae49 Do not offer a seat to a target nobody requests any more 2026-11-15 10:07:57 -05:00
MrAlders0n 4562d45ff9 Keep failed and admin-stopped requests through the offline sweep 2026-11-15 09:45:31 -05:00
MrAlders0n 580f0d1065 Offer a replacement in the seat a withdrawn target frees 2026-11-15 09:39:45 -05:00
MrAlders0n 9a61f689a0 Renumber and update requests when cleanup drops assignments 2026-11-15 09:27:13 -05:00
MrAlders0n 2e87fb7a51 Send alert mail for finished passes only 2026-11-15 08:10:17 -05:00
MrAlders0n 39c10bb406 Stop repeater telemetry alerts when polling is off 2026-11-15 08:09:29 -05:00
MrAlders0n 1483860727 Keep recent advert clock drift for alerts 2026-11-15 08:08:12 -05:00
MrAlders0n 5ed8a387bb Read every reading since the last alert pass 2026-11-15 08:01:10 -05:00
MrAlders0n 3ad9fb734a Lock observers and targets in one order for requested elections 2026-11-15 07:58:03 -05:00
MrAlders0n e666b9c896 Stop telemetry alerts when polling stops 2026-11-15 03:34:41 -05:00
MrAlders0n adb2ab53c6 Evaluate every reading and advert since the last pass 2026-11-15 03:34:41 -05:00
MrAlders0n fdc05a489b Send one alert mail per user and pass 2026-11-15 03:14:23 -05:00
MrAlders0n 53a5a81ce9 Track push delivery per device 2026-11-15 03:11:00 -05:00
MrAlders0n 5e8376581d Mark alert mail delivered after it is sent 2026-11-15 03:07:23 -05:00
MrAlders0n 7d243ea26a Recheck a request before disabling it as offline 2026-11-15 03:02:43 -05:00
MrAlders0n f67f7ed456 Tie an admin stop to the password it was given 2026-11-15 02:59:15 -05:00
MrAlders0n 94d7cf410a Reserve observer seats for requests in order 2026-11-15 02:54:23 -05:00
MrAlders0n d0529fbdd6 Read an Atlas in one snapshot 2026-11-15 02:49:44 -05:00
MrAlders0n 63ab6ed8c1 Give a push token one owner 2026-11-15 02:45:57 -05:00
MrAlders0n c8f53c9d23 Add ids, a polled flag and reason codes to alert targets 2026-11-15 02:23:18 -05:00
MrAlders0n 22b10d18d5 Deliver alerts by email or push 2026-11-15 02:02:21 -05:00
MrAlders0n 6fa5e2c13e Evaluate alert rules 2026-11-15 01:56:20 -05:00
MrAlders0n 26ccf6d4db Add alert rules and device registration 2026-11-15 01:48:15 -05:00
MrAlders0n 35468cc7cc Add sign-in through the MeshMapper portal 2026-11-15 01:40:24 -05:00
MrAlders0n 59bbee8baf Use real status readings for telemetry counters 2026-11-15 01:23:25 -05:00
MrAlders0n 4708513cdd Close remaining credential races 2026-11-15 01:19:31 -05:00
MrAlders0n 87a2de2b87 Fix reset, resend and session lookup edge cases 2026-11-15 01:14:20 -05:00
MrAlders0n 24e3588e65 Serialise sign-in against credential changes 2026-11-15 01:08:02 -05:00
MrAlders0n 77cde9f66d Tighten who can take and stop a telemetry request 2026-11-15 01:04:42 -05:00
MrAlders0n c34a20f2a5 Assign requested repeaters to observers 2026-11-15 00:56:28 -05:00
MrAlders0n 1c51a6b77d Add telemetry request storage and routes 2026-11-15 00:41:16 -05:00
MrAlders0n 49ea5e04e8 Add account Atlas storage and routes 2026-11-14 23:52:28 -05:00
MrAlders0n 45ea8cfae5 Keep disabled accounts out of the unverified cleanup 2026-11-14 23:47:12 -05:00
MrAlders0n 81e7950705 Wire accounts into startup and add operator user management 2026-11-14 23:41:56 -05:00