Cloud security architecture
A three-tier application and its trust boundaries
Cloud security architecture is the arrangement of controls that protect a workload, its identities and its data across trust boundaries. A trust boundary is a point where the assumptions about who can act, what they may access or how data is handled change. Start with assets and permitted interactions, not a shopping list of security products.
Imagine a bookstore at shop.example.com with a public HTTPS frontend, a private application tier and a managed relational database. A customer may read the catalog and place an order. Only the order service may write order records. Operators administer resources using a separate federated identity. The database must not accept connections directly from the Internet.
Customer -> HTTPS edge / WAF -> private application -> private database | | +-> secrets service +-> encrypted backupsOperator -> identity provider -> restricted management APIAll tiers -> restricted audit and monitoring destinationArrows show intended interactions, not proof of actual connectivity. Draw a boundary at the public edge, between application and database, around the management plane, and around the logging destination. Include tenant boundaries within the application: two authenticated customers must not be able to read each other's orders.
Model threats before selecting controls
A threat model identifies assets, possible failures or misuse, consequences and protective measures. Confidentiality means unauthorized readers cannot see data; integrity means unauthorized changes are prevented or detected; availability means legitimate users can access the service as intended.
For the bookstore, an overly broad database permission threatens confidentiality and integrity, accidental key loss threatens availability, and an unreviewed container update may affect all three. For each scenario record a control owner, prevention, detection and recovery. Example: scope the application role to its needed database operations, record failed access decisions and maintain a tested restore procedure.
A trust boundary is not necessarily a network boundary. A workload in a private subnet can still have excessive IAM permissions. Conversely, a public HTTPS endpoint can be intentionally reachable while requiring authentication and enforcing authorization on every protected operation.
Who owns each security responsibility?
The provider operates the physical infrastructure and the services it explicitly manages. The customer remains accountable for the workload's configuration, identities, data classification, application behavior and appropriate recovery strategy. The exact division changes with service and contract.
For an IaaS VM, the customer usually maintains guest OS patches and the app while the provider maintains the underlying virtualization infrastructure. For a managed database, the provider operates more of the engine infrastructure, but customer responsibilities still include database access, data handling, maintenance settings and restore validation. For SaaS, the provider operates the application, but the customer still manages its users, sharing settings and data obligations.
AWS describes protection of its infrastructure versus customer security inside the environment. Azure documents the responsibility split across service models. Google Cloud supplements this division with its shared-fate approach, emphasizing ongoing collaboration and guidance. None of these models transfers every customer security duty to the provider. A provider audit report can support your evidence collection, but it does not certify your specific workload or establish legal compliance.
Layered controls for the bookstore
At the public edge, terminate TLS using a maintained certificate, apply a web application firewall (WAF) where appropriate, and use suitable DDoS protection. A WAF examines application traffic according to policy; DDoS protection addresses service exhaustion at supported layers. Neither substitutes for application authorization or guarantees that legitimate requests will succeed during disruption.
Allow the application tier to receive only necessary traffic from the edge, and the database only from the authorized application path. Use private service endpoints where supported and verify DNS, public-access settings and IAM separately. Protect service-to-service connections with TLS and narrowly scoped workload identities. Avoid public administration ports and shared administrator credentials.
For tenant isolation, associate each order with the authenticated tenant on the server and enforce tenant-specific access on every read and write. Do not trust a tenant identifier supplied by a client as proof of ownership. Maintain separate backup and logging access so that routine application permissions cannot alter their evidence or recovery data.
Secure the workload and its delivery chain
A container digest identifies content, not trustworthiness. Obtain images from an approved source, review provenance and signatures according to policy, scan dependencies, rebuild patched images and deploy the reviewed digest. Keep credentials out of images and build logs. Use narrowly scoped registry and deployment permissions. Scanning can miss issues or report irrelevant packages; review runtime exposure and update status rather than assuming a clean scan proves safety.
Instance metadata services provide workloads with platform information and, depending on the identity configuration, access to temporary credentials. Treat access to them as sensitive. Require supported protective settings, such as IMDSv2 for compatible EC2 workloads; validate application compatibility first. Azure VMs have their own metadata and managed-identity mechanisms; Google Cloud attached service accounts have their own access model. Do not copy AWS-specific controls to the other platforms. Keep workload permissions minimal, constrain outbound requests to approved destinations and prevent untrusted input from controlling server-side requests. No live metadata requests are needed in this lesson.
Verify the architecture with evidence
Use an offline authorization matrix before any deployment. In the fictional system, the customer may read their own order, not another tenant's order. The application may use the database; an external client may not connect directly. The deployment identity may update the approved application, not delete backups. The logging collector may append evidence; ordinary workload identities may not erase it.
A declared policy is an intention. An exported active configuration can establish what was configured at a point in time; a scoped, authorized positive and negative test can establish behavior under specific conditions. Record expected result, observed result, timestamp, identity, resource and control owner. In this offline lesson the results are hypothetical, not evidence of real cloud enforcement. Never use an unrelated endpoint or real customer data as a test fixture.
Practice: draw your own bookstore trust boundaries and assign owners to the guest OS, database access, identity federation and backup verification. Continue with defense-in-depth and posture management to prioritize findings from this architecture.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud security architecture — knowledge check
Choose the best answer for each offline scenario.
Which statement describes a trust boundary?
Who normally patches the guest OS of an ordinary IaaS VM?
A database uses a private endpoint. What still needs verification?
Which protects another customer’s orders from an authenticated user?
What does a pinned image digest establish?