Slide 25 of 28
Part 4 · PreventionSlide 25
Slide 25 · MIT 07
API gateway as single entry point — the chokepoint that enforces visibility and control.
Nothing reaches a backend service without passing through the gateway. Inventory becomes complete. Controls become centralized.
What an API gateway enforces

An API gateway (Kong, AWS API Gateway, Azure APIM, Apigee, Nginx, Traefik) sits in front of all backend services. Every external request goes through the gateway. The gateway enforces: authentication (valid token required), rate limiting (per consumer), routing (only to registered services/versions), logging (all requests centrally logged), and policy (WAF rules, CORS headers, TLS).

Without a gateway (direct access)
Backend services directly internet-accessible
Each service implements auth independently
A new service deployed without auth = exposed
Old API version still responding = accessible
Logs distributed across services — no central view
With a gateway (single entry point)
Only the gateway is internet-accessible; backends are private
Auth enforced at gateway for all routes
New service only accessible after gateway registration
Old version blocked at gateway without touching the service
All requests logged centrally through the gateway
The inventory benefit

A properly configured API gateway makes inventory management tractable: the gateway’s registered routes are the inventory. A service that isn’t registered with the gateway can’t be reached from the internet. The gateway becomes the authoritative source of truth for what’s accessible — and discovery scanning compares live traffic and gateway registrations to catch anything that bypasses it.

💼 Business takeaway

Ask your architecture team whether all external API traffic flows through a single gateway. If individual backend services can be reached directly from the internet without going through the gateway, your security controls have blind spots.

← Back The matrix →