Qualify exposure source policies
This guide is for platform operators preparing client IPv4 restrictions for direct LoadBalancer Services, shared Gateway routes, and Floating IPs. The chart keeps availability flags disabled by default. Published controller artifacts and saved CIDRs do not establish installation qualification.
For tenant manifests and list semantics, see Service exposure and Floating IP client restrictions.
Controls and their scope
These chart values control source policies:
| Chart value | Purpose |
|---|---|
manager.fipSourcePolicy.enabled | Enable Floating IP source enforcement after traffic and lifecycle acceptance |
manager.fipSourcePolicy.namespaceUIDs | Optionally limit restrictive Floating IP qualification to exact current namespaces |
backend.exposureSourcePolicy | Publish console/API availability for each qualified method; these flags do not configure OVN or Envoy |
backend.managedK8sPublicAPISourcePolicy | Offer client IPv4 restrictions on the public HTTPS API endpoint of Managed Clusters; backend.managedK8sPublicAPISourcePolicyNamespaces optionally limits it to listed Project namespaces. Enable it only after you verify the k8-manager and core versions, Gateway publication, and that the original client IP is preserved |
manager.defaultTLSIssuerRef | Select the platform issuer for Service certificates, for example ClusterIssuer/letsencrypt-prod-http |
Floating IP availability requires its enforcement gate. A Service with both a Gateway route and a direct LoadBalancer needs acceptance of both paths before publishing its client-list control. Keep unsupported consumer modes unavailable.
Tenant routes and certificates
Tenants never write routes on the shared Gateway. A Service with
service.nlb.kube-dc.com/expose-route gets its route from the platform
controller. Project roles grant only read access to httproutes, grpcroutes
and tlsroutes. Two always-on ValidatingAdmissionPolicies apply in Project
namespaces:
| Policy | Rule |
|---|---|
kube-dc-tenant-service-exposure | Only the core controller changes the enforcement acknowledgment, hostname ownership and service.nlb.kube-dc.com/route-state annotations; the HTTPS redirect annotation must be valid |
kube-dc-tenant-certificate-issuers | Tenant Issuers cannot solve ACME HTTP-01 on the platform Gateway, and tenant Certificates cannot use ClusterIssuers |
An HTTP-01 Issuer on the platform Gateway or a platform ClusterIssuer in tenant hands would issue certificates for hostnames the tenant does not own. Tenants keep dns01, CA, self-signed and own-ingress HTTP-01 Issuers. The policies only check creation and spec changes, so they don't affect Issuers created before the upgrade. Before publishing Gateway availability:
- Set
manager.defaultTLSIssuerRefto the platform ACME ClusterIssuer. The controller then issues every Service certificate from it. - Confirm that each Service certificate references that issuer and is Ready.
- Retire Project Issuers with HTTP-01 solvers. The inventory helper lists
HTTP01 certificates and their issuers. Move tenants with their own
Certificates on such an Issuer to
expose-routefirst.
A tenant tls-issuer annotation can still name the tenant's own Issuer. The
controller uses the default instead when the annotation names a ClusterIssuer
that isn't ACME, a Project Issuer that solves HTTP-01 on the platform Gateway,
or a Project Issuer that no longer exists. Without a configured default, a
Project Issuer name is kept.
A ManagedCertificate is issued by the manager, which the policy exempts. Its
admission limits public names to the Organization's
spec.security.certificateDomains[].publicDnsNames, which allows no names by
default.
Restricted exposures in tenant ListenerSets
With listenerPlacement: listenerset (see
Where tenant hostnames get their listener),
restricted exposures get their listeners in tenant ListenerSets too. Tenants
see the wait on the Service as route state Waiting, reason Policy.
- Restricted HTTPS. The source policy targets the exposure's HTTPRoute, so
it covers the route on a ListenerSet parent as it does on the Gateway. The
route forwards nothing until Envoy Gateway reports the policy
Acceptedfor the route's parent at the policy's current generation. - Restricted TLS passthrough. The policy targets the listener. A new
listener in a set is created closed to tenant routes, the policy is pointed
at it, the listener opens once the policy is
Acceptedfor it, and the route attaches once the listener isProgrammed. When an organization migrates, a policy that is never confirmed on the new listener leaves the listener on the Gateway, serving as before. During the hand-over, allowed clients can lose service for a few seconds; a denied client is never answered.
Refusals (Refused with HostnameTaken, HostnameLimit,
DomainNotVerified or PlatformName) and the organization's custom hostname
limit apply to restricted exposures as to open ones; see the reasons in
Service exposure.
Qualify the ListenerSet path like the Gateway path: test allow and deny for a restricted HTTPS and a restricted TLS passthrough exposure whose listener is in a tenant set, and check that the policy's status names the set as an ancestor.
Gather inventory
Run the read-only helper with an explicitly selected installation:
Install Python 3 and kubectl, run from the repository root, and set
INSTALLATION_KUBECONFIG to the reviewed kubeconfig path.
python3 hack/audit-exposure-installation.py \
--kubeconfig "$INSTALLATION_KUBECONFIG" \
--output /tmp/exposure-installation-inventory.json
The helper exports no Secret data. Its report includes configured shared-Gateway parent paths through Gateway, ListenerSet and XListenerSet references, current Service UID ownership, HTTP01 certificates and unresolved issuers, manager Pods, configured controls, and address-pool capacity. Missing, cyclic and unsupported parent references remain findings, including when another parent reaches the shared Gateway. Parent reachability does not prove Accepted or Programmed status, listener permission, or a serving ingress path. Candidate namespace pins require operator review. Missing-parent findings cover ListenerSet/XListenerSet references; other Gateway parents are outside the shared-Gateway audit target.
The report lists the tenant exposure policies and whether a legacy route guard webhook is still registered. The GET sequence is not an atomic snapshot. Compare resource versions and audit start/end times. The helper does not perform admission or packet acceptance.
Accept the installation
- Record immutable core, chart, producer and UI/backend revisions and digests. Deploy the compatible core before a producer that delegates route ownership.
- Test tenant writes: route writes are forbidden, and forged acknowledgments, HTTP-01 Issuers on the platform Gateway and ClusterIssuer Certificates are denied. Verify that platform producers and Service certificate issuance and renewal still work.
- Test allow and deny from independent client networks on every offered public,
cloud, primary, secondary and ingress path. Verify the observed client address
and reject forged forwarding headers. Test omission, empty lists, explicit
/0, malformed lists, and IPv6 or dual-stack bypasses. - Exercise creation, tightening, clearing and deletion under traffic. Include controller restart, dataplane failure, stale or missing policy evidence, address reuse and normal cleanup. Retain failed samples and establish their cause before closing a gate.
- Qualify each managed consumer with its real protocol, TLS trust, bindings and private transports. Test migration and rollback with existing restrictions. Do not transfer acceptance from one producer revision or network topology to another.
- Publish only the accepted availability flags and namespace scopes. Confirm the console, API, CLI, tenant documentation and agent skills agree with the installation's supported methods.
Check address-pool headroom
Check physical address-pool headroom as well as Organization quota before you
allocate a test EIP. The external-subnet allocator keeps one address in reserve,
because status updates and concurrent allocations can race for the last address.
A known v4availableIPs value of zero or one blocks any further allocation. Before you
request one EIP, confirm that the selected subnet reports at least two available
addresses. This check is advisory and does not reserve an address.
A quota increase alone does not add routed addresses. Deleting a Floating IP frees its address only when the associated EIP allocation is also released.
Roll back
On rollback, preserve restrictive intent, current ownership and normal cleanup. Disabling a console availability flag alone neither removes nor proves retention of a dataplane policy. Inspect the actual routes, listeners, policies and packets.
Before you downgrade or disable a gate, inventory the restricted resources. Keep a controller that enforces them, or withdraw their external exposure. Verify that the exposure is unreachable before you install an older version. Never delete protection while a restricted endpoint is still reachable.