-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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```. | ||
|