The Backend of LuckTrainingRoadmaps

DevSecOps Pipeline and Scanning Layers (Chapter 23)

DevSecOps Pipeline and Scanning Layers (Chapter 23) A workflow diagram generated by Archify. 01 / Developer 02 / Pipeline 03 / Security scanning EX / Exceptions Intake Scan Promote Security scanning layers Developer Commit · git push · Developer › Intake Developer Commit git push Pre-commit Hooks · local checks · Developer › Intake Pre-commit Hooks local checks CI/CD Pipeline · triggers scan stage · Pipeline › Scan CI/CD Pipeline triggers scan stage Production Deploy · promote on green · Pipeline › Promote Production Deploy promote on green SAST + Secrets · CodeQL, Gitleaks + ML · Security scanning › Security scanning layers › Scan SAST + Secrets CodeQL, Gitleaks + ML SCA · Snyk dependency scan · Security scanning › Security scanning layers › Scan SCA Snyk dependency scan Container Scan · Trivy · Security scanning › Security scanning layers › Scan Container Scan Trivy IaC Scan · Checkov · Security scanning › Security scanning layers › Promote IaC Scan Checkov Block on Findings · deploy stage halted · Exceptions › Scan Block on Findings deploy stage halted commits staged image clear fix + re-scan all layers passed critical finding push triggers pipeline no criticals deps clear Legend Developer Pipeline stage Security scan Block / fix Deployment

Five Scanning Layers

  • • SAST + secrets, then SCA, container, and IaC scans
  • • Each layer must clear before the next one runs

Fail-Closed Pipeline

  • • A critical finding blocks the deploy stage
  • • Findings route back to scanning for a fix

Shift-Left Security

  • • Pre-commit hooks catch issues before CI/CD
  • • One gate applies to every pipeline run