turbot/kubernetes_insights

Query: container_allow_privilege_escalation_status

Usage

powerpipe query kubernetes_insights.query.container_allow_privilege_escalation_status

Steampipe Tables

SQL

select
case when c -> 'securityContext' ->> 'allowPrivilegeEscalation' = 'true' then 'enabled' else 'disabled' end as status,
count(c)
from
kubernetes_pod,
jsonb_array_elements(containers) as c
group by
status;

Dashboards

The query is used in the dashboards: