Repository navigation
feat(masque)!: Ship a public listener instead of a Service - #1529
Conversation
90be940 to
ca46287
Compare
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.
ca46287 to
f8f3053
Compare
scotwells
left a comment
There was a problem hiding this comment.
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.
|
You're right: a pod started with
The branch also merges |
ecv
left a comment
There was a problem hiding this comment.
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::/10for 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
getonedgeservicesandresourceNames: [masque-ingress], bound to the provider ServiceAccount. No wildcards, no secrets, no cluster scope. - Flags match the provider code:
--listener-service=galactic-system/masque-ingressis added,--listenstays at its:8443default, and the EdgeProvider gainsSocketAccessandPublicListener. - 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
clientPoolare 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
PublicServicerules 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.
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