Control: GKE clusters client certificate authentication should be enabled
Description
This control ensures that GKE clusters client certificate authentication is enabled.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.kubernetes_cluster_client_certificate_authentication_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.kubernetes_cluster_client_certificate_authentication_enabled --share
SQL
This control uses a named query:
select self_link resource, case when master_auth -> 'clusterCaCertificate' is not null or master_auth -> 'clientKey' is not null then 'ok' else 'alarm' end as status, case when master_auth -> 'clusterCaCertificate' is not null or master_auth -> 'clientKey' is not null then title || ' client certificate authentication enabled.' else title || ' client certificate authentication disabled.' end as reason , location as location, project as projectfrom gcp_kubernetes_cluster;