Repository navigation
Labels
Description
Summary
The MASQUE provider on main already serves managed endpoints, which the managed gateway endpoints design in datum-cloud/connect depends on:
MASQUEEndpointregisters a hostname, provider, revision and certificate on existing provider capacity.- The endpoint registry picks each hostname's certificate by SNI. It also refuses any CONNECT request whose authority and SNI don't match a valid entry, over both HTTP/3 and HTTP/2.
- A grant is bound to one endpoint and one VPC by name (
pkg/masquegrant). A single connection can carry several CONNECT-IP streams, each with its own grant and VPC. - Each replica reports the endpoint and certificate revisions it applied in
status.instances[], after checking its EdgeInstance and Lease.
These were merged without an issue under #970. Unit and envtest suites cover them, but no lab run has shown them working together, and the latest release does not include them.
Gaps
- No lab test serves two endpoints on one listener with independent certificates, or one connection carrying streams to two VPCs under separate grants.
- No lab test rotates an endpoint's certificate or disables an endpoint and then checks the per-instance status and the effect on traffic.
- Instance status names an instance
ei-<pod UID>(controller.go#L228). The design treats this as an implementation detail to settle before status can be said to hide internal UIDs.
Acceptance criteria
- A lab test serves two
MASQUEEndpointhostnames on one listener. It passes only if each hostname presents its own certificate, and a grant for one hostname is refused on the other over both HTTP/3 and HTTP/2. - A lab test opens two CONNECT-IP streams to two VPCs over one connection. It passes only if each stream reaches only its own VPC, and revoking one grant ends only that grant's stream.
- A lab test changes an endpoint's certificate revision and then disables the endpoint. It passes only if every serving instance reports the new revisions, existing streams drain on disable, and new requests for that hostname are refused.
- With two provider instances serving one endpoint, status shows each instance's applied revisions separately, so one stale instance is visible (builds on test(edge): Prove public listener failover with two instances #1532).
- Instance naming in
status.instances[]is either changed so it no longer carries the pod UID, or documented as an accepted exposure in the provider docs.
Out of scope
- Shipping these features in a tagged release and enabling them on a cell. Those follow from this issue.
- Connect-side work: DNS, certificate issuance, distribution and readiness probes.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Low
Activity
privateip commentedon Dec 2, 2026
Checked against
mainat ca094e7. The gaps hold, so this issue stays open as valid work.tests/creates aMASQUEEndpoint. TheTestMASQUEServiceandTestMASQUEPublicListenerlab suites run one hostname with one certificate, and none of them rotates or disables an endpoint.controller.go#L228reportsinstanceNameasei-<pod UID>.masque-service.md#L174says "Status does not copy instance or pod UIDs", so the docs contradict the code.This is source inspection only. Nothing has been reproduced in the lab yet.
privateip commentedon Dec 2, 2026
Plan for this issue. It changes tests and docs only, with no runtime change.
Lab suite. Add
TestMASQUEManagedEndpointsintests/edgeconformance/masque_endpoints_test.goand averify:masque-endpointstask. The suite runs the provider at 2 replicas with 2MASQUEEndpointhostnames on one listener, each with its own certificate. It covers the first four acceptance criteria:status.instanceslists each instance's applied revisions separately, so a stale instance is visible.Instance naming.
instanceNamestaysei-<pod UID>. It is the EdgeInstance object name that readiness consumers use to find the instance and its Lease.docs/edge/masque-service.mdwill stop claiming that status hides pod UIDs and will record the name as an accepted exposure.Risk. No API or runtime behavior changes. The new suite reserves the shared lab like the other MASQUE suites.
Verification.
task ci, thenverify:masque-endpointsandverify:masque-serviceon the lab.privateip commentedon Dec 2, 2026
The lab run forced three changes to the plan:
deploy/containerlab/resources/masque-service/tenant-bindings.yamllacked themasque-provider-tenantbindings thatdocs/edge/masque-service.mdstep 4 requires. Without them the provider refuses every request with 503. The PR adds them, which also affectsverify:masque-serviceonmain.Results:
verify:masque-endpointspassed all 6 subtests.verify:masque-servicepassed 20 of 21 rows. Thediagnostics-walkrow read theno_leaseadmission counter as 0, but the provider loggedno_leaserefusals during the same step. This PR doesn't change that row.