liveBook · Manning

Infrastructure

As explained in Secure APIs

Computing infrastructure is the collection of networks, servers, traffic-management components, and security controls that supports software operation.

Computing infrastructure is the network topology, servers, traffic-management components, and security controls that support API operation. Its configuration strongly affects the API’s security posture. section 1.2.3

Secure infrastructure reduces exposure and limits the impact of attacks by:

  • Segmenting networks, restricting traffic between services, and isolating high-risk components. section 1.1 section 1.2.3
  • Using firewalls, load balancers, API gateways, and WAFs to control and protect incoming traffic. section 1.2.3 section 9.0
  • Replicating environments with Infrastructure as Code and auditing configuration with static analysis tools. section 1.2.3

SSRF through an avatar endpoint

A user service accepts a URL through POST /user/avatar and downloads the avatar. Without input sanitization and service access controls, an attacker can use SSRF to request the admin service, escalate privileges, and access sensitive user data. section 1.1

How Secure APIs covers it

How deep it goes
Explains topology, controls, attack surfaces, and Infrastructure as Code, while deferring detailed infrastructure techniques to later treatment.
Examples
Uses a vulnerable avatar-download endpoint, user and admin services, network isolation, gateways, WAFs, and Infrastructure as Code tools.
What it assumes
Assumes an API deployment context and application-level security awareness, then connects those concerns to infrastructure threats.
What you can do after
Operate/configure API infrastructure by restricting service access, protecting traffic, replicating environments, and auditing infrastructure code.
How it connects
Connects API security with network topology, network segmentation, API gateways, web application firewalls, SSRF, and denial-of-service attacks.

Also explained in

Compare how 8 books explain infrastructure →

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.