Security¶
Security isn't a separate phase at the end of delivery — it's a set of habits built into how code is written, how artifacts are built, how systems are configured, and how people and workloads authenticate. This section covers the security practices DevOps and platform engineers own day to day, with tools you can put into a pipeline this week.
What You'll Learn¶
- How to find the risks that matter with lightweight threat modeling
- How to manage secrets centrally, with short-lived dynamic credentials
- How to secure the software supply chain with SBOMs, signing, and provenance
- How to scan containers and infrastructure as code, and enforce policy
- How to replace network trust with strong identity for people and workloads
- How to harden systems against benchmarks and keep compliance evidence flowing
Security Across the Delivery Lifecycle¶
flowchart LR
P["Plan<br/>threat model"] --> C["Code<br/>pre-commit secrets scan,<br/>SAST"]
C --> B["Build<br/>SCA, SBOM, image scan,<br/>sign + provenance"]
B --> T["Test<br/>IaC scan, DAST,<br/>policy checks"]
T --> D["Deploy<br/>admission policy,<br/>verify signatures"]
D --> R["Run<br/>runtime detection,<br/>patching, audit logs"]
R --> P
Read in This Order¶
- DevSecOps and Threat Modeling — shifting security left and right, STRIDE threat modeling, and securing CI/CD pipelines themselves
- Secrets Management With Vault — Vault concepts, KV and dynamic database credentials, Kubernetes and CI authentication, and OpenBao
- Software Supply Chain Security — SBOMs, keyless signing with Sigstore, build provenance and SLSA, and dependency hygiene
- Container and IaC Scanning — Trivy, Checkov, Hadolint, Conftest policies, triage, and CI integration
- Identity and Zero Trust — zero trust principles, SSO and phishing-resistant MFA, workload identity, mTLS, and just-in-time access
- Hardening and Compliance — CIS benchmarks, host and cluster audits, vulnerability management, and compliance as code
Security Topics Covered Elsewhere¶
| Topic | Where |
|---|---|
| Linux permissions, SSH, and sudo | Users, sudo, and SSH Hardening |
| TLS and certificates | HTTP and TLS |
| Leaked secrets in Git | Repository Hygiene |
| AWS IAM, KMS, GuardDuty, and WAF | AWS IAM, AWS Security and Secrets |
| Kubernetes RBAC, Pod Security, and image policy | Kubernetes Security |
| Ansible Vault | Secrets and Vault in Ansible |
| SAST, SCA, and secrets scanning tools | Code Quality |
| Running a security incident | Incident Response |
Next¶
Start with DevSecOps and Threat Modeling.