Control: GKE clusters shielded node secure boot should be enabled
Description
This control ensures that GKE clusters shielded node secure boot is enabled. This control is non-complaint if ishielded node secure boot is disabled.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.kubernetes_cluster_shielded_node_secure_boot_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.kubernetes_cluster_shielded_node_secure_boot_enabled --share
SQL
This control uses a named query:
select self_link resource, case when (node_config -> 'ShieldedInstanceConfig' -> 'EnableSecureBoot')::bool then 'ok' else 'alarm' end as status, case when (node_config -> 'ShieldedInstanceConfig' -> 'EnableSecureBoot')::bool then title || ' shielded nodes secure boot enabled.' else title || ' shielded nodes secure boot disabled.' end as reason , location as location, project as projectfrom gcp_kubernetes_cluster;