Skip to content

feat(masque)!: Ship a public listener instead of a Service - #1529

Merged
privateip merged 3 commits into
mainfrom
fix/issue-1512-bundle
Nov 30, 2026
Merged

privateip merged 3 commits into
mainfrom
fix/issue-1512-bundle

Conversation

@privateip

@privateip privateip commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The MASQUE bundle ships a Service that every deployment has to expose by hand. It now ships no Service, and one opt-in component gives the provider pods a public IPv6 and IPv4 address through the cell's listener instead. An overlay that patched the old Service fails to build after upgrade, and the guide says how to keep a Service or move clients by DNS. This is the second of three PRs, on top of #1528, and ships without a staging soak because no cell deploys the MASQUE bundle yet.

Related to #1512

Test plan

  • An envtest case creates the component's policies, service and listener against the CRDs
  • The component renders with the provider base and its cert-manager component
  • Lint, build, unit, e2e and documentation checks pass
  • Lab tests through the public address (next PR)

@privateip privateip self-assigned this Nov 30, 2026
@privateip
privateip force-pushed the fix/issue-1512-bundle branch from 90be940 to ca46287 Compare November 30, 2026 14:12
@privateip privateip changed the title feat(masque): Ship a public listener instead of a Service feat(masque)!: Ship a public listener instead of a Service Nov 30, 2026
@privateip
privateip added this pull request to stack #1531 November 30, 2026 14:24
Base automatically changed from fix/issue-1512 to main November 30, 2026 14:36
The provider bundle shipped a ClusterIP Service that every deployment had
to expose itself. It now ships no Service. The new component
config/masque/provider/components/public-listener adds the ingress gVPC's
EdgeService with ingress and egress traffic policies, an EdgeListener for
UDP/443 and TCP/443 to port 8443, the provider's read access to that
EdgeService, --listener-service and a 40-second grace period. Without the
policies the EdgeService would deny all listener traffic. The overlay fills
in the ingress gVPC's UID and /64 and the cell's VIPs before the first
apply, since both EdgeService fields are immutable.

The masque EdgeProvider now lists SocketAccess/v1 and PublicListener/v1. A
cell without an ingress identity for masque gets an IngressIdentityMissing
event, which the guide documents as expected. An envtest case creates the
component's policies, EdgeService and EdgeListener against the CRDs. The
MASQUE service guide explains the setup and what a deployment that used
the old Service has to change. The design records Phase 5's provider and
bundle work, and its example EdgeListener ports now match the CRD:
lowercase protocols and no name field.

BREAKING CHANGE: config/masque/provider no longer ships the masque-provider
Service. An overlay that patches that Service fails to build, and one that
relied on it must add its own Service or include the public-listener
component.
@privateip
privateip force-pushed the fix/issue-1512-bundle branch from ca46287 to f8f3053 Compare November 30, 2026 14:36
@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.

The migration guide says to keep the old Service serving while clients move by DNS. Enabling listener mode on those same pods stops them listening on the pod network, so clients using the old Service can lose connectivity before DNS changes. Please document a cutover that keeps separate serving endpoints during the transition, or explicitly describe the downtime and rollback.

# Conflicts:
#	docs/designs/edge-public-listener.md
The guide said to keep the old Service serving while clients move to the
listener by DNS. A pod started with --listener-service stops listening on
the pod network, so the same pods cannot serve both, and clients that
still resolve the Service lose connectivity once the last old pod exits.

The guide now states that window and its bounds, gives the steps that keep
it to the DNS TTL, and describes the rollback.
@privateip

Copy link
Copy Markdown
Contributor Author

You're right: a pod started with --listener-service listens only on its listener attachment, so the same pods cannot serve the old Service and the listener at once. 745b3fd replaces that paragraph with a "Moving from a Service" section in docs/edge/masque-service.md, which:

  • states the window: it opens when the last pod without the listener terminates during the rollout, and it closes for each client when its DNS answer expires. Open tunnels on old pods end when those pods terminate, and the connectors reconnect.
  • gives the steps that keep the window to the DNS TTL: lower the TTL first, roll the pods to the listener with the Service still in the overlay, repoint DNS once the EdgeListener is Programmed, then remove the Service.
  • describes the rollback: remove the component, restore the Service, repoint DNS. The same window applies in reverse.

The branch also merges main, resolving the design doc's status line to keep both the #1526 sentence and the Phase 5 sentence.

@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 component ships the listener, EdgeService, two scoped policies and a get-only Role for the one EdgeService, and the earlier hold on the Service-to-listener cutover is addressed at this head.

  • Policy is not wider than the Service it replaces in what can reach the pod: the listener forwards only the two declared 443 ports to backend 8443, and the one extra ingress rule is TCP/8443 from fe80::/10 for the gateway health probe. match: {path: PublicService} carries no port or protocol of its own, so the port limit rests on the listener's NetworkServices, not the policy.
  • RBAC is a namespaced Role with get on edgeservices and resourceNames: [masque-ingress], bound to the provider ServiceAccount. No wildcards, no secrets, no cluster scope.
  • Flags match the provider code: --listener-service=galactic-system/masque-ingress is added, --listen stays at its :8443 default, and the EdgeProvider gains SocketAccess and PublicListener.
  • Migration is documented: the Service's removal is called out and "Moving from a Service" gives the DNS-TTL cutover and rollback. That answers the earlier review point that the same pods cannot serve both.
  • The placeholder UID and clientPool are immutable, so an overlay that misses the patch must delete and recreate the EdgeService. The envtest only proves the placeholders are admitted, not that an overlay patches them.

Follow-ups:

  • Narrow the two PublicService rules to the listener's TCP and UDP 443/8443 so the policy states the limit itself.
  • Make the Kustomize build fail when the placeholder UID (00000000-...) or documentation addresses reach an apply, for example a validation in the overlay check.
  • Real delivery is proved only by the lab test in #1530, which CI does not run.

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

Review and approved

@privateip
privateip merged commit 1257eb1 into main Nov 30, 2026
28 checks passed
@privateip
privateip deleted the fix/issue-1512-bundle 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.

3 participants