turbot/docker_compliance

Query: docker_info_custom_seccomp_profile_applied

Usage

powerpipe query docker_compliance.query.docker_info_custom_seccomp_profile_applied

Steampipe Tables

SQL

select
id as resource,
case
when exists (
select 1
from jsonb_array_elements(security_options) AS elem
where elem @> '"name=seccomp,profile=default"'
) then 'alarm'
else 'ok'
end as status,
case
when exists (
select 1
from jsonb_array_elements(security_options) AS elem
where elem @> '"name=seccomp,profile=default"'
) then name || ' default seccomp profile applied.'
else name || ' custom seccomp profile applied.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_info;

Controls

The query is being used by the following controls: