terraform-compliance / cli

a lightweight, security focused, BDD test framework against terraform.
https://terraform-compliance.com
MIT License
1.35k stars 152 forks source link

FATAL ERROR: Unsupported terraform version (1.4.0). #682

Closed StorageMatt closed 1 year ago

StorageMatt commented 1 year ago

Description

Latest version (1.3.40) doesn't support TF v1.4.0

To Reproduce

Change Terraform version in code from 1.3.9 to 1.4.0

terraform-compliance v1.3.40 initiated
> Features  : /root/terraform-compliance/
> Plan File : /home/gitlab-runner/...tfplan.json
* Running in non-interactive mode.
> Running tests. 
Feature: Credentials should not be within the code  # /root/terraform-compliance/check-creds.feature
    In order to prevent any credentials leakage
    As engineers
    We will enforce credentials will not be hardcoded
FATAL ERROR: Unsupported terraform version (1.4.0).

(Maybe should point out that running the same plan against same tf-compliance version with TF version 1.3.9 does not find any creds issues. This is simply the first feature test run.)

Let me know if you still would like plans etc for testing; I haven't included them here because I hit this issue first on a core company repo that I absolutely can't post the plan output or code for sorry.

eerkunt commented 1 year ago

Hard to chase Hashicorp versioning :)

This requires a bit of testing.

StorageMatt commented 1 year ago

@eerkunt absolutely understood, and because of that I really hesitated raising this as an issue. I did in the end purely because I figured someone was going to at some point. On behalf of all of us that use this; huge thanks for the efforts made 👍

StorageMatt commented 1 year ago

Just seen the 1.3.41 release notes. Testing now... :)

StorageMatt commented 1 year ago

Confirmed 1.3.41 is working with the repo we had the initial issue with. Do you want this leaving open in case something else crops up or do you want to close it? I'm happy either way :)