turbot/kubernetes_insights

Query: container_privileged

Usage

powerpipe query kubernetes_insights.query.container_privileged

Steampipe Tables

SQL

select
case when c -> 'securityContext' ->> 'privileged' = 'true' then 'Enabled' else 'Disabled' end as value,
'Privileged' as label,
case when c -> 'securityContext' ->> 'privileged' = 'true' then 'alert' else 'ok' end as type
from
kubernetes_pod,
jsonb_array_elements(containers) as c
where
concat(c ->> 'name',name) = $1;

Params

ArgsNameDefaultDescriptionVariable
$1name

    Dashboards

    The query is used in the dashboards: