The idea
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.
Security in the cloud is shared. The provider secures the buildings, the hardware and the cloud's own software. The customer secures what they put in and how they set it up: their app, the data in the bucket, who may use it, and every setting.
The most common cloud weakness is a misconfiguration: a setting left wrong. This bucket has three. It is public, so anyone can read it. Its files are not encrypted. And logging is off, so nobody records who reads them.
Public means no sign-in is needed. Anyone who finds the bucket's address can download every invoice, without breaking anything. The data leaks, a loss of confidentiality, because of one wrong setting, not clever hacking.
Settings as code
Clicking through settings by hand is easy to get wrong. Instead, write the safe values down as code. SAFE is a Python dictionary: public must be False, encrypted True and logging True.
problems(cfg) goes through SAFE and keeps each setting whose value is different. For our bucket it returns all three names, so the lamp shows 0: not safe. Checking settings with code like this is called policy as code.
Fixing it
Fix one: turn public off. Now every read of the bucket must come from a signed-in identity with permission, like the shop's app. The same download from the internet is refused. problems() now returns two names.
Fix two: turn on encryption at rest. The files are stored scrambled, and only allowed callers get them unscrambled, with a key the provider's key service guards. A copied disk or file is useless without the key.
Fix three: turn on logging. Every read of the bucket, even the app's, is now recorded: who, what and when. Logs block nothing, but they let you spot strange reads and investigate later. That is NIST's Detect function.
Run problems() again: it returns an empty list, and the lamp shows 1. Run the check on every change and on a schedule too, because settings drift: someone may switch one back for a quick test.
Cloud security in four habits: know your side of the shared responsibility and the provider's, keep buckets private by default, encrypt and log them, and check every setting with code. One wrong setting should never be enough to leak data.
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).