inspec
tfsec
Our great sponsors
inspec | tfsec | |
---|---|---|
13 | 7 | |
2,813 | 2,991 | |
1.0% | - | |
9.4 | 9.4 | |
about 16 hours ago | almost 3 years ago | |
Ruby | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
inspec
- Testing Terraform infra - terratest alternatives?
-
Ruby: "the best" language for general automation
The course uses Chef Inspec, an open source Ruby DSL. I made a POC with this tool to automatically check repositories on GitHub, checks like if it contains a gitignore consistent with the language used, if node_modules is not present, etc.
- what tool do you use for validating hardening settings have been applied. this is for security and hardening purposes. for example, ensure that admin username is not default username, password is at least 12 characters with upper, lower and special characters, https is enabled etc
-
Why do you guys think testing is not a very prominent topic in the cloud native community ?
We are using Inspec to double check that the changes are indeed what we expect them to be. If anyone knows a better tool, please share
-
Is there any kind of Pester Server for infrastructure tests?
https://github.com/inspec/inspec Chef Inspec is probably a great tool for what you’re trying to do. Great at building human readable test cases for validation of infrastructure deployments. At a different org I used to use PoSh, Terraform and Ansible etc. for deploying on-prem and cloud infrastructure and then Inspec for testing for successful deployments, security misconfigurations (is a port open that shouldn’t be etc).
- InSpec
- Checking compliance of controls? Job help
- Unit tests for hardened images
-
Automated Configuration Analysis?
If you need the monitoring for compliance reason, Chef InSpec was designed for this exact usecase.
- Compliance Scans for Images
tfsec
-
Terraform in AWS
Using pre-commit framework with terraform repository, will help your code to be kept clean, formated, updated document and checked for tf security issues (optional with tfsec) before committing and pushing the code to git source.
-
Terraforming in 2021 – new features, testing and compliance
Here again more than one tool exists to assist. We will highlight two of the most popular ones here: tfsec and checkov. Both provide a predefined set of checks that they use to inspect your code, allowing to explicitly open exceptions (if you really want to) by annotating your code with comments, and adjust the configuration to ignore some modules, for example.
-
How FirstPort manage GitHub, using code stored in GitHub
An additional benefit of using a CI workflow is adding automated tests. In this scenario, I’ve added a step leveraging tfsec to scan for static code vulnerabilities. In the example below, tfsec warns against creating an Azure network security rule which is fully open. This will halt and fail the workflow unless I provide an ignore comment to accept the warning.
-
Terraform v15.0 with AWS (EKS deployment)
· Provision an EKS Cluster (AWS) · Terraform v15.0 · Terraform Registry · Pre-Commit · Terraform Pre-commit · Terraform-docs · Tflint · Tfsec
-
A way to restrict options for devs in AWS
Using terraform, create a skeleton directory that they can review for how EC2 instances should be created. Use tools like https://github.com/tfsec/tfsec or other scanners/linters to validate that your developers followed this process and didn't uncheck something.
-
Terraform VMware vSphere Provider - is it worth it?
I know tfsec (https://github.com/tfsec/tfsec) which is pretty good for AWS resources but I think vSphere resources are not implemented.
-
Gopher Gold #15 - Wed Oct 14 2020
tfsec/tfsec (Go): 🔒🌍 Static analysis powered security scanner for your terraform code
What are some alternatives?
terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
checkov - Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
goss - Quick and Easy server testing/validation
tflint - A Pluggable Terraform Linter
awspec - RSpec tests for your AWS resources.
terrascan - Detect compliance and security violations across Infrastructure as Code to mitigate risk before provisioning cloud native infrastructure.
atlantis - Terraform Pull Request Automation
container-structure-test - validate the structure of your container images
pre-commit-hooks - Some out-of-the-box hooks for pre-commit
conftest - Write tests against structured configuration data using the Open Policy Agent Rego query language
terraform-aws-gitlab-runner - Terraform module for AWS GitLab runners on ec2 (spot) instances