Repository navigation
Qualify long-horizon KMREQ replay protection and document #112 compatibility boundary - #491
Merged
Merged
Conversation
…ty boundary Add live-UDP ConnectionRuntime regression suites across >= 36 key rotations (cycling even/odd selectors and evicting bounded CryptoSession histories) and document the #112 compatibility boundary across encryption, session-authentication, experimental-acp1, and testing docs: - SESSIONAUTH (AES-CTR and AES-GCM): reject replayed rotation-1 0x7f03/0x7f04 controls after >= 40 rotations without disturbing active keys or byte-exact DATA delivery; verify idempotent retries and response matching across dropped/duplicated controls, 31-bit packet sequence wrap (0x7ffffff0 -> 0x00000010), legacy bare-KMREQ rejection, and strict fail-closed negotiation. - Experimental ACP1 (AES-GCM): verify long-horizon 0x7f05 KMREQ/KMRSP replay rejection across Caller/Listener (v3, plus stale inner 0x7f03 re-wrapped in a fresh outer 0x7f05 ctrl_seq), Rendezvous (v4), Broadcast/Backup Groups (v5, including per-member key/counter isolation and cross-member replay rejection), and Group Rendezvous (v6). - Experimental PEERAUTH (AES-GCM): verify long-horizon 0x7f03/0x7f04 replay rejection over loopback UDP. - Legacy Haivision-compatible baseline (SRTO_ROBOTWEAX_SESSIONAUTH=0, AES-CTR and AES-GCM): verify short-horizon replay rejection and post-eviction safe behavior / recovery. Signed-off-by: Marc Cymontkowski <srtpioneer@proton.me>
…rkflow Align robotweax_srt_kmreq_long_horizon_tests (TIMEOUT 30) and robotweax_srt_acp1_kmreq_long_horizon_tests (TIMEOUT 60, matching the acp1_kmreq_long_horizon partition naming convention) with interop/tests/test_ci_build_scope.py and include robotweax_srt_kmreq_long_horizon_tests in ci.yml's optional retransmission-limit matrix. Signed-off-by: Marc Cymontkowski <srtpioneer@proton.me>
SRTPioneer
force-pushed
the
test/kmreq-long-horizon-replay-112
branch
from
December 4, 2026 22:24
33ab6f6 to
de59ff5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves the compatibility-boundary decision and live-UDP runtime qualification checklist for long-horizon
KMREQ/KMRSPreplay protection.Closes #112
Compatibility-Boundary Decision
SRTO_ROBOTWEAX_SESSIONAUTH = false) intentionally preservesdraft-sharabayko-srt-01/ Haivisionv1.5.xwire compatibility (KEKI == 0, unauthenticatedSRT_CMD_KMREQ/SRT_CMD_KMRSP) and therefore provides bounded-history replay rejection plus recovery on subsequent legitimate rotation, not unbounded key-epoch freshness.KMREQ/KMRSPreplay protection opt into one of the authenticated profiles:SRTO_ROBOTWEAX_SESSIONAUTH(Caller/Listener,AES-CTRorAES-GCM)SRTO_ROBOTWEAX_PEERAUTH(Caller/Listener,AES-GCM, plus Backup groups when enabled)SRTO_ROBOTWEAX_ACP1_REQUIRED(Caller/Listenerv3, Rendezvousv4, Broadcast/Backup Groupsv5, Group Rendezvousv6,AES-GCMmandatory)Runtime Qualification Added
robotweax_srt_kmreq_long_horizon_tests(tests/test_kmreq_long_horizon_replay.cpp, runs in default and sanitizer CI):SRTO_ROBOTWEAX_SESSIONAUTH(AES-CTRandAES-GCM): drives>= 40live loopback UDP rotations (SRTO_KMREFRESHRATE = 8,SRTO_KMPREANNOUNCE = 2), replays captured rotation-10x7f03/0x7f04, and verifies zero receive-key disruption, 100% byte-exact bidirectionalDATAdelivery,pktRcvUndecryptTotal == 0, and clean subsequent rotations.KMREQ/KMRSPretries and dropped-KMRSPresponse matching remain idempotent without key rollback.0x7ffffff0 -> 0x00000010) combined with>= 40rotations, stale0x7f03/0x7f04replay, legacy bare-KMREQinjection, and strict fail-closed negotiation in both directions without downgrade.SRTO_ROBOTWEAX_SESSIONAUTH = 0,AES-CTRandAES-GCM): verifies short-horizon replay rejection (<= 4rotations) with uninterruptedDATAdelivery, and post-eviction (>= 36rotations) safe behavior / recovery without crash, hang, or memory corruption.robotweax_srt_acp1_kmreq_long_horizon_tests(enabled withROBOTWEAX_SRT_ENABLE_EXPERIMENTAL_ACP1=ON, runs inexperimental-acp1.yml):>= 36-rotation0x7f05KMREQ/KMRSPreplay rejection across Caller/Listener (v3, plus stale inner0x7f03re-wrapped inside a fresh outer0x7f05ctrl_seq), Rendezvous (v4), Broadcast & Backup Groups (v5, including per-member key/counter isolation and cross-member replay rejection), and Group Rendezvous (v6).peer_auth_kmreq_long_horizon_replay_preserves_key_and_data(tests/test_peer_authentication_exchange.cpp, enabled withROBOTWEAX_SRT_ENABLE_EXPERIMENTAL_PEERAUTH=ON, runs inexperimental-peerauth.yml):>= 40-rotation0x7f03/0x7f04replay rejection over loopback UDP inSRTO_ROBOTWEAX_PEERAUTH(AES-GCM).Documentation Updated
docs/encryption.md(explicit#112compatibility boundary + opt-in profile matrix)docs/session-authentication.md(unbounded monotonic counter scope & link to compatibility boundary)docs/experimental-acp1.md(compatibility boundary &v3–v6long-horizon qualification summary)docs/testing.md(references to the new checked-in live-UDP long-horizon regression suites)Local Verification
-Werror):ctest -R "kmreq_long_horizon|session_auth"— 3/3 PASS.ASan+UBSanbuild (ENABLE_AEAD_API_PREVIEW=ON,ACP1=ON,PEERAUTH=ON,-Werror,UBSAN_OPTIONS=halt_on_error=1):ctest -R "kmreq_long_horizon|acp1_kmreq|session_auth"— 4/4 PASS;peer_auth_kmreq_long_horizon_replay_preserves_key_and_data— PASS.clang-format --dry-run --WerrorPASS;python3 tests/package_consumer/check_documentation.py .PASS (111Markdown files).