Repository navigation
test(masque): Prove MASQUE through the public listener on the lab - #1530
Conversation
The MASQUE service had no lab proof that a client off the fabric reaches it through the cell's public listener. TestMASQUEPublicListener, run by task verify:masque-listener, deploys the provider with the public-listener component on the gvpc lab and checks from the remote host that edgeprobe connects over HTTP/3 and HTTP/2, over IPv6 and IPv4, exchanging 1280-byte packets with a workload in the client's gVPC. It checks HTTP/2 again with the client's UDP/443 blocked, after an HTTP/3 attempt fails, and that the provider pod uses no host namespace, hostPath or added capability. The lab's galactic-controller gains the ingress flags: masque gets identity 96 in fd00:ed96::/48, and listener addresses come from dfw's gateway VIP prefixes. The test pins the VIPs to the gateway that is not the backend's node, reads the ingress gVPC's UID and /64 before the first apply, and removes everything it created. The acceptance matrix gains rows M21 to M23.
79a74d7 to
61c1e40
Compare
scotwells
left a comment
There was a problem hiding this comment.
Cleanup deletes both VIP routes even if setup failed before the test installed either one. It also deletes any pre-existing route that pin replaced. Please track which routes the test changed and restore their prior state, including on partial setup. Then attach the lab result: the green CI checks don’t run this public-listener test.
Cleanup deleted both VIP host routes on tr1 whether or not setup had pinned them, and deleted a route the pin had replaced instead of putting it back. pin now records the route tr1 held before its first change to each VIP, and unpin restores those routes, newest first: the route it replaced, or none. A setup that fails before pinning leaves tr1 alone.
|
Cleanup is fixed in eaa6f97. The lab result is not attached yet. This test could not serve on the lab until #1527 landed, and the shared lab is reserved right now for the #1511 run, which includes |
ecv
left a comment
There was a problem hiding this comment.
Approve.
The test asserts real delivery through the listener from an off-fabric host, and the lab overlay uses the shipped component unmodified apart from the per-cell values it must patch. It does not test refusal, which is the gap to follow up.
- Not vacuous: each of HTTP/3 and HTTP/2 over IPv6 and IPv4 goes through
requireDelivered, which needs the negotiated protocol to match, at least 90% of 1280-byte echoes from a gVPC workload, and no stray replies. It also requires the pinned gateway's rule counter for the VIP to increase, so a different gateway or a local path cannot satisfy it. - UDP-blocked row proves its own premise: HTTP/3 must fail with UDP/443 prohibited before HTTP/2 is accepted.
- Overlay fidelity:
provider-listenerincludescomponents/public-listeneras shipped and patches only the listener addresses, plus the EdgeService UID and pool at runtime, which the real component also requires. The lab controller gets--edge-ingress-*flags the production cell needs too. The VIP pinning on tr1 and the dependency on gateway local delivery (#1526) are lab-only, and the test says so. - Missing negatives: no client with a wrong-CA or unauthorized credential is refused through the listener (the
otherCAis created but not used here), and nothing shows that traffic outside the gVPC or on other ports of the VIP is unreachable. TheTestMASQUEServicerows may cover these on the pod path, not through the listener. - Not run here. I only read the diff; the edgeconformance tests need the containerlab environment, and no local build or test was run.
Follow-ups:
- Add a row where a client presenting a credential from
otherCA, or one for another VPC, is refused through the VIP, and one that a non-443 port on the VIP gets no answer. - Add
verify:masque-listenerto a scheduled lab run so listener delivery is not proved only once by hand.
Summary
Nothing proves yet that a client off the fabric reaches the MASQUE service through the public listener. This adds that lab test: HTTP/3 and HTTP/2 over IPv6 and IPv4 with full-size packets, HTTP/2 with the client's UDP blocked, and an unprivileged provider pod. It is the last of three PRs, on top of #1529, and stays a draft until it has passed on the lab, which needs #1527 first.
Fixes #1512
Test plan