Prepare the identity and trust configuration described in the
MeshIdentity migration. Give the new egress proxies an
issuing identity, and prepare permissions for the clients that connect to them.
Don’t complete the application identity rollout before deploying egress. Workloads using
MeshExternalService need mesh-scoped zone egress when they switch to MeshIdentity. Deploy
and validate the egress first, then switch a canary client and test its external-service calls
before migrating the remaining clients.
Check that every external destination is a MeshExternalService. The new egress doesn’t
serve legacy ExternalService configuration. Verify the destination endpoints and upstream TLS
settings rather than copying only the service name.
Prepare policies that select the new Dataplane resources, using the computed ingress or egress
role labels and, where needed, a zone label and listener sectionName. For more information, see
Proxy and traffic selection.
For egress, apply explicit MeshTrafficPermission allows for the required callers and
destinations. Without a matching allow, egress denies traffic. A legacy mesh-wide external-access
toggle isn’t a replacement for these permissions. Each destination is matched by its SNI, which
you can read from the snis field of the MeshExternalService before the egress exists. See
Authorize zone proxy traffic
for the format and examples.
Review existing broad allows and denies too. A MeshTrafficPermission with kind: Mesh, or no
targetRef, on the global control plane or in the system namespace also selects the egress
listeners. A mesh-wide allow, such as the SPIFFE prefix allow from the
MeshIdentity migration,
then lets its callers reach every external destination, and a narrower egress allow has no
effect. To keep a broad workload allow off the egress, scope it to the workloads:
- On Kubernetes, create it in each application namespace instead of the system namespace. A
workload-owner policy only reaches proxies in its own namespace, so it doesn’t select the
zone proxies. For more information, see Policy scope.
- On Universal, every policy is
system. Select the workloads with targetRef.kind: Dataplane
and labels that zone proxies don’t have.
For example, this policy allows every caller in the trust domain to reach the workloads in the
orders namespace, without selecting the zone proxies:
apiVersion: kuma.io/v1alpha1
kind: MeshTrafficPermission
metadata:
name: allow-mesh-to-orders
namespace: orders
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Mesh
rules:
- default:
allow:
- spiffeID:
type: Prefix
value: spiffe://default.zone-1.mesh.local
Then allow the egress traffic you want with a separate policy that selects the egress listener.
Keep permission enforcement for cross-zone workload traffic on the destination workload
proxy. The new ingress forwards workload mTLS without terminating it; assigning ingress an
identity doesn’t make it authenticate the original caller.
Prepare the policy form supported by your transition release. Coordinate any later 3.x schema
rewrites with the policy migration guide.