Skip to content

Commit

Permalink
Added OPA and conftest references
Browse files Browse the repository at this point in the history
  • Loading branch information
mthorley committed Jan 28, 2020
1 parent 51228b2 commit 9fdff8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# gke-tf

Inspec used to verify the tfstate from Terraform GKE resource to ensure it is security hardened and compliant.
Comparison of Inspec and OPA used to verify the tfstate from Terraform GKE resource to ensure it is security hardened and compliant.

Note this is unit testing and is executed post plan but before apply.

Further work will be applied to use https://github.com/instrumenta/conftest with OPA.

## Run
To run use ```./inspec-exec.sh``` This generates a json output of the plan and includes specific output variables that are used by inspec to verify the configuration.
For Inspec, use ```./inspec-exec.sh``` This generates a json output of the plan and includes specific output variables that are used by inspec to verify the configuration.

For OPA, use ```./opa-exec.sh```.

0 comments on commit 9fdff8e

Please sign in to comment.