Using Checkov with Terraform and Azure DevOps

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 22

  • @d0nhect0r
    @d0nhect0r 2 ปีที่แล้ว +4

    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'

  • @monitorgrafana64
    @monitorgrafana64 3 ปีที่แล้ว +1

    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.

  • @decipheringthematrix56
    @decipheringthematrix56 3 ปีที่แล้ว +1

    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!

  • @darknight0086
    @darknight0086 2 ปีที่แล้ว +1

    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.

  • @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)

  • @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 ☺

  • @dudasamsung5115
    @dudasamsung5115 3 ปีที่แล้ว +1

    Good video thanks 😊

  • @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 ปีที่แล้ว +1

      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

  • @kabiruddin7996
    @kabiruddin7996 3 ปีที่แล้ว

    where can I find the code for the pipeline?

  • @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).

  • @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.