Repository navigation
test: Xray-core interop suite (REALITY PQ, XHTTP, ECH) and CI job - #25
Merged
Merged
Conversation
Go tests under test/interop (build tag interop, own stdlib-only module) run Citrus against a real xray binary on localhost: REALITY with ML-DSA-65 and the X25519MLKEM768 rule both ways, XHTTP modes, ECH with xray tls ech keys, plus wrong-key rejections. Keys come from xray x25519/mldsa65/uuid/tls ech; the REALITY target is a local TLS 1.3 server with a 4+ KB chain, the destination a local echo server. The workflow downloads Xray-linux-64.zip v26.10.10, checks its SHA-256 against the pinned value and the release .dgst, and runs one ubuntu job.
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.
Automated interop tests against a real Xray-core binary, replacing the manual live checks done for #8, #9, #10, #19 and #20.
test/interop/(own module, stdlib only, build taginterop)cd test/interop && XRAY_BIN=/path/to/xray go test -tags interop -v ./...(skips withoutXRAY_BIN; builds Citrus unlessCITRUS_BINis set;INTEROP_LOG_DIRkeeps logs and configs). Works on Linux and Windows.xray x25519,mldsa65,uuid,tls ech.finalRules: [{action: allow}].mldsa65Seedmldsa65-verifymust failmldsa65-seed+require-x25519mlkem768mldsa65Verifymust fail?query,x-padding-bytes "0-0"echServerKeys/ Citrusech-key)Local run on Windows: 18/18 as expected (13 pass, 5 expected rejections), ~21 s.
.github/workflows/interop.ymldev, weekly, and by hand..dgstand a hash written into the workflow (to catch a swapped release, not just a corrupted download).