GuideIntermediate

Cloud Security And Guardrails

This guide takes the Andes Cargo Terraform project and pipeline left working by the three previous guides and teaches that a green pipeline is not a secure pipeline. It starts with threat modeling using the STRIDE framework applied to Andes Cargo's real infrastructure inventory, producing a threat model document that governs the rest of the guide. It builds real federated OIDC identity infrastructure (the identity provider, a least-privilege trust policy) against LocalStack, honest about the exact limit of what a free lab can validate for a real token, and tightens Andes Cargo's existing IAM roles to least privilege. It migrates secrets from a plain-text file to SSM Parameter Store and Secrets Manager, and scans the repository for leaked credentials. The guide's executed core is preventive policy-as-code: writing Rego policies with `conftest`/OPA that evaluate a Terraform `plan` before it can even be applied, replacing the handmade guardrail built in the CI/CD guide. It adds static IaC scanning with Trivy and Checkov, and real software supply chain work: generating an SBOM and signing/verifying a deployment artifact with `cosign`, fully offline, demonstrating that verification actually catches tampering. It closes by distinguishing preventive from detective guardrails and chaining `conftest` → Trivy → `cosign` into a real security gate inside the inherited pipeline, tested with a change that passes and one that gets stopped before applying.

64
lessons
8
modules
English · Spanish
available in
Yes
certificate
Free
access
NIEVA

Outcomes

What you'll be able to do

  • Apply the STRIDE framework to model threats against real infrastructure and produce a threat model document
  • Build federated OIDC identity infrastructure (identity provider, trust policy) and understand the exact limit of what a $0 lab can validate for a real token
  • Tighten existing IAM roles to least privilege, trimming broad permissions down to the exact verbs the code actually uses
  • Migrate secrets from a plain-text file to SSM Parameter Store and Secrets Manager, and decide when to use each
  • Scan a repository for leaked credentials using community tools
  • Write Rego policies with `conftest`/OPA that evaluate a `terraform plan` before applying it, preventively blocking dangerous changes
  • Run static IaC scanning with Trivy and Checkov, and decide between fixing, suppressing, or accepting a finding
  • Generate an SBOM (CycloneDX) for a deployment artifact and explain what questions it answers that a dependency file doesn't
  • Sign and verify a deployment artifact with `cosign` offline, and demonstrate that verification catches tampering after signing
  • Distinguish preventive from detective guardrails, and place each real AWS mechanism correctly (SCPs, permission boundaries, CloudTrail, GuardDuty, Config)
  • Chain policy-as-code, scanning, and artifact verification into a security gate inside an existing CI/CD pipeline

Before you start

What you need to bring

It's for you if...

  • Devs who already completed the CI/CD and GitOps on AWS Guide and need to harden a pipeline that already works
  • Teams still storing long-lived AWS credentials in a repository who want to replace them with OIDC
  • Devs who need to implement preventive policy-as-code instead of manually reviewing every infrastructure change
  • Anyone who needs to cover the software supply chain gap (SBOM, artifact signing) that almost no market curriculum teaches

Requirements and materials

  • Terraform and IaC Guide completed (the `andes-cargo-infra/` project, the `init`/`plan`/`apply`/`destroy` cycle)
  • CI/CD and GitOps on AWS Guide completed (`act`, the `ci.yml`/`apply.yml`/`drift.yml` workflows running against LocalStack)
  • Docker installed and running locally
  • Free LocalStack account with an auth token, no credit card needed

Content

The syllabus, module by module

Open any of them to see its lessons.

Common questions

What people usually ask

Start whenever you like

Reviews

What students say

These reviews are from enrolled students who completed at least 50% of the course. We moderate reviews only on content grounds (spam, offensive language, personal data), never for being critical or negative.

No approved reviews yet.

Be the first to share your experience!