turbot/kubernetes_insights

Query: container_immutable_root_filesystem

Usage

powerpipe query kubernetes_insights.query.container_immutable_root_filesystem

Steampipe Tables

SQL

select
case when c -> 'securityContext' ->> 'readOnlyRootFilesystem' = 'true' then 'Used' else 'Unused' end as value,
'Immutable Root Filesystem' as label,
case when c -> 'securityContext' ->> 'readOnlyRootFilesystem' = 'true' then 'ok' else 'alert' 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: