Shared Responsibility
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
| Responsibility | IaaS | PaaS / Containers | Serverless / SaaS |
|---|---|---|---|
| Physical data centres, hardware, global network | Provider | Provider | Provider |
| Virtualisation and host infrastructure | Provider | Provider | Provider |
| Operating system and patching | You | Provider (mostly) | Provider |
| Runtime and middleware | You | Shared | Provider |
| Network configuration and firewall rules | You | Shared | Shared |
| Application code and its dependencies | You | You | You |
| Identity, access and permissions | You | You | You |
| Data: classification, encryption choices, backups | You | You | You |
Some things never move to the provider. Whatever service you use, you are always responsible for:
- who has access to what (identity and access management)
- your data: what you store, where, how it’s protected and who can see it
- how you configure the services you use
- your application code and the libraries it depends on
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
- Moving up the stack reduces your share. Every layer the provider manages is one you don’t have to patch, harden or monitor. That’s a security argument for serverless and managed services, not just a productivity one.
- Least privilege everywhere. Give every person, service and function only the permissions it needs, and prefer short-lived credentials and roles over long-lived keys.
- Encrypt by default. Use the provider’s encryption at rest and in transit. Decide deliberately who manages the keys.
- Automate guardrails. Use Infrastructure as Code, policy as code and the provider’s posture-management tools to stop misconfigurations reaching production and to detect them if they do.
- Log and monitor. Turn on audit logging for every account and subscription, and make sure someone (or something) is watching it.
- Resilience is shared too. The provider runs resilient infrastructure, but it’s your job to design workloads that survive the failure of an instance, a data centre (availability zone) or even a region, if your requirements demand it.
The cloud providers’ Well-Architected frameworks (see Well-Architected) go into much more detail on security and reliability.