Resource pack containing helper functions and classes for Inspec-gcp profiles.
This is not an officially supported Google product. This code is intended to help users assess their security posture on the Google Cloud against the CIS Benchmark. This code is not certified by CIS.
For example, using InSpec
inspec init profile myprofile --platform gcpThis should be updated to point here instead of directly to the InSpec GCP resource pack:
depends:
- name: inspec-gcp-helpers
url: https://github.com/lxndrblz/inspec-gcp-helpers/archive/master.tar.gzNow we can edit the controls to include lines such as:
gcp_project_id = attribute('gcp_project_id')
gke_cache = GKECache(project: gcp_project_id, gke_locations: ['us-central1-a'])
p gke_cache.gke_clusters_cache
gce_cache = GCECache(project: gcp_project_id, gce_zones: ['us-central1-a'])
p gce_cache.gce_instances_cacheand directly use these methods in downstream profiles.