checkov icon indicating copy to clipboard operation
checkov copied to clipboard

Support for kustomize based kubernetes yamls

Open rams3sh opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. Currently I use lot of my k8 deployments based on kustomize to manage the definitions easily. I wanted to have checkov configured as part of my pipeline for code linting. I tried the current version with my k8 yamls but it ended up showing as parse error.

Describe the solution you'd like It would be good if checkov could support kustomize based k8 yamls.

Describe alternatives you've considered None

Additional context None

rams3sh avatar Oct 20 '21 09:10 rams3sh

@metahertz will take this one :)

schosterbarak avatar Oct 25 '21 10:10 schosterbarak

Hey Team

Just wanted to bump up this issue. This feature is a really helpful feature and was thinking if there is any release plans on this.

rams3sh avatar Jan 20 '22 04:01 rams3sh

I tried this --framework kustomize option, but my output keeps empty:

Any ideas?

Thank you

❯ kustomize version
{Version:kustomize/v4.4.1 GitCommit:b2d65ddc98e09187a8e38adc27c30bab078c1dbf BuildDate:2021-11-11T23:27:14Z GoOs:darwin GoArch:amd64}

❯ checkov -f ./app/demo-app/overlays/demo --framework kustomize

       _               _
   ___| |__   ___  ___| | _______   __
  / __| '_ \ / _ \/ __| |/ / _ \ \ / /
 | (__| | | |  __/ (__|   < (_) \ V /
  \___|_| |_|\___|\___|_|\_\___/ \_/

By bridgecrew.io | version: 2.0.791

More details: https://www.bridgecrew.cloud/projects?repository=myname_cli_repo/overlays&branch=bc-6be578d_master&runId=latest

exocode avatar Feb 05 '22 01:02 exocode

Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at https://slack.bridgecrew.io Thanks!

stale[bot] avatar Aug 04 '22 01:08 stale[bot]

Commenting just to keep the issue active.

rams3sh avatar Aug 05 '22 19:08 rams3sh

Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at https://slack.bridgecrew.io Thanks!

stale[bot] avatar Feb 01 '23 21:02 stale[bot]

Commenting just to keep the issue active.

rams3sh avatar Feb 02 '23 01:02 rams3sh

I tried this --framework kustomize option, but my output keeps empty:

Any ideas?

Thank you

❯ kustomize version
{Version:kustomize/v4.4.1 GitCommit:b2d65ddc98e09187a8e38adc27c30bab078c1dbf BuildDate:2021-11-11T23:27:14Z GoOs:darwin GoArch:amd64}

❯ checkov -f ./app/demo-app/overlays/demo --framework kustomize

       _               _
   ___| |__   ___  ___| | _______   __
  / __| '_ \ / _ \/ __| |/ / _ \ \ / /
 | (__| | | |  __/ (__|   < (_) \ V /
  \___|_| |_|\___|\___|_|\_\___/ \_/

By bridgecrew.io | version: 2.0.791

More details: https://www.bridgecrew.cloud/projects?repository=myname_cli_repo/overlays&branch=bc-6be578d_master&runId=latest

I still have the same error, is kustomize going to be supported by checkov?

winston0410 avatar Mar 14 '23 12:03 winston0410

Thanks for contributing to Checkov! We've automatically marked this issue as stale to keep our issues list tidy, because it has not had any activity for 6 months. It will be closed in 14 days if no further activity occurs. Commenting on this issue will remove the stale tag. If you want to talk through the issue or help us understand the priority and context, feel free to add a comment or join us in the Checkov slack channel at https://slack.bridgecrew.io Thanks!

stale[bot] avatar Sep 11 '23 01:09 stale[bot]

Closing issue due to inactivity. If you feel this is in error, please re-open, or reach out to the community via slack: https://slack.bridgecrew.io Thanks!

stale[bot] avatar Oct 08 '23 00:10 stale[bot]