turbot/steampipe-mod-kubernetes-compliance

Benchmark: 5.7.4 The default namespace should not be used

Description

Kubernetes provides a default namespace, where objects are placed if no namespace is specified for them. Placing objects in this namespace makes application of RBAC and other controls more difficult.

Remediation

Ensure that namespaces are created to allow for appropriate segregation of Kubernetes resources and that all new resources are created in a specific namespace.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-kubernetes-compliance

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select 5.7.4 The default namespace should not be used.

Run this benchmark in your terminal:

powerpipe benchmark run kubernetes_compliance.benchmark.cis_kube_v120_v100_5_7_4

Snapshot and share results via Turbot Pipes:

powerpipe benchmark run kubernetes_compliance.benchmark.cis_kube_v120_v100_5_7_4 --share

Controls

Tags