Topic 12 of 12

Security basics for DevOps

Learn the security habits a DevOps engineer applies daily: threat thinking, secrets, least privilege, scanning, supply chain, pipelines and TLS.

After this topic you can: You can scan an image and a repo, keep secrets out of git and images, run containers as a non-root user, lock down a pipeline, and inspect a certificate yourself.

7 lessons · 78 min · 0 of 7 done

Best read after: CI/CD pipelines, Cloud fundamentals with AWS

Draft. This lesson is written and waiting for a person to run every command and review it. It is safe to learn from, but check the official documentation for anything you depend on.

Lessons, in order

  1. 1Shift left and think like a defenderCoreLearn to ask what you protect, from whom and where it can fail, then fix problems early when they are cheap, using a four-question threat model.8 min
  2. 2Keeping secrets out of git and imagesCoreLearn why passwords and API keys must stay out of git and container images, how scanners find them, and what to do first when one leaks.12 min
  3. 3Least privilege for people, jobs and containersCoreLearn to give every user, pipeline job and container only the access it needs, with a non-root container and a narrow cloud policy.11 min
  4. 4Scanning images and dependencies for known flawsCoreLearn what a CVE and its severity mean, how to scan an image and a project with Trivy, and how to fix findings by updating the base image.12 min
  5. 5Software supply chain: pinning, SBOMs and signaturesAdvancedLearn why you must know what goes into your software, how to pin an image by digest, produce an SBOM with Trivy, and what signed images give you.11 min
  6. 6Securing your CI/CD pipelineCoreLearn to give a pipeline short-lived OIDC credentials instead of stored keys, a read-only token, and third-party actions pinned to a commit SHA.12 min
  7. 7TLS certificates: what they prove and how they expireCoreLearn what a TLS certificate proves, how clients decide to trust it, and how to inspect expiry, names and issuer with openssl.12 min

Keep these open while you learn

Search

Search cheat sheets and projects