mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 14:36:35 +09:00
* fix(federation): validate inbound envelope freshness and replay Signed-off-by: luojie <16602829831@163.com> * fix(federation): reject JCS envelopes signed before replay history began The inbound replay guard is in memory and created in initialize(), so an envelope captured up to ~5.5 min before a restart could be replayed once into the new lifecycle. Record the guard's creation time and fail closed with MESSAGE_PREDATES_REPLAY_HISTORY for earlier signed timestamps. Tests: guard-level restart-window test with an injected clock, and a plugin-level test with real Ed25519 signatures showing an envelope accepted by one instance is rejected by a fresh instance created after. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Signed-off-by: luojie <16602829831@163.com> Co-authored-by: luojie <16602829831@163.com> Co-authored-by: r <r@x>