turbot/docker_compliance

Query: docker_info_insecure_registries_unused

Usage

powerpipe query docker_compliance.query.docker_info_insecure_registries_unused

Steampipe Tables

SQL

select
id as resource,
case
when registry_config -> 'InsecureRegistryCIDRs' is null
or registry_config -> 'InsecureRegistryCIDRs' = '[]' then 'ok'
else 'alarm'
end as status,
case
when registry_config -> 'InsecureRegistryCIDRs' is null
or registry_config -> 'InsecureRegistryCIDRs' = '[]' then name || ' insecure registries not in use.'
else name || ' insecure registries are in use.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_info;

Controls

The query is being used by the following controls: