Cloud Computing Architecture Guide

Designing Security Controls for a Sensitive Public API

Goal

Apply the chapter model to a public API that processes sensitive customer data.

The Short Version

A defensible API security design traces each material risk to layered controls, evidence, response, and a named owner.

Begin with data flow, actors, administrative paths, dependencies, and threat scenarios before selecting controls. The important architecture move is to make the boundary explicit before selecting a cloud feature. A feature can automate a decision, but it cannot decide the organization's risk tolerance, ownership model, or acceptable failure behavior.

Use this section as a decision tool. Name the actor or producer, the protected or affected resource, the contract between them, the conditions under which the action is allowed, and the evidence that will show whether the design worked.

Mental Model

Create a numbered request and administration path with a risk-to-control matrix covering prevent, detect, respond, evidence, and owner.

flowchart LR
    N1["Business risk"] --> N2["Prevent"] --> N3["Detect"] --> N4["Respond"] --> N5["Recover"] --> N6["Evidence and improvement"]

Read the diagram from left to right, then review it from right to left. The forward pass explains how work succeeds. The reverse pass asks whether an operator can trace an outcome back to its initiating identity, input, policy, route, or contract.

Architecture Decisions

Decision dimensionQuestion to make explicit
RiskWhich asset, threat, and business impact justify the control?
PreventionWhich identity, network, data, and workload controls reduce likelihood?
DetectionWhich signals reveal misuse or control drift quickly enough?
ResponseWho can contain, investigate, communicate, and recover?
EvidenceCan the organization prove configuration, access, and response outcomes?

The answers should be recorded with the workload design. If the answer is merely "the platform default," the team has discovered an assumption, not completed an architecture decision.

Core Ideas

Begin with data flow, actors, administrative paths, dependencies, and threat scenarios before selecting controls

Begin with data flow, actors, administrative paths, dependencies, and threat scenarios before selecting controls. Make the owner, boundary, failure behavior, and evidence explicit. That turns the concept from a configuration choice into a design decision that another team can review and operate.

Use layered controls for authentication, authorization, rate and abuse protection, network exposure, workload hardening, data protection, and secure delivery

Use layered controls for authentication, authorization, rate and abuse protection, network exposure, workload hardening, data protection, and secure delivery. Make the owner, boundary, failure behavior, and evidence explicit. That turns the concept from a configuration choice into a design decision that another team can review and operate.

Define evidence, alerts, runbooks, recovery, testing, review cadence, exceptions, and residual risk alongside the topology

Define evidence, alerts, runbooks, recovery, testing, review cadence, exceptions, and residual risk alongside the topology. Make the owner, boundary, failure behavior, and evidence explicit. That turns the concept from a configuration choice into a design decision that another team can review and operate.

Provider Lenses

AWS examples include KMS, Secrets Manager, Certificate Manager, WAF, Shield, GuardDuty, Security Hub, and CloudTrail. Azure examples include Key Vault, managed identities, WAF capabilities, DDoS Protection, Defender for Cloud, Azure Monitor, and Activity Log. No single service creates security; each implements part of a preventive, detective, responsive, or evidentiary control chain.

Provider lenses are useful for implementation planning, but they should come after the provider-neutral decision. This keeps the reasoning portable and makes differences in defaults, scope, and operational responsibility easier to detect.

Example: Applying the Decision

Design controls for an internet-facing customer API that stores regulated data, calls a payment partner, and is operated by multiple teams.

For a sensitive public API, authenticate every caller, authorize each operation, terminate modern transport encryption at a controlled edge, protect secrets and keys separately, restrict workload-to-data paths, collect tamper-resistant audit signals, and rehearse containment and recovery.

A review should finish with named owners, a testable success path, expected failure modes, and observable evidence. That is more useful than a diagram that only proves the components can connect.

Common Mistakes

  • Showing a secure request path but omitting deployment and administrator access. It hides a boundary or enlarges the impact of failure, so record the safer alternative in the design.

  • Listing controls without the risks they address or evidence they emit. It hides a boundary or enlarges the impact of failure, so record the safer alternative in the design.

  • Claiming compliance or zero trust without describing concrete boundaries, decisions, and operating practices. It hides a boundary or enlarges the impact of failure, so record the safer alternative in the design.

If Someone Asks You

How would you explain the layered security design for this public API?

A clear answer is:

A defensible API security design traces each material risk to layered controls, evidence, response, and a named owner.

I would then show the decision path, the responsibility boundary, and the evidence used to review it. That explanation connects the technical mechanism to its architecture purpose.

What You Should Remember

A defensible API security design traces each material risk to layered controls, evidence, response, and a named owner.

Questions to Check Your Understanding

  1. Which paths besides customer requests need protection?

  2. How does each major risk map to multiple control purposes?

  3. What operating evidence would demonstrate that the design still works?

Further Study