{"id":13533324,"url":"https://github.com/turbot/steampipe-mod-kubernetes-compliance","last_synced_at":"2025-04-15T21:19:57.381Z","repository":{"id":40419465,"uuid":"400000462","full_name":"turbot/steampipe-mod-kubernetes-compliance","owner":"turbot","description":"Run individual controls or full compliance benchmarks for NSA CISA Kubernetes Hardening Guidance across all of your Kubernetes clusters using Powerpipe and Steampipe.","archived":false,"fork":false,"pushed_at":"2025-04-15T07:37:43.000Z","size":5722,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-15T08:32:58.237Z","etag":null,"topics":["compliance","hacktoberfest","k8s","kubernetes","kubernetes-api","powerpipe","powerpipe-mod","security","steampipe","steampipe-mod"],"latest_commit_sha":null,"homepage":"https://hub.powerpipe.io/mods/turbot/kubernetes_compliance","language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-26T01:09:24.000Z","updated_at":"2025-04-15T07:37:17.000Z","dependencies_parsed_at":"2023-01-28T19:15:58.364Z","dependency_job_id":"301f38df-54cc-45f5-acf7-29cb4e78ac32","html_url":"https://github.com/turbot/steampipe-mod-kubernetes-compliance","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-kubernetes-compliance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-kubernetes-compliance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-kubernetes-compliance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-mod-kubernetes-compliance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-mod-kubernetes-compliance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249154340,"owners_count":21221399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compliance","hacktoberfest","k8s","kubernetes","kubernetes-api","powerpipe","powerpipe-mod","security","steampipe","steampipe-mod"],"created_at":"2024-08-01T07:01:18.719Z","updated_at":"2025-04-15T21:19:57.360Z","avatar_url":"https://github.com/turbot.png","language":"Pascal","funding_links":[],"categories":["Kubernetes","Pascal","Open Source Projects","Tools"],"sub_categories":["Kubernetes"],"readme":"# Kubernetes Compliance Mod for Powerpipe\n\nMultiple checks covering industry defined security best practices for Kubernetes. The mod supports parsing and analyzing Kubernetes manifest files, allowing you to assess compliance directly on your configuration files before deployment. Includes support for CIS, National Security Agency (NSA) and Cybersecurity and Infrastructure Security Agency (CISA) Cybersecurity technical report for Kubernetes hardening.\n\nRun checks in a dashboard:\n![image](https://raw.githubusercontent.com/turbot/steampipe-mod-kubernetes-compliance/main/docs/kubernetes_nsa_csa_v1.png)\n\nOr in a terminal:\n![image](https://raw.githubusercontent.com/turbot/steampipe-mod-kubernetes-compliance/main/docs/kubernetes_compliance_mod_console_output.png)\n\n## Documentation\n\n- **[Benchmarks and controls →](https://hub.powerpipe.io/mods/turbot/kubernetes_compliance/controls)**\n- **[Named queries →](https://hub.powerpipe.io/mods/turbot/kubernetes_compliance/queries)**\n\n## Getting Started\n\n### Installation\n\nInstall Powerpipe (https://powerpipe.io/downloads), or use Brew:\n\n```sh\nbrew install turbot/tap/powerpipe\n```\n\nThis mod also requires [Steampipe](https://steampipe.io) with the [Kubernetes plugin](https://hub.steampipe.io/plugins/turbot/kubernetes) as the data source. Install Steampipe (https://steampipe.io/downloads), or use Brew:\n\n```sh\nbrew install turbot/tap/steampipe\nsteampipe plugin install kubernetes\n```\n\nSteampipe will automatically use your default Kubernetes credentials. Optionally, you can [setup multiple context connections](https://hub.steampipe.io/plugins/turbot/kubernetes#multiple-context-connections) or [customize Kubernetes credentials](https://hub.steampipe.io/plugins/turbot/kubernetes#configuring-kubernetes-cluster-credentials).\n\nFinally, install the mod:\n\n```sh\nmkdir dashboards\ncd dashboards\npowerpipe mod init\npowerpipe mod install github.com/turbot/steampipe-mod-kubernetes-compliance\n```\n\n### Browsing Dashboards\n\nStart Steampipe as the data source:\n\n```sh\nsteampipe service start\n```\n\nStart the dashboard server:\n\n```sh\npowerpipe server\n```\n\nBrowse and view your dashboards at **http://localhost:9033**.\n\n### Running Checks in Your Terminal\n\nInstead of running benchmarks in a dashboard, you can also run them within your\nterminal with the `powerpipe benchmark` command:\n\nList available benchmarks:\n\n```sh\npowerpipe benchmark list\n```\n\nRun a benchmark:\n\n```sh\npowerpipe benchmark run kubernetes_compliance.benchmark.cis_v170\n```\n\nDifferent output formats are also available, for more information please see\n[Output Formats](https://powerpipe.io/docs/reference/cli/benchmark#output-formats).\n\n### Common and Tag Dimensions\n\nThe benchmark queries use common properties (like `connection_name`, `context_name`, `namespace`, `path` and `source_type`) and tags that are defined in the form of a default list of strings in the `variables.sp` file. These properties can be overwritten in several ways:\n\nIt's easiest to setup your vars file, starting with the sample:\n\n```sh\ncp powerpipe.ppvars.example powerpipe.ppvars\nvi powerpipe.ppvars\n```\n\nAlternatively you can pass variables on the command line:\n\n```sh\npowerpipe benchmark run kubernetes_compliance.benchmark.cis_v170 --var 'tag_dimensions=[\"Environment\", \"Owner\"]'\n```\n\nOr through environment variables:\n\n```sh\nexport PP_VAR_common_dimensions='[\"connection_name\", \"context_name\", \"namespace\", \"path\", \"source_type\"]'\nexport PP_VAR_tag_dimensions='[\"Environment\", \"Owner\"]'\npowerpipe benchmark run kubernetes_compliance.benchmark.cis_v170\n```\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Steampipe](https://steampipe.io) and [Powerpipe](https://powerpipe.io) are products produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). They are distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #powerpipe on Slack →](https://turbot.com/community/join)**\n\nWant to help but don't know where to start? Pick up one of the `help wanted` issues:\n\n- [Powerpipe](https://github.com/turbot/powerpipe/labels/help%20wanted)\n- [Kubernetes Compliance Mod](https://github.com/turbot/steampipe-mod-kubernetes-compliance/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-mod-kubernetes-compliance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-mod-kubernetes-compliance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-mod-kubernetes-compliance/lists"}