Security, resilience and regulation

API security and zero trust between services

The perimeter is well defended. Behind it, though, services call each other on trust: anything inside the network can reach the customer database API, a forgotten test endpoint still accepts requests, and one compromised service could talk to dozens of others without anyone being asked. APIs are now the most common way into an application, and most of them assume the caller is friendly.

What does zero trust mean for APIs and service to service traffic?

Zero trust for APIs means no call is trusted because of where it comes from. Every request, from a partner, a mobile app, an AI agent or the service in the next container, must prove who it is, be checked against a policy for what it may do, and be inspected for malicious content before it reaches anything that matters.

In practice that needs two layers working together. A gateway at the edge of each domain authenticates callers, applies fine grained authorisation and blocks injection and malformed requests. A service mesh inside encrypts every connection between services with mutual TLS and permits only the connections you have explicitly allowed. Together they remove the trusted inside.

Zero trust at the edge and between services with KongA partner, a mobile app and an AI agent reach the Kong gateway at the edge, which authenticates with OpenID Connect, JWT or mutual TLS, authorises with OPA and ACLs and inspects with threat protection. Inside Kong Mesh, service A talks to service B over mutual TLS and to the database API, while a connection from service B to the database API is not allowed and is denied by default.KONG MESHPartnerMobile appAI agentKong Gateway at the edgeAuthenticate: OIDC, JWT, mutual TLSAuthorise: OPA and ACLs. Inspect: threatsService ASPIFFE identityService BSPIFFE identityDatabase APISPIFFE identityEvery hop proves who it ismTLSnot allowed
Illustrative. Nothing is trusted for where it comes from: every hop proves who it is and is allowed only what policy permits.

How Kong solves it

Kong at the edge and between services

Strong authentication

Kong’s OpenID Connect, JWT, OAuth 2.0 Introspection and Mutual TLS Authentication plugins verify every caller at the gateway, against the identity provider you already use.

Fine grained authorisation

The OPA plugin sends each request to Open Policy Agent for a decision, and ACLs restrict which consumers may reach which services, so authorisation is policy, not code scattered across services.

Threat protection

Injection Protection, JSON Threat Protection, XML Threat Protection, Request Validator and Bot Detection stop malicious and malformed requests at the gateway, and Kong’s premium partners add web application and API protection plugins.

Mutual TLS between services

Kong Mesh encrypts all service to service traffic with mutual TLS and gives each service a cryptographic identity, using SPIFFE identities in current versions.

Deny by default

Once mutual TLS is enabled, Kong Mesh traffic permissions deny connections unless a policy allows them, so a compromised service cannot reach anything it was not meant to.

Agents included

The same identity and authorisation applies to AI agents and MCP tool calls through Kong AI Gateway, so agents are never a trusted exception.

Sources: Kong, Plugin Hub; Kong, OpenID Connect plugin; Kong, Kong Mesh mutual TLS; Kong, Kong Mesh traffic permissions; Kong, premium technology partners.

What C4C does

Zero trust applied, not just described

Official Kong partner in the UK

We work through your API estate with the security team: which services are exposed, how callers are authenticated today, where authorisation lives and which connections between services are actually needed. Then we apply a baseline of mandatory policies at Kong gateways, introduce Kong Mesh where service to service traffic needs it, and move to deny by default in stages so nothing legitimate breaks.

Our wider security practice covers identity, endpoints and people, so API controls sit inside a zero trust approach for the whole organisation. As an official Kong partner in the UK we supply, implement and support Kong.

Talk to us

Remove the trusted inside

  1. Tell us how APIs and services are secured today and where you think the gaps are.
  2. We come back with a baseline policy set for the gateway, where a mesh is needed, and a staged path to deny by default.
  3. We implement it with your platform and security teams, stage by stage, without breaking legitimate traffic.

We reply within one working day. Prefer email? Write to us at hello@c4cgroup.co.uk.

Prefer email? Write to us at hello@c4cgroup.co.uk.

Questions

API security and zero trust: frequently asked questions

What is zero trust for APIs?

An approach where no API call is trusted because of its network location. Every request must authenticate, be authorised against a policy and be inspected, whether it comes from outside the organisation or from another internal service.

Do we need a service mesh for zero trust?

For traffic between services, a mesh is the practical way to encrypt every connection and allow only approved ones. Kong Mesh does that with mutual TLS and deny by default permissions. For traffic entering a domain, the gateway does the work.

Can Kong use Open Policy Agent?

Yes. Kong’s OPA plugin sends request details to Open Policy Agent and enforces its decision, so authorisation rules are written once as policy and applied at the gateway.

Does Kong include a web application firewall?

Kong includes threat protection plugins for injection, JSON and XML attacks, request validation and bot detection, and its premium technology partners provide web application and API protection plugins that run on the gateway.

Related Kong use cases

Further reading