turbot/kubernetes_compliance

Control: Network policies should not have a default policy to allow all ingress traffic

Description

Administrators should use a default policy selecting all Pods to deny all ingress and egress traffic and ensure any unselected Pods are isolated. An 'allow all' policy would override this default and should not be used. Instead, use specific policies to relax these restrictions only for permissible connections.

Usage

Run the control in your terminal:

powerpipe control run kubernetes_compliance.control.network_policy_default_dont_allow_ingress

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run kubernetes_compliance.control.network_policy_default_dont_allow_ingress --share

SQL

This control uses a named query:

network_policy_default_dont_allow_ingress

Tags