liveBook · Manning

Network topology

As explained in Secure APIs

Network topology is the arrangement and connectivity relationships among networks, hosts, and communication components.

Network topology is the structure of a network: how networks, hosts, services, and communication components connect. In API security, that structure determines which resources are reachable, which traffic is permitted, and how an attacker might move through the environment. section 9.2 section 9.0

A safer design partitions infrastructure into segments or subnets with different access levels. Public subnets can reach the internet; private subnets cannot. Services in one segment communicate directly, while communication across segments requires an intentional network bridge. section 9.2

Apply the topology as a set of access boundaries:

  • Place the internet-facing boundary in a demilitarized zone (DMZ), and channel inbound traffic through an API gateway, reverse proxy, or load balancer rather than deploying services directly there. section 9.2
  • Keep databases, queues, internal endpoints, and other services in private subnets unless external access is required. section 9.0
  • Use a hardened bastion server in the DMZ to reach internal APIs and databases, allowing traffic only from trusted origins. section 1.2.3
  • Disable unnecessary traffic between services and use restrictive firewalls to limit lateral movement and access to sensitive resources. section 9.0 section 1.2.3

A controlled API boundary

Expose only documented, tested, secure endpoints through an API gateway in the DMZ. Keep internal and development endpoints accessible only to internal users and developers, using a bastion server for controlled access to private APIs and databases.

How Secure APIs covers it

How deep it goes
Defines segmentation, public and private subnets, bridges, and DMZs, but stops short of comprehensive network-security coverage.
Examples
Uses segmented public and private networks, DMZ gateways, bastion servers, and separated public, internal, and development endpoints.
What it assumes
Assumes awareness that APIs run on networks and focuses on topology’s security effect rather than requiring network-security implementation expertise.
What you can do after
Evaluate API infrastructure, restrict sensitive resources, isolate services, and channel external traffic through controlled front-facing components.
How it connects
Connects network topology with subnets, DMZs, API gateways, bastion servers, firewalls, reverse proxies, load balancers, and WAFs.

Also explained in

Compare how 3 books explain network topology →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.