Using Checkov with Terraform and Azure DevOps

  Рет қаралды 8,251

Ned in the Cloud

Ned in the Cloud

Күн бұрын

Пікірлер: 22
@d0nhect0r
@d0nhect0r 2 жыл бұрын
To prevent checkov from scanning Dockerfiles and other non terraform stuff present in the directory you specify with '--directory', just add the extra flag '--framework terraform' to only run the terraform rule set. This way you don't have to worry about skipping checks for other technologies. Current list of supported 'frameworks' as of version 2.0.926 is: arm,bicep,cloudformation,dockerfile,github_configuration,github_actions,gitlab_configuration,bitbucket_configuration,helm,json,yaml,kubernetes,kustomize,sca_package,sca_image,secrets,serverless,terraform,terraform_plan,all Default value is 'all'
@darknight0086
@darknight0086 2 жыл бұрын
Thank you Ned! This video was an excellent help in getting Checkov up and running for our IaC scanning. I am looking forward to your videos on build validation pre-merge on PR and tfplan stashing. Any idea when these updates will be posted? As always, keep up the good work.
@decipheringthematrix56
@decipheringthematrix56 3 жыл бұрын
Love this concept Ned, very useful stuff. Thank you.
@jenniferkoenig9814
@jenniferkoenig9814 2 жыл бұрын
I ran checkov on the setup code Terraform files, and there were a lot of failures! This is a great tool, by the way!
@monitorgrafana64
@monitorgrafana64 3 жыл бұрын
Chekov is not running for me .. Not getting test results and only the warnings . Is it normal?? Reached too many edge duplications of 90% for 4 iterations. breaking. 2021-10-01 16:35:59,864 [MainThread ] [WARNI] The json runner requires that external checks are defined. 2021-10-01 16:36:01,428 [MainThread ] [WARNI] The json runner requires that external checks are defined.
@vishalkalal
@vishalkalal Жыл бұрын
Great video Ned! Do you have any sample of getting it work with modules in Azure Private Repo?
@NedintheCloud
@NedintheCloud Жыл бұрын
No, sorry. Are you using Private Repos in ADO instead of GitHub?
@vishalkalal
@vishalkalal Жыл бұрын
@@NedintheCloud thank you for replying. yes, I am using Private Repo in ADO. I can try with Github Priate Repo if that works. Your video's are amzing help. thank you once again for that ☺
@CesarMartinez-el7ow
@CesarMartinez-el7ow 2 жыл бұрын
Really nice! I have to move this to jenkins and test aws infraestructura.
@wassimbenregaya5445
@wassimbenregaya5445 3 жыл бұрын
great videos , very useful thank you , when u use .tf in checkov command it coverge all ur tf files even local modules but ./terraform it covrege third party modules like when u use source="howdio/eks/aws" for example : ( checkov documentation)
@mosksky
@mosksky 3 жыл бұрын
Ty Ned this video is so awesome! Just want to hear your opinion on what value does this validation bring if we could do the same with azure policy? For aws it is simple must present, however for azure is it really needed? (As for educational perposes really great, I've learned a lot!)
@NedintheCloud
@NedintheCloud 3 жыл бұрын
True you could do it with Azure Policy. If you're trying to stick with a cloud agnostic approach, then Checkov could be your one policy tool to rule them all.
@ArandomNutter
@ArandomNutter 2 жыл бұрын
Question is how do you setup your auth creds so you can use Azure, do you have a starting tutorial?
@Luther_Luffeigh
@Luther_Luffeigh 3 жыл бұрын
Can you please cover the topic of using Atlantis and Chekhov? It’s rarely covered on the internet
@dudasamsung5115
@dudasamsung5115 3 жыл бұрын
Good video thanks 😊
@dus10dnd
@dus10dnd 3 жыл бұрын
`pwd` might be more succinct in telling you which directory you're in than `ls`
@NedintheCloud
@NedintheCloud 3 жыл бұрын
Valid point. Linux is still my second language and I think it will be forever.
@monitorgrafana64
@monitorgrafana64 3 жыл бұрын
Can we run checkov without terraform init and creating terraform plan. I wish documentation should explain this. Can we run checkov on just *.tf file or parent directory.
@jenniferkoenig9814
@jenniferkoenig9814 2 жыл бұрын
Yes: install checkov locally with pip, and run the command (checkov -d path/to/your/dir).
@kabiruddin7996
@kabiruddin7996 2 жыл бұрын
where can I find the code for the pipeline?
@arieheinrich3457
@arieheinrich3457 3 жыл бұрын
Please do not remove the install terraform task at the start. Youll get a new version of TF every month as a result without you even checking the release notes to see its not creating new issues. You should have full control over the versions both of the terraform engine and the provider version you are using and lock them to let you verify them before you run things on your cloud infra. If the version you want is the one installed its exactly 1 sec of checking added to your process and if there is a new one but you wanted one version before it will install it on the hosted agent
@NedintheCloud
@NedintheCloud 3 жыл бұрын
I totally get where you're coming from with the install task. Since Terraform hit 1.0, I feel okay using the latest, but I probably wouldn't recommend it for production workloads or regulated industries.
Terraform Basics: Input Variables
33:54
Ned in the Cloud
Рет қаралды 7 М.
Exploring the Import Block in Terraform 1.5
23:44
Ned in the Cloud
Рет қаралды 15 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 40 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,8 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 51 МЛН
Setup Gitflow and Run Terraform in an Azure DevOps Pipeline
44:23
Azure Terraformer
Рет қаралды 1,9 М.
Azure DevOps Pipelines with Terraform and Stages
22:26
Travis Roberts
Рет қаралды 63 М.
Using Azure Storage for Terraform State - Best Practices
25:09
Ned in the Cloud
Рет қаралды 3,4 М.
Managing Multiple Environments with Terraform
20:39
Ned in the Cloud
Рет қаралды 6 М.
What is Checkov? Benefits, Key Features, and Examples
13:05
Using Terraform with Azure
45:00
John Savill's Technical Training
Рет қаралды 117 М.
Using CheckOv For Terraform Code Scanning | Simple & Easy Way
16:21
CloudOps Champion
Рет қаралды 282
Terraform Basics: Output Values
28:18
Ned in the Cloud
Рет қаралды 6 М.
Azure DevOps Tutorial for Beginners | CI/CD with Azure Pipelines
36:29
TechWorld with Nana
Рет қаралды 1,3 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 40 МЛН