README, docs: the replay floor that survives a reboot (1171d8f9) -- core fix, ACL_TS_MAX_AHEAD, upstream candidate
pub-release / release (push) Successful in 34m9s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-18 10:31:04 +01:00
1 parent 1171d8f972
commit c8d75947f8
2 files changed
+17

No files matched your search

+16
View File
@@ -107,6 +107,14 @@ Repeater navíc:
### Opravy jádra
* **Ochrana proti přehrání admin příkazů přežije reboot.** Upstream si
poslední timestamp klienta drží jen v RAM, takže po každém restartu projde
libovolný zachycený příkaz znovu – zachycený `reboot` uzel restartuje
pořád dokola. Repeater, room server i sensor ho teď zapíšou do flash dřív,
než příkaz provedou (`/s_acl_ts0|1`, střídavě s kontrolním součtem, takže
ho nesmaže ani výpadek napájení při zápisu). Timestamp víc než den před
hodinami uzlu (`ACL_TS_MAX_AHEAD`) se přijme, ale neuloží, aby companion
s rozhozenými hodinami nezamkl admina. Klientů se to nijak netýká.
* TRACE už nepřipisuje cestu za konec payloadu; parsování TRACE/PATH
a `Packet::readFrom` hlídají meze.
* `markSeen` je zase idempotentní (odesílací cesta ujídala okno deduplikace).
@@ -395,6 +403,14 @@ The repeater also has:
### Core fixes
* **Replay protection of admin commands survives a reboot.** Upstream keeps a
client's last timestamp in RAM only, so after every restart any captured
command is accepted again -- a captured `reboot` reboots the node forever.
Repeater, room server and sensor now write it to flash before acting on the
command (`/s_acl_ts0|1`, alternating with a checksum, so a power cut mid-write
does not lose it). A timestamp more than a day ahead of the node's clock
(`ACL_TS_MAX_AHEAD`) is accepted but not stored, so a companion with a runaway
clock cannot lock its admin out. Nothing changes for clients.
* TRACE no longer appends its path past the end of the payload; TRACE/PATH
parsing and `Packet::readFrom` are bounds-checked.
* `markSeen` is idempotent again (the send path was eating the dedup window).