7 lessons

Cloud & IAM Security

Identity → policy → action → resource. Machine identities, short-lived credentials, and the full lifecycle of a secret from creation to revocation.

AssetThreatAttack SurfaceTrust BoundaryVulnerabilityExploit PathImpactMitigationDefense in DepthResidual Risk

Every lesson below identifies the asset, attacker capability and boundary before naming the vulnerability. Controls are split into prevention, detection and recovery; residual risk is explicit.

Cloud Security Fundamentals
▶ lab

Cloud security is identity and policy first, then reachable networks, resource policies, secrets, encryption and evidence.

Boundary · Cloud identity → policy → action → resource
Identity and Access Management (IAM)
▶ lab

An IAM decision binds a principal, action, resource and conditions; a wildcard in any dimension expands blast radius.

Boundary · Authenticated identity → authorized cloud API action
Human vs Machine Identities

People, services, CI/CD, agents and automation need separate identities so access can be scoped, attributed and revoked independently.

Boundary · Distinct actor → distinct credential and policy
Short-Lived Credentials
▶ lab

A workload exchanges its identity for a temporary credential that expires, reducing the useful lifetime of theft and eliminating manual rotation.

Boundary · Workload identity → temporary delegated capability
Secrets Management
▶ lab

A secret should not live everywhere: applications retrieve or receive narrowly scoped values from a controlled system with audit and rotation.

Boundary · Secret manager → authorized workload
The Secret Lifecycle
▶ lab

Create → store → distribute → use → rotate → revoke → audit: weakness in any stage determines the effective protection.

Boundary · Secret material → each storage, delivery and use location
Infrastructure Secret Injection

A committed .env file or secret baked into an image turns version control and every image copy into credential stores.

Boundary · Deployment control plane → runtime workload