You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
Describe the bug
While throwing together a proof of concept, I noticed that the generated tfplan.json file is ignored by regula run when tfplan.json is included in the .gitignore file. I'm not sure if this is the intention or not, but thought it's worth calling on or making a note of it in documentation. In general practice of putting regula into a build pipeline, it's less of an issue since you're probably not committing code, but as a general practice I would like to keep plan outputs out of git because they might contain sensitive information.
How you're running Regula
Please include versions of all relevant tools. Some examples:
I'm using Regula2.9.3, build a58739c, built with OPA v0.43.1 and a Terraform plan JSON input that I generated with Terraform v0.14.11
I'm using Regula v2.9.3 as a CLI tool and my Terraform source code as an input:
Run regula run -i ./rules or specifying any other custom rules
The output should have reporting based on the terraform files, but not the tfplan.json
IaC Configuration
If applicable, please include a minimal configuration that we can use to reproduce the issue. Valid configurations save us a lot of time in troubleshooting. So please, try using what you post to reproduce the issue to verify that it demonstrates the problem.
Describe the bug
While throwing together a proof of concept, I noticed that the generated
tfplan.json
file is ignored byregula run
whentfplan.json
is included in the.gitignore
file. I'm not sure if this is the intention or not, but thought it's worth calling on or making a note of it in documentation. In general practice of puttingregula
into a build pipeline, it's less of an issue since you're probably not committing code, but as a general practice I would like to keep plan outputs out of git because they might contain sensitive information.How you're running Regula
Please include versions of all relevant tools. Some examples:
.regula.yaml
Operating System
MacOS Monterey 12.6
Steps to reproduce
tfplan.json
to your repo's.gitignore
terraform init
terraform plan -out=tfplan
terraform show -json ./tfplan > tfplan.json
regula run -i ./rules
or specifying any other custom rulesThe output should have reporting based on the terraform files, but not the
tfplan.json
IaC Configuration
If applicable, please include a minimal configuration that we can use to reproduce the issue. Valid configurations save us a lot of time in troubleshooting. So please, try using what you post to reproduce the issue to verify that it demonstrates the problem.
Additional context
nothing other than thank you for building/maintaining this cool project 🙏🏽
The text was updated successfully, but these errors were encountered: