Triage #403 findings: close replay-protection test gap, defer/redirect the rest to scoped issues - #491
Merged
Conversation
Co-authored-by: muke1908 <20297989+muke1908@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
muke1908
August 29, 2026 21:29
View session
muke1908
marked this pull request as ready for review
August 29, 2026 21:30
|
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.



Issue #403 flagged eight E2EE concerns (RSA usage, MITM, unencrypted files, metadata leakage, no identity verification, replay attacks, etc.). Re-auditing against current
master, most bullets are already resolved by prior work (RSA removal, pluggableEncryptionStrategy, invite secret confined to the URL fragment, chatReplayGuard) — only WebRTC signaling replay protection lacked test coverage, and two items (identity verification, forward secrecy) needed to be split into their own scoped issues rather than bundled into a "redo the protocol" effort.Test coverage
service/src/sdk.test.tsconfirmingisStaleSignal/lastSignalSeqByCallreject duplicate and out-of-order sequence numbers on incoming WebRTC signaling envelopes, mirroring the existing chat-message replay test.Metadata audit
socket.ts/sdk.tswire payloads; found no avoidable plaintext beyond what routing requires (chatJoinPayloadTypealready omitsuserName, envelopes carry onlyversion/strategy/opaquedata).Issue triage (no code changes needed)
EncryptionStrategyinterface rather than a bolted-on scheme.No production code was changed — the signaling replay logic was already correct, only its test coverage was missing.