DevSecOps for Infrastructure as Code
Gaurav
This post provides information about building a DevSecOps pipeline for your Infra as Code setup.
๐๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ ๐๐ฌ๐๐:
GitHub Actions: As CI/CD platform.
HashiCorp Terraform: Tool for Infra as Code.
๐๐ญ๐๐ญ๐ข๐ ๐๐จ๐๐ ๐๐ง๐๐ฅ๐ฒ๐ฌ๐ข๐ฌ ๐๐จ๐จ๐ฅ๐ข๐ง๐ : GitLeaks for secrets leaks and Checkmarx KICS for security vulnerability and security compliance checks.
๐๐ฎ๐๐ข๐ญ/๐๐จ๐ ๐ ๐ข๐ง๐ ๐๐๐ฉ๐๐๐ข๐ฅ๐ข๐ญ๐ฒ: Use Opensource Platform like Grafana Loki to ingest your CI/CD pipeline logs.
๐๐ซ๐จ ๐๐ข๐ฉ: ๐ก
If using GitHub Self hosted runner try make sure they run with ๐ง๐จ๐ง-๐ฉ๐ซ๐ข๐ฏ๐ข๐ฅ๐๐ ๐๐ ๐ฎ๐ฌ๐๐ซ and not root.
Pin Actions releases with its ๐๐๐ ๐๐จ๐ฆ๐ฆ๐ข๐ญ ๐ข๐ง๐ฌ๐ญ๐๐๐ ๐จ๐ ๐ญ๐๐ /๐ฏ๐๐ซ๐ฌ๐ข๐จ๐ง.
๐ฐ๐๐๐๐๐๐ ๐๐ ๐๐๐๐:
uses: 'actions/checkoutv4โ
๐ผ๐๐ ๐๐๐๐:
uses: 'actions/checkout@<FULL SHA commit>
GitHub Repo Link: https://github.com/iamgp21/database-as-code

Subscribe to my newsletter
Read articles from Gaurav directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
