checkov
checkov copied to clipboard
Support for kustomize based kubernetes yamls
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
@metahertz will take this one :)
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.
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
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!
Commenting just to keep the issue active.
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!
Commenting just to keep the issue active.
I tried this
--framework kustomizeoption, 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?
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!
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!