GithubHelp home page GithubHelp logo

example-terraform-policy-as-code's Introduction

Example Terraform Code Analysis

Tabel Perbandingan

ConfTest Terraform Compliance Sentinel Semgrep Checkov
Bahasa Rego Open Policy Agent (OPA) Gherkin Sentinel YAML YAML
Komunitas Sedang Kecil Kecil Luas Luas
Popularitas Sedang Rendah Sedang Tinggi Tinggi
Hak Akses Tinggi Tinggi Tinggi Rendah Tinggi
Harga Gratis Gratis Berbayar Gratis & Berbayar Gratis & Berbayar
Kemudahan Sulit Mudah Belum diketahui Mudah Mudah

Spesifikasi

  • Dukungan komunitas yang kuat: Mudah untuk mengumpulkan orang-orang yang mengerti tentang kasus dan masalah yang kita hadapi ketika menggunakan alat tersebut.
  • Hak akses yang rendah: Terraform state menyimpan konfigurasi-konfigurasi infrastruktur, tak jarang menyimpan secret value juga. Lebih bagus bila alat tidak membutuhkan akses ke terraform state.
  • Aktif development: Alat yang tidak aktif development, rawan menjadi gerbang masuk dari serangan keamanan.
  • Mudah untuk dipelajari.

Studi Kasus

  • Naming Convention:
    • Terraform Module Naming Convention
    • Terraform Resource Naming Convention
    • Terraform Resource Tag Naming Convention
  • Supply Chain Attack

Rekomendasi

  • Semgrep: Simple Terraform Code Analysis

    Hanya Semgrep yang saat ini mampu memastikan nama module dan resource mengikuti standard yang dibuat.

  • Terraform-compliance: More-customized Terraform Code Analysis

Catatan

Checkov juga bagus untuk More-customized Terraform Code Analysis. Tetapi, berdasarkan dokumentasi berikut, kita perlu melakukan langkah-langkah tambahan sebelum bisa menggunakan custom policy yang dibuat.

Namun, hal-hal yang sudah bersifat perlu diperiksa saat runtime. Pertimbangkan menggunakan rules_engine yang bisa secara periodik memeriksa infrastruktur yang berjalan saat itu, seperti Cloud Custodian.

example-terraform-policy-as-code's People

Contributors

michaelact avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.