zscaler-bd-sa / zpc-kustomize-iac-scanning

Vulnerable Kustomize Kubernetes templates.

Home Page:https://www.zscaler.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KustomizeZPC - Vulnerable by design Kustomize deployment

Maintained by Zsclaer-BD-SA Team

Kustomize

Demonstrating secure and non secure kubernetes IaC manifests using Kustomize.io (kubectl -k) overlays.

Whats in the repo

The manifests in this respository, demonstrate how to take a basic NGINX kubernetes deployment with many security issues, and use Zscaler Posture Control (ZPC) to produce a fully compliant manifest to acheive the same NGINX deployment.

⚠️ DO NOT deploy this template examples in a production environment or alongside any sensitive resources.

⚠️ All passwords in this repo are used as an example and should not be used in production

Using kustomize overlays (environments) we see both forms of these configurations here:

  • kustomize/base - Our base manifests, starting manifests, which are insecure.

  • kustomize/overlays/test - A few security updates, but still a lot of non compliance.

  • kustomize/overlays/dev - An example of an empty overlay, produces the same results as base when merged with kustomize build

  • kustomize/overlays/prod - Fully compliant additions to base, this overlay renders a clean bill of health when scanned.

Contributing

Contribution is welcomed!

We would love to hear about more ideas on how to find vulnerable infrastructure-as-code design patterns.

Support

Zscaler-BD-SA Team builds and maintains this repository to encourage the adoption of policy-as-code.

If you need direct support you can contact us at zscaler-partner-labs@z-bd.com.

Zscaler IaC Scanning Projects

About

Vulnerable Kustomize Kubernetes templates.

https://www.zscaler.com


Languages

Language:HTML 76.1%Language:Dockerfile 23.9%