The MeshIdentity resource gives each workload an identity and a certificate.
Kong Air runs in one zone for now, so this guide uses the Bundled provider with autogenerate.
With this setting, the zone control plane generates its own certificate authority (CA).
For other providers, see Providers.
For trust across zones, see Multi-zone meshes.
-
Create a MeshIdentity that issues certificates to every workload in kong-air-mesh:
echo 'apiVersion: kuma.io/v1alpha1
kind: MeshIdentity
metadata:
name: kong-air-identity
namespace: kong-mesh-system
labels:
kuma.io/mesh: kong-air-mesh
spec:
selector:
dataplane:
matchLabels:
kuma.io/mesh: kong-air-mesh
provider:
type: Bundled
bundled:
insecureAllowSelfSigned: true
autogenerate:
enabled: true
meshTrustCreation: Enabled
spiffeID:
path: /ns/{{ .Namespace }}/sa/{{ .ServiceAccount }}' | kubectl apply -f -
-
Wait for the MeshIdentity resource to be ready:
kubectl wait meshidentity kong-air-identity -n kong-mesh-system \
--for=condition=Ready --timeout=60s
The zone control plane then sends each sidecar its certificate over xDS, so you don’t need to restart the workloads.
-
Check that each data plane proxy received its certificate from kong-air-identity:
kubectl get dataplaneinsights -n kong-air-production -o yaml | grep -A4 issuedBackend
The output shows one entry for each data plane proxy.
The kong-air-identity resource gives every workload a Secure Production Identity Framework for Everyone (SPIFFE) ID.
The ID path contains the workload’s namespace and Kubernetes service account:
spiffe://kong-air-mesh.zone1.mesh.local/ns/kong-air-production/sa/check-in-api
spiffe://kong-air-mesh.zone1.mesh.local/ns/kong-air-production/sa/flight-control
spiffe://kong-air-mesh.zone1.mesh.local/ns/kong-air-production/sa/passenger-portal
Now that every proxy has a workload identity, the Kong Air proxies change behavior in two ways:
- Every inbound runs in
Strict mode, so it accepts only mTLS connections.
- Every inbound denies callers that no
MeshTrafficPermission allows.
No MeshTrafficPermission exists yet, so check-in-api now rejects flight-control with 403 Forbidden.
For more information, see Identity requirements.