In the cloud, security and operational responsibility are shared: the provider is responsible for the security of the cloud, and the customer is responsible for security in the cloud.

All the major providers publish a shared responsibility model. The exact line between provider and customer depends on the type of service you use, and it moves as you go up the mental model.

Where the line falls

ResponsibilityIaaSPaaS / ContainersServerless / SaaS
Physical data centres, hardware, global networkProviderProviderProvider
Virtualisation and host infrastructureProviderProviderProvider
Operating system and patchingYouProvider (mostly)Provider
Runtime and middlewareYouSharedProvider
Network configuration and firewall rulesYouSharedShared
Application code and its dependenciesYouYouYou
Identity, access and permissionsYouYouYou
Data: classification, encryption choices, backupsYouYouYou
Shared responsibility by service modelIaaSData & accessApplication codeRuntimeOperating systemVirtualisationPhysical data centrePaaS / ContainersData & accessApplication codeRuntimeOperating systemVirtualisationPhysical data centreServerless / SaaSData & accessApplication codeRuntimeOperating systemVirtualisationPhysical data centreYouProviderShared
The further up the stack you go, the less you have to secure and operate yourself. Data and access are always yours.

Some things never move to the provider. Whatever service you use, you are always responsible for:

Most cloud security incidents aren’t failures of the provider. They’re customer-side misconfigurations: storage left public, over-permissive access policies, leaked credentials or unpatched software.

What this means for architecture

The cloud providers’ Well-Architected frameworks (see Well-Architected) go into much more detail on security and reliability.