A service mesh that was set to strict mutual TLS and default-deny at rollout rarely stays that way: namespaces are left permissive for a migration, port exceptions pile up, allow-all policies are added to fix an outage, and the mesh certificate authority quietly approaches expiry. This health check turns those risks into a recurring, measurable review with 12 scored metrics, a cadence, the data to collect and a findings log. It is vendor-neutral: the controls apply to sidecar and sidecarless meshes alike, and you map each metric to your own mesh's configuration objects and telemetry. It is written for platform engineering, application security, audit and the CISO's office. For design and rollout guidance, see the Service Mesh Security Guide; this page assumes the mesh is already in production.
What this health check covers
- Transport identity: mutual TLS mode per namespace and port, plaintext traffic in strict scopes, and workloads outside the mesh.
- Certificates and trust: root, intermediate and workload certificate lifetimes, expiry headroom, trust bundle content across clusters, and certificate authority key protection.
- Authorisation policy: default-deny coverage, allow-all and wildcard rules, policies keyed on network location instead of workload identity, and exceptions with no end date.
- Control plane: version currency, admin access to mesh configuration, and configuration drift against version control.
- Edge and egress: ingress and egress gateways, and outbound traffic that bypasses the mesh.
Out of scope: cluster hardening in general (see the Kubernetes Platform Health Check) and incident response (see If your service mesh is compromised).
Key takeaways
- Measure what the data plane reports, not what the policy says. A strict mTLS policy proves intent; destination-side connection telemetry showing the security mode of each connection proves enforcement.
- Treat permissive mode as debt with a due date. Every permissive namespace or port exception needs an owner and an end date, and the count should only go down.
- Track certificate expiry at every layer. Workload certificates rotate automatically, but roots and intermediates often do not, and an expired mesh root takes down every service at once.
- Default-deny is only as good as its exceptions. Count allow-all, wildcard principal and namespace-wide rules, because one broad rule can undo a namespace's default-deny.
- Every percentage comes with its count. 98% strict coverage can still mean one plaintext path into the payments service.
How to use this template
- Map the metrics to your mesh: for each metric below, write down the configuration object, command or telemetry query that produces it in your environment, and keep that mapping with the template so the next reviewer gets the same numbers.
- Agree the scope: list the clusters, meshes and namespaces in scope. Namespaces holding personal data, payment data, secrets or identity services are marked critical.
- Collect the data: pull configuration exports and at least 7 days of connection telemetry (30 days for the quarterly review) as described in "How to collect the data".
- Score: rate each metric green, amber or red using the thresholds. These thresholds are NHI Mgmt Group recommendations: adjust them to your risk appetite and record any change. A single red item in a critical namespace makes that metric red, whatever the overall percentage.
- Log findings: every amber or red result becomes a line in the findings log with an owner, a due date and the evidence file name.
- Sign off and compare: the platform owner and security lead sign the review. Compare with the previous review and explain any metric that got worse.
Cadence and sign-off
| Activity | Frequency | Owner | Evidence kept |
|---|---|---|---|
| Configuration validation and policy linting in the deployment pipeline | Every change | Platform engineering | Pipeline results per change |
| Plaintext-in-strict-scope and certificate expiry alerts | Continuous, reviewed weekly | Platform on-call | Alert history export |
| Exception register review (permissive scopes, port exceptions, broad allow rules) | Monthly | Platform owner with application security | Register snapshot with changes highlighted |
| Full metrics review (SM-01 to SM-12) and findings log update | Quarterly | Platform owner, signed by security lead | Metrics table with raw exports and queries used |
| Root and intermediate rotation rehearsal in a non-production mesh | Annually, and before planned rotation | Platform engineering | Runbook, timings, issues found |
| Independent sample test of policy enforcement | Annually | Internal audit or security testing | Test plan and results |
| Event-driven review | After mesh upgrade, new cluster joined, CA change or mesh-related incident | Platform owner | Before and after metrics |
Metrics
| ID | Metric | Formula | Data source type | Green | Amber | Red |
|---|---|---|---|---|---|---|
| SM-01 | Strict mTLS coverage | In-scope namespaces whose effective mTLS mode is strict ÷ all in-scope namespaces; report counts | Mesh authentication policy export (mesh-wide, namespace and workload level) | 100% of critical, 95% or more overall | Below 95% overall with dated exceptions | Any critical namespace not strict |
| SM-02 | Plaintext connections in strict scopes | Count of connections reported by the destination proxy without mutual TLS, into workloads whose policy is strict, over the review window | Data plane connection telemetry (security mode or principal field per connection) | 0 | Explained and below 10 connections, health checks only | Any unexplained, or any into a critical namespace |
| SM-03 | Port-level mTLS exceptions | Count of workload or port overrides that disable or relax mTLS; with age and owner | Authentication policy export | All have owner and end date in the future | Any past end date by under 30 days | Any without owner or end date, or past end date by 30 days or more |
| SM-04 | Workloads outside the mesh | Running workloads in in-scope namespaces with no proxy or mesh enrolment ÷ all running workloads | Cluster workload inventory compared with mesh proxy status | 0 unregistered | Registered exclusions only | Any unregistered |
| SM-05 | Root and intermediate expiry headroom | Days until the earliest expiry among mesh roots, intermediates and issuers, per trust domain | CA certificate inspection, certificate inventory | More than 180 days, rotation planned | 90 to 180 days | Under 90 days without a scheduled rotation |
| SM-06 | Workload certificate rotation health | Proxies serving a workload certificate older than the configured rotation point, plus certificate signing failures in the window | Proxy certificate status, control plane CA metrics and logs | 0 stale, failures under alert threshold | Stale certificates on non-critical workloads, resolved in the window | Stale certificates on critical workloads, or repeated signing failures |
| SM-07 | Default root still in use | Trust domains whose root is the mesh's self-generated default rather than an organisation-controlled CA | CA configuration, root certificate subject and issuer | 0 in production | Non-production only | Any production trust domain |
| SM-08 | Default-deny authorisation coverage | Namespaces with a deny-by-default authorisation baseline ÷ in-scope namespaces | Authorisation policy export | 100% of critical, 90% or more overall | Below 90% with plan | Any critical namespace allow-by-default |
| SM-09 | Broad allow rules | Count of authorisation rules that allow any source, any principal, a wildcard namespace or all methods and paths | Authorisation policy export, policy linting output | 0 outside registered public entry points | Registered with owner and end date | Any unregistered |
| SM-10 | Identity-based policy share | Allow rules keyed on workload identity (service account or SPIFFE ID) ÷ all allow rules; rules keyed only on IP ranges counted separately | Authorisation policy export | 90% or more | 70% to 89% | Below 70% |
| SM-11 | Control plane version currency | Mesh control plane and proxy versions within the project's supported releases, and days since last security patch was available but not applied | Control plane version output, proxy version inventory, project release notes | Supported, security patches applied within 30 days | Supported, patch older than 30 days | Unsupported release, or proxies on mixed unsupported versions |
| SM-12 | Configuration drift and change authority | Live mesh configuration objects that differ from version control; number of human identities able to change mesh-wide policy | Configuration export compared with repository, cluster RBAC bindings | 0 drift, mesh-wide write limited to pipeline and named admins | Drift explained by emergency change with ticket | Unexplained drift, or broad groups with write access |
How to collect the data
- Effective mTLS mode (SM-01, SM-03): export authentication policy at mesh, namespace, workload and port level and resolve the most specific one that applies. Most meshes have a command or dashboard that shows the effective mode for a workload; use it on a sample to confirm your resolution logic.
- Connection telemetry (SM-02): use destination-reported metrics or access logs, because the destination proxy knows whether the inbound connection used mutual TLS and which peer identity it presented. Source-reported data can miss traffic from workloads outside the mesh. Filter out known health check paths, and treat everything else as a finding.
- Mesh enrolment (SM-04): list running pods or workloads per namespace and compare with the proxies registered to the control plane. Workloads excluded by annotation or label must appear in the exclusion register.
- Certificates (SM-05 to SM-07): read the root and intermediate certificates from the CA configuration or secret store, record subject, issuer, not-after date and key algorithm, and check signing failures in control plane logs. Where workload identities follow SPIFFE, the X.509-SVID specification expects exactly one URI SAN carrying the SPIFFE ID and leaf certificates with the CA flag set to false; spot-check a few leaf certificates against that.
- Authorisation (SM-08 to SM-10): export authorisation policies and parse them for empty rule sets, wildcard sources and principals, and IP-only sources. Policy linting in the pipeline should already flag these; the quarterly review checks that nothing reached production by another route.
- Control plane (SM-11, SM-12): record control plane and proxy versions, compare with the project's supported release list, diff live configuration against the repository, and list role bindings that grant write access to mesh configuration resources.
- Multi-cluster trust: where clusters share a trust domain or federate trust bundles, record which roots each cluster trusts. A cluster still trusting a retired root is a finding under SM-05. See the SPIFFE and SPIRE Guide for federation concepts.
Red flags that need action now
Do not wait for the quarterly review if any of these appear. Raise an incident or a priority change.
- Plaintext connections into a critical namespace that is configured as strict.
- Mesh root or intermediate expiring within 30 days with no tested rotation plan.
- An allow-all or any-principal rule in a critical namespace that nobody can explain.
- Mesh-wide authentication policy changed to permissive or disabled outside a change.
- The CA signing key stored unprotected (for example in a widely readable secret) or accessible to identities outside the platform team.
- Control plane on a release that no longer receives security fixes.
- Admin audit events for mesh configuration changes missing from the SIEM.
Findings log
| Finding ID | Metric | Scope (cluster, namespace, workload) | Rating | Description and evidence file | Owner | Due date | Status |
|---|---|---|---|---|---|---|---|
| [YYYY-Qn-01] | [SM-03] | [cluster / namespace / port] | [Red] | [Port 9090 mTLS disabled since migration, no end date; export file name] | [Name] | [Date] | [Open / In progress / Closed / Risk accepted] |
| [YYYY-Qn-02] | [SM-05] | [trust domain] | [Amber] | [Intermediate expires in 120 days; rotation not scheduled] | [Name] | [Date] | [Status] |
Risk acceptance requires the security lead's signature, a review date no more than 6 months out, and a compensating control (for example network policy at the cluster layer while the mesh exception stands). See Kubernetes Network Policies vs Service Mesh Policies for how the two layers combine.
Remediation map
| Metric | Typical fix | Test before enforcing | Framework anchor |
|---|---|---|---|
| SM-01, SM-02, SM-03 | Move namespace to strict, enrol or replace plaintext clients, retire port exceptions | Watch destination telemetry for non-mTLS traffic for a week in permissive mode first; roll back by restoring the previous policy object | NIST SP 800-53 SC-8, IA-9 |
| SM-04 | Enrol workload or register a justified exclusion with compensating network policy | Enrol in a canary replica first | NIST SP 800-53 CM-8 |
| SM-05, SM-06, SM-07 | Replace default root with an organisation-controlled CA, schedule rotation with overlapping trust bundles, fix signing errors | Rehearse rotation in non-production; distribute the new root before switching issuance | NIST SP 800-53 SC-12, SC-17 |
| SM-08, SM-09, SM-10 | Add namespace deny baseline, replace broad rules with identity-scoped allows, replace IP-only rules | Use the mesh's audit or dry-run policy mode where available, and compare denied-request logs | NIST SP 800-53 AC-3, AC-4, AC-6 |
| SM-11 | Upgrade control plane, then proxies, within supported versions | Canary upgrade path per the project's upgrade documentation | NIST SP 800-53 SI-2 |
| SM-12 | Restore configuration from repository, restrict write roles to the pipeline and named admins | Dry-run apply and diff | NIST SP 800-53 CM-3, CM-5 |
In NIST CSF 2.0 terms the review supports PR.AA-05 (access permissions managed and reviewed), PR.DS-02 (data in transit protected), PR.PS-01 (configuration management) and DE.CM-01 (networks monitored). NIST SP 800-204A and SP 800-204B describe the mesh security model these checks test: mutual authentication between every pair of services and attribute-based access control enforced in the mesh rather than in application code.
Where identity fits
Every mesh workload certificate is a non-human identity, issued automatically and usually short-lived, but rooted in a CA key that is long-lived and highly privileged. The health check treats that CA key, the issuer credentials and the service accounts that map to mesh identities as part of the NHI inventory. See the Cloud Workload Identity Guide and the mTLS Guide.
Related guides
- Service Mesh Security Guide: design, mTLS modes, authorisation and control plane hardening.
- Service mesh rollout playbook: phased adoption before this check applies.
- If your service mesh is compromised: response when a red flag turns out to be an attack.
- Certificate lifecycle manager health check: the equivalent review for the wider certificate estate.
References
- NIST: SP 800-204A, Building Secure Microservices-based Applications Using Service-Mesh Architecture
- NIST: SP 800-204B, Attribute-based Access Control for Microservices-based Applications using a Service Mesh
- NIST: SP 800-207A, A Zero Trust Architecture Model for Access Control in Cloud-Native Applications in Multi-Cloud Environments
- SPIFFE: X.509-SVID specification
- NIST: SP 800-53 Rev. 5
- NIST: Cybersecurity Framework 2.0
Related NHI Mgmt Group resources: Service Mesh Security Guide · mTLS Guide · SPIFFE and SPIRE Guide · Kubernetes Platform Health Check · API gateway health check