turbot/steampipe-mod-gcp-compliance

Control: GKE clusters shielded nodes integrity monitoring should be enabled

Description

This control ensures that GKE clusters shielded nodes integrity monitoring is enabled.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.kubernetes_cluster_shielded_instance_integrity_monitoring_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.kubernetes_cluster_shielded_instance_integrity_monitoring_enabled --share

SQL

This control uses a named query:

select
self_link resource,
case
when (node_config -> 'ShieldedInstanceConfig' ->> 'EnableIntegrityMonitoring')::bool then 'ok'
else 'alarm'
end as status,
case
when (node_config -> 'ShieldedInstanceConfig' ->> 'EnableIntegrityMonitoring')::bool then title || ' shielded instance integrity monitoring enabled.'
else title || ' shielded instance integrity monitoring disabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Tags