forked from Checkmarx/kics
-
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.
feat(doc): Added terraform cloud integration documentation (Checkmarx…
…#4427) Signed-off-by: João Reigota <[email protected]>
- Loading branch information
1 parent
49b4b97
commit 5aa3957
Showing
7 changed files
with
65 additions
and
0 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## Integrate KICS with Terraform Cloud | ||
|
||
You can integrate KICS into Terraform Cloud as a Task Event Hook. | ||
|
||
This provides you the ability to run a KICS scan on the plan in the pre-apply stage. | ||
|
||
### Configuring KICS as a Task Event Hook | ||
|
||
To Configure Task Event Hook go to: | ||
|
||
Organization Settings -> Integrations -> Task Event Hook -> Create Event Hook | ||
|
||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/create_event_hook_tfcloud.png" width="850"> | ||
|
||
Set the name you wish for the Task Event Hook | ||
|
||
In the Hook endpoint URL place: | ||
|
||
``` | ||
https://kics.io/tfc/event?failOn=low | ||
``` | ||
|
||
And Create event hook. | ||
|
||
Note: You can choose which kind of severity you wish for KICS to fail on by passing `failOn` as query parameter in the URL. KICS will fail on any result found with that severity and above. | ||
|
||
Availble Severities are: | ||
- high | ||
- medium | ||
- low | ||
- info | ||
|
||
Query parameter `failOn` is required and cannot be empty. | ||
|
||
|
||
### Adding KICS Event Hook to Workspace | ||
|
||
To add KICS Event Hook as a Task to your Workspace go to: | ||
|
||
Workspace Settings -> Tasks -> Available Event Hooks and Choose KICS Event Hook you just created | ||
|
||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/create_workspace_task.png" width="850"> | ||
|
||
Choose the Enforcement Level and press Create | ||
|
||
And now every time a new plan is started KICS will scan this plan for Vulnerabilities and missconfigurations | ||
|
||
### Example Results | ||
|
||
Task Failed | ||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/task_failed_tfcloud.png" width="850"> | ||
|
||
To see KICS Scan report press `Details` to download the html report and see all vulnerabilities found by KICS | ||
|
||
Please keep in mind the report link is only active for 15 minutes | ||
|
||
Task Passed | ||
<img src="https://raw.githubusercontent.com/Checkmarx/kics/master/docs/img/task_success_tfcloud.png" width="850"> |
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