TExcelTAD
Home › Cloud & Container Security › Shared Responsibility in IaaS, PaaS, SaaS and Containers

Shared Responsibility in IaaS, PaaS, SaaS and Containers

After an incident, the first useful question is not "who is to blame" but "whose control failed". In the cloud the answer is split: the provider runs the data centres, hypervisors and managed services, and the customer configures what runs on top. Every provider publishes a shared responsibility model that draws this line, and every auditor uses it to decide which findings the customer must fix and which are covered by the provider's own assurance (its SOC 2 and ISO 27001 reports). Shared Responsibility Model introduced the idea for AWS; this lesson turns it into a review tool, adds containers, and shows where the line is commonly misread.

The line moves with the service model

on-premIaaS (VMs)CaaSPaaS / FaaSSaaS data, identity app config app code containers guest OS hypervisor network physical customer provider

Read the picture from left to right (CaaS stands for serverless containers such as Fargate, where the provider runs the node): each step hands more layers to the provider, but the top row never moves. Data classification, who has access, and how the service is configured are always the customer's job, including in SaaS. "It's managed" means the provider patches the database engine; it doesn't mean the provider decides who may read the tables.

Containers sit in the middle and come in two flavours that auditors must tell apart:

Container platform Who patches the node OS and kubelet Who configures pods, RBAC, network policies
Kubernetes you install on VMs customer customer
Managed control plane, customer node groups (EKS, AKS, GKE Standard) provider: control plane; customer: nodes (with provider images and tooling) customer
Serverless nodes (EKS/ECS on Fargate, GKE Autopilot, Azure Container Apps) provider customer (with fewer knobs: no privileged pods, no host mounts)

A responsibility matrix you can query

An audit turns the model into a matrix: for each control and service, who owns it. The program encodes a small one, then routes a list of findings from a review of the lab account to the party that must act.

python · try it yourself
LAYERS = ["physical", "network", "hypervisor", "guest-os", "runtime", "app-code", "app-config", "identity", "data"]
# index of the lowest layer the CUSTOMER owns, per service (everything at or above it is the customer's)
CUSTOMER_FROM = {
    "on-prem": 0,
    "ec2": LAYERS.index("guest-os"),
    "eks-nodes": LAYERS.index("guest-os"),      # managed control plane, customer node group
    "eks-fargate": LAYERS.index("app-code"),    # the node and its runtime are the provider's
    "lambda": LAYERS.index("app-code"),
    "rds": LAYERS.index("app-config"),          # engine patching is the provider's; parameters are yours
    "s3": LAYERS.index("app-config"),
    "saas-crm": LAYERS.index("app-config"),
}

def owner(service, layer):
    return "customer" if LAYERS.index(layer) >= CUSTOMER_FROM[service] else "provider"

findings = [
    ("bucket lab-app-uploads allows public read", "s3", "app-config"),
    ("RDS engine 3 minor versions behind", "rds", "runtime"),
    ("app instance kernel missing a security update", "ec2", "guest-os"),
    ("worker node kernel missing a security update", "eks-nodes", "guest-os"),
    ("Fargate task host kernel version unknown", "eks-fargate", "guest-os"),
    ("Lambda function role has s3:*", "lambda", "identity"),
    ("SaaS CRM: 40 users without MFA", "saas-crm", "identity"),
    ("hypervisor side-channel advisory", "ec2", "hypervisor"),
]
for text, svc, layer in findings:
    who = owner(svc, layer)
    action = "fix it" if who == "customer" else "check provider bulletin / assurance report"
    print(f"{who:8} {svc:11} {layer:10} {text:48} -> {action}")
customer s3          app-config bucket lab-app-uploads allows public read        -> fix it
provider rds         runtime    RDS engine 3 minor versions behind               -> check provider bulletin / assurance report
customer ec2         guest-os   app instance kernel missing a security update    -> fix it
customer eks-nodes   guest-os   worker node kernel missing a security update     -> fix it
provider eks-fargate guest-os   Fargate task host kernel version unknown         -> check provider bulletin / assurance report
customer lambda      identity   Lambda function role has s3:*                    -> fix it
customer saas-crm    identity   SaaS CRM: 40 users without MFA                   -> fix it
provider ec2         hypervisor hypervisor side-channel advisory                 -> check provider bulletin / assurance report

Two rows deserve a second look. The RDS engine version belongs to the provider's layer only in part: AWS applies minor versions automatically only if the customer enabled automatic minor version upgrades (or when a version reaches the end of its support), and major version upgrades are otherwise the customer's to plan and run. Real matrices have a third value, shared, for exactly such controls (patching of managed engines, encryption where the provider offers it and the customer must turn it on, logging that exists but must be enabled and retained). The worker node kernel is the customer's even on a managed Kubernetes service: the provider ships updated node images, the customer must roll them out.

How misreadings are detected

  • Inventory by service model: list every service in use and look each one up in the provider's model; findings against provider layers become "verify the provider's assurance", not tickets.
  • Look for the "shared" controls: automatic minor upgrades off, node image age, encryption not enabled, logs on but kept for 7 days. These are the ones that fall between teams.
  • Ask who owns each finding by name: an owner per account, per cluster, per SaaS tenant. Findings without an owner are the real finding.

How the line is enforced

  • Write the matrix down per service in use, as above, and keep it next to the risk register (Risk Assessment).
  • Use guardrails for the customer side that never moves: organisation-wide policies blocking public storage and unencrypted resources (Guardrails), and the posture checks of the last section.
  • Prefer services that move layers to the provider when the team can't own them: a team that doesn't patch nodes is better served by Fargate or Autopilot than by its own node groups.

Pitfalls

  • "SaaS means the vendor handles security": users, MFA, sharing settings and data retention are still yours.
  • Treating managed Kubernetes as fully managed: the nodes, the add-ons you install and everything inside the cluster are yours.
  • Forgetting that the provider's model describes its side only; contracts, regulators and your own customers decide what you must prove about yours.

Practice

1. Add a service "ecs-ec2" (containers on customer EC2 instances) to the matrix. From which layer does the customer own it?

From guest-os, like ec2 and eks-nodes: the customer patches the container hosts. Add "ecs-ec2": LAYERS.index("guest-os").

2. A finding says "Azure SQL Database: auditing disabled". Customer, provider or shared?

Customer (a shared control in the strict sense): the provider offers auditing, the customer must turn it on, choose where the logs go and how long they are kept.

3. Why is "Fargate task host kernel version unknown" not a finding against the customer?

On Fargate the host, its kernel and the container runtime are the provider's layers; the customer can't see or patch them. The auditor checks the provider's assurance and platform-version policy instead, and the customer keeps the task's image and configuration up to date.

Test yourself

Which layers stay with the customer in every service model, including SaaS?

  1. Hypervisor and network
  2. Data, identity and access, and the service's configuration
  3. Physical security
  4. None, SaaS vendors own everything

On a managed Kubernetes service with customer node groups, who patches the worker node kernel?

  1. The provider, automatically
  2. The customer, by rolling out updated node images
  3. Nobody, containers have no kernel
  4. The container image author

In the program, which owner does 'Lambda function role has s3:*' get?

  1. provider
  2. customer
  3. shared
  4. nobody

Why do real responsibility matrices need a 'shared' value?

  1. For decoration
  2. Because some controls are offered by the provider but must be enabled, configured or retained by the customer
  3. Because providers refuse responsibility
  4. Only for on-premises systems