INTERNETCLOUD PROVIDERAPPINVOICESLOG1SAFE = {"public": False,2 "encrypted": True,3 "logging": True}4def problems(cfg):5 return [k for k in SAFE6 if cfg.get(k) != SAFE[k]]01CHECKpublicTrueencryptedFalseloggingFalse
Back row: the internet, and the provider's slab with the shop's app, bucket and log on itFront row: the check in Python, its lamp, and the bucket's three settingsTokens: reads, leaked files, the check running, log entriesAt the back: anyone on the internet, and the cloud provider's slab (its buildings and hardware) with the shop's parts on it: the app, the storage bucket of invoices and the access log. In front: the safe settings and the check, problems(), in Python, the check's 1/0 lamp, and the bucket's three settings. While the bucket is public, invoices leak to anyone; after three fixes (private, encrypted, logged) a read from the internet is refused, the app's reads are logged, and the check finds no problems. Real cloud storage has many more settings, and each provider names them differently. The idea is the same everywhere: write the safe values down once and let a program compare every resource against them.

The idea

  1. Cloud computing means renting computers and storage from a provider and using them over the internet. Our example: a small shop's app saves customer invoices in a storage bucket, a place for files in the provider's data centre.

Settings as code

Fixing it

What happens

;; step 1/11 · cloud
cloud computing   rented computers, storage and
                  software, used over the internet
NIST SP 800-145   "on-demand network access to a
                  shared pool of configurable
                  computing resources"
here              the shop's app → a storage bucket
                  of customer invoices

Where the line falls depends on what you rent. With rented servers you also patch the operating system; with a ready-made app the provider does more. Your data, accounts and settings are always yours (NIST SP 800-144). Blocking public access only helps if the identities that remain are protected too: least privilege for the app, MFA for people, and no passwords or keys written into code (CISA and NSA cloud guidance).