turbot/docker_compliance

Query: docker_info_swarm_manager_auto_lock_mode

Usage

powerpipe query docker_compliance.query.docker_info_swarm_manager_auto_lock_mode

Steampipe Tables

SQL

select
id as resource,
case
when swarm -> 'Cluster' -> 'Spec' -> 'EncryptionConfig' ->> 'AutoLockManagers' = 'true' then 'ok'
else 'alarm'
end as status,
case
when swarm -> 'Cluster' -> 'Spec' -> 'EncryptionConfig' ->> 'AutoLockManagers' = 'true' then name || ' swarm manager run in auto-lock mode.'
else name || ' swarm manager not run in auto-lock mode.'
end as reason
, _ctx ->> 'connection_name' as connection_name
from
docker_info;

Controls

The query is being used by the following controls: