- Inventory service-to-service access before enforcing new policy.
- Authenticate workloads and authorise each resource operation.
- Roll out policies with denial telemetry and tested credential rotation.
For platform engineers and security teams responsible for service access.
A private network can still contain a compromised workload. If that workload inherits broad access to databases, queues and internal APIs, the network boundary has not protected the resources that matter. Zero trust changes how those requests are evaluated.
The NIST architecture centres access decisions on resources, identity and context rather than implicit trust in network location. This guide turns that principle into an implementation sequence for a sample commerce platform with checkout, inventory and reporting services. It does not assume that installing a service mesh completes the work.
1. Inventory the resource and its legitimate callers
Start with one important resource, such as the order API. List every caller, the operation it performs and the business reason it needs access. Include deployment jobs, support tools, scheduled exports and emergency access. Traffic observation helps find dependencies, but observed traffic is not automatically authorised traffic.
Create an access matrix that distinguishes reads, updates and administrative actions. The reporting service may need order totals without customer contact details. The checkout service may create an order but should not alter archived audit records. These distinctions belong in policy and application authorisation, not just firewall rules.
Identify the control owner and a recovery route for each rule. Before denying anything, confirm how the system behaves if the identity provider or policy service is unavailable. “Allow everything during an outage” defeats the boundary; “deny everything” may require a carefully tested operational response.
2. Issue workload identities with a managed lifecycle
Use a workload identity that can be tied to the service and environment. Avoid one static credential copied into every container. SPIFFE defines identities and verifiable identity documents for workloads; an implementation also needs trustworthy registration, attestation and key handling.
Keep development, staging and production trust boundaries explicit. A service name alone is not enough if any workload can claim it. Verify the connection between the deployed workload, its runtime identity and the certificate or token it receives. Control who can create or modify those registrations.
Test rotation while requests are in flight. Confirm that clients reload credentials, expired identities stop working and clock errors produce diagnosable failures. Inventory long-lived credentials that remain outside the new system. Their presence can quietly preserve the broad access that the new design was intended to remove.
3. Separate encrypted transport from authorisation
Mutual TLS can establish the identities at both ends of a connection and protect traffic in transit. It does not decide whether a caller may refund an order or read another tenant’s data. Evaluate resource, method and account scope after authentication, using trusted identity attributes.
For a sample order API, start with an explicit matrix:
| Caller | Permitted action | Additional check |
|---|---|---|
| Checkout | Create an order | Account and cart ownership |
| Inventory | Update fulfilment status | Allowed state transition |
| Reporting | Read aggregate totals | No customer contact fields |
| Support | Request a refund | Role, amount limit and approval |
Reject missing identity and unknown actions by default. Log the policy version and decision reason without placing secrets or unnecessary personal data in logs. Keep administrative bypasses exceptional, time-limited and attributable to a person.
4. Add network controls as another boundary
Limit ingress and egress between workloads so an application bug cannot freely reach every internal destination. In Kubernetes, start from the flows your service genuinely needs, including DNS, telemetry and dependency endpoints. Test that the installed networking implementation actually enforces NetworkPolicy; creating a manifest alone is not proof.
The Kubernetes documentation explains the layer and scope of these controls. Network policy is useful for connection restrictions, while business authorisation still belongs closer to the resource. Do not expect a basic network rule to understand an order ID or a tenant claim.
Introduce rules in a test namespace first. Exercise readiness probes, scheduled jobs and failure recovery, not just a normal request. Restrict outbound access deliberately, then inspect blocked destinations. A forgotten certificate service or external callback can make a policy appear safe until a renewal or asynchronous job runs.
5. Stage enforcement and investigate denied requests
Where tooling supports it, evaluate proposed policies in audit mode and compare expected decisions with observed behaviour. Otherwise, use a representative test environment and a limited production cohort. Prioritise one resource and its callers rather than enabling an estate-wide deny policy in one change.
Build tests for wrong service identity, wrong tenant, expired credential, disallowed method and revoked access. Confirm that a denied request stays denied when retried through a different route. Include caches, background workers and direct database connections; they can bypass the API path you have carefully secured.
During rollout, group denials by caller, resource and policy version. Investigate whether the rule is wrong or a caller has an unnecessary dependency. Keep a documented rollback for the policy release, but record temporary exceptions with an owner and expiry date so they do not become permanent gaps.
6. Keep access correct as the platform changes
Review access whenever a service changes ownership, gains a new endpoint or moves between environments. Automate checks that compare deployed identities and policies with approved definitions. Remove identities for retired services and test that copied old credentials no longer work.
Run recovery exercises that include identity infrastructure, certificate expiry and emergency administrative access. Track the time to revoke a workload and the resources it could access before revocation. A high number of encrypted connections is not evidence that permissions are appropriately narrow.
Keep the first implementation small enough to explain in a diagram and an access matrix. Expand from that tested boundary. Our privacy-preserving identity guide addresses user authentication separately, while cybersecurity services can help map workload and resource controls.
Common questions
Does a service mesh provide zero trust automatically?
No. It can provide useful identity and transport controls, but you still need resource authorisation, account isolation, credential lifecycle management and an operational process for policy changes.
Should all internal traffic use the same credential?
A shared credential makes attribution and revocation difficult. Prefer identities scoped to the workload and environment, with permissions tied to the resource operations that workload needs.
What is a sensible first milestone?
Protect one important service with an access inventory, verified caller identities, operation-level policy, denial telemetry and a tested recovery procedure.
Sources & further reading
Primary documentation and research used for the technical context in this guide. Examples and checklists are illustrative; validate them against your system and the versions you deploy.
