API Gateway

API gateway request path and coverage gaps explained

An API gateway is infrastructure that happens to enforce security, not a security product. Treating it as one is how teams end up with a hardened front door and an unlocked side entrance.

  • Glossary
  • Application

The short answer

An API gateway is a single entry point that sits in front of backend services. It routes requests, enforces authentication, applies rate limits, transforms payloads, manages versions and produces logs. It centralises concerns that would otherwise be duplicated in every service, which is a strong architectural reason to run one and a weak reason to consider your APIs protected.

The distinction matters because the gateway only sees traffic that goes through it, and it only checks the things it was told to check.

The six API gateway functions

FunctionWhat it does
RoutingDirects a request to the right backend service, hiding internal topology from clients
AuthenticationValidates tokens, keys or certificates once, so each service does not reimplement it
Rate limiting and quotasCaps request volume per client, protecting backends from overload and abuse
TransformationReshapes requests and responses between what clients send and what services expect
VersioningRuns multiple API versions side by side so consumers migrate on their own schedule
ObservabilityProduces a consistent log and metric stream, which is what makes correlation possible later

What an API gateway does to a request

Client App, partner, bot GATEWAY Authenticate Who is calling? Rate limit How often? Route Which service? Backend service Decides what you may see The gateway confirms who is calling. Only the service knows whether that caller should see this particular record.

What an API gateway does not catch

GapWhy the gateway misses it
Shadow and undocumented APIsEndpoints deployed outside the API gateway are invisible to it, which is why external discovery keeps finding them
Broken object level authorisationA valid token requesting someone else’s record looks like a legitimate request. Only the service knows it is not
Excessive data exposureAn endpoint returning more fields than the client needs passes through untouched
Business logic abuseSequences of individually permitted calls that add up to something the design never intended
Internal service trafficService to service calls that never traverse the gateway carry none of its policy
Schema driftA new parameter shipped on Friday is not in the gateway’s definition until someone updates it

Authentication is not authorisation

Nearly every serious API breach of recent years turns on this. The gateway confirmed a valid token, then a service returned data belonging to a different customer because the object level check was missing. Broken object level authorisation sits at the top of the OWASP API Security Top 10 precisely because it is invisible at the edge. A gateway cannot fix it, and a gateway vendor cannot claim to.

API gateway, WAF and API security

API gatewayWAFAPI security
Primary jobManage and route trafficBlock known attack patternsUnderstand the API and how it is being used
Knows your endpointsOnly those registered with itOnly those behind itDiscovers them, including unregistered ones
Checks payload validitySchema, if configuredAgainst attack signaturesAgainst learned normal behaviour
Catches logic abuseNoRarelyThis is the point of it
You need it becauseArchitectureVolume of generic attacksThe gaps the other two leave

They stack rather than compete. Run an API gateway because managing routing, auth and rate limits in one place is good engineering. Add protection layers because the gateway was never designed to answer the question of whether a well-formed, authenticated request is legitimate.

How Osto approaches API gateway gaps

Osto is not an API gateway and does not replace one. Keep whichever you run. What Osto adds is the layer the gateway leaves uncovered.

Applications and APIs are discovered automatically, which matters most for endpoints that were never registered with a gateway in the first place. The engine learns URLs, parameters and HTTP methods for each application and generates a positive security policy from observed behaviour, so validation reflects what the API actually does rather than what a specification claims. Input validation, parameter type enforcement, cookie and session protection, file upload checks and protection against parameter pollution and forced browsing all apply to traffic the gateway would have passed on. Policy recommendations continue as the application changes, which addresses the schema drift row above. Requests correlate in the same SIEM as identity and endpoint events, so an unusual API call pattern can be read alongside the login that preceded it.

Platform walkthrough

Including the endpoints nobody registered

Automatic API discovery with a positive security policy generated from observed behaviour, not from a spec that drifted. Keep your gateway. One owner, one dashboard.

Book a demo

Auto-discovery, auto-protection · No hand-written rules · One platform, everything

Frequently asked questions

What is an API gateway?

A single entry point in front of backend services that routes requests, enforces authentication, applies rate limits, transforms payloads, handles versioning and centralises logging. It removes the need for every service to implement those concerns separately.

Is an API gateway a security tool?

Partly. It enforces authentication and rate limiting, which are security functions, but it is designed as traffic infrastructure. It cannot see endpoints deployed outside it and cannot judge whether an authenticated request should be allowed to access a particular record.

What is the difference between an API gateway and a WAF?

A gateway manages and routes API traffic. A WAF inspects traffic for attack patterns and blocks them. They address different problems and are commonly deployed together, often with the WAF in front.

Do we still need API security if we have a gateway?

Yes. The most damaging API failures are broken object level authorisation, excessive data exposure and business logic abuse, none of which a gateway detects. Shadow endpoints outside the gateway are also a frequent finding.

Which API gateway should we use?

It is an architecture decision rather than a security one, driven by your cloud provider, traffic profile and how much routing logic you want to centralise. Whichever you choose, the coverage gaps described above are the same.