Skip to content

test(masque): Prove MASQUE through the public listener on the lab - #1530

Merged
privateip merged 3 commits into
fix/issue-1512-bundlefrom
fix/issue-1512-lab
Nov 30, 2026
Merged

privateip merged 3 commits into
fix/issue-1512-bundlefrom
fix/issue-1512-lab

Conversation

@privateip

Copy link
Copy Markdown
Contributor

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

@privateip privateip self-assigned this Nov 30, 2026
@privateip
privateip added this pull request to stack #1531 November 30, 2026 14:24
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.
@privateip
privateip marked this pull request as ready for review November 30, 2026 15:10
@privateip
privateip requested a review from a team as a code owner November 30, 2026 15:10

@scotwells scotwells left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@privateip

Copy link
Copy Markdown
Contributor Author

Cleanup is fixed in eaa6f97. pin now records the host route tr1 held before its first change to each VIP. unpin restores only the routes pin changed, newest first: the replaced route when there was one, otherwise a delete. When setup fails before pinning, tr1 is left alone.

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 verify:masque-listener on this branch. I'll post the result here, including whether tr1's routes matched their prior state afterwards. Until then, the green CI checks cover only compile and lint for this test, as you say.

@privateip
privateip requested review from a team and scotwells November 30, 2026 15:47

@ecv ecv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-listener includes components/public-listener as 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 otherCA is created but not used here), and nothing shows that traffic outside the gVPC or on other ports of the VIP is unreachable. The TestMASQUEService rows 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-listener to a scheduled lab run so listener delivery is not proved only once by hand.

@privateip
privateip dismissed scotwells’s stale review November 30, 2026 16:11

Review and approved

@privateip
privateip merged commit 1257eb1 into main Nov 30, 2026
30 checks passed
@privateip
privateip deleted the fix/issue-1512-lab branch November 30, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serve MASQUE through a public listener

3 participants