Concepts / Cloud security

Cloud security

Infrastructure-as-code security

Also called IaC review, shift-left, Terraform misconfiguration, secrets in code

Cloud estates are built from declarative code; the misconfiguration ships from a line in that code, so the cheapest place to catch it is the review.

The leak is a line in a file first
The leak is a line in a file first

A public bucket or a hard-coded password exists in the code before it exists in the cloud. The review before apply is the cheap place to stop it.

Infrastructure as code (IaC) is declaring cloud resources in files, such as Terraform or CloudFormation, and applying them to create the real ones. A misconfiguration is a line in a file first: a bucket with a public ACL, a plaintext password. Catching it in review, before apply, is called shift-left. Fix it in the same file: private ACL, secret in a secret store. That prevents [[cloud-storage-exposure|public cloud storage]].

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab