DevSecOps
Shift-left security principles — integrating security into CI/CD pipelines, container security, and secure software development.
Core Principles
- Shift left — Security checks as early as possible in pipeline
- Automate security — No manual security review bottlenecks
- Fail fast — Block builds on critical vulnerabilities
- Everything as code — Security policies in code (OPA, Sentinel, etc.)
Sections
- Pipeline Security — Securing CI/CD pipelines, GitHub Actions hardening, secrets management
- Container Security — Image scanning, distroless, rootless, capabilities
Pipeline Security Checks
| Stage | Check | Tools |
|---|---|---|
| Commit | Pre-commit hook secrets scan | gitleaks, detect-secrets |
| Build | SAST, dependency scan | SonarQube, Snyk, Trivy |
| Test | DAST, fuzzing | OWASP ZAP, AFL |
| Deploy | Image scan, IaC scan | Trivy, Checkov, Terrascan |
| Runtime | RASP, runtime monitoring | Falco, AppArmor |
Key Tools
- Trivy — Container and IaC vulnerability scanner
- Checkov — Terraform/K8s policy scanning
- Snyk — Dependency and container scanning
- Gitleaks — Secrets detection in code
- OPA Gatekeeper — Kubernetes policy enforcement
Related
- Supply Chain Security — SBOM, Sigstore, SLSA
- Incident Response — CI/CD security incidents