Interview Prep/DevSecOps/Building a DevSecOps Program

What does a good secure-by-default golden repository template contain?

BeginnerProductionBuilding a DevSecOps Program
Answer
  • CODEOWNERS, branch ruleset (reviews, status checks, no force push)
  • Reusable CI workflow call with SAST, SCA, secrets, IaC and image scanning
  • Hardened Dockerfile (pinned digest base, non-root user, multi-stage)
  • Renovate or Dependabot config with grouping and automerge for patch updates
  • .pre-commit-config.yaml with gitleaks
  • SECURITY.md with reporting contact
  • Helm chart with securityContext, resource limits and a NetworkPolicy
  • OIDC-based deploy job, no long-lived secrets

New services start compliant on day one.

All DevSecOps questions

More on Building a DevSecOps Program