The following sections describe Cloud Discovery & Visibility (CDV) features and configuration specific to GCP environments.
Before you begin, make sure that the GCP accounts that will be used to retrieve the GCP data have the following permissions:
Permissions for Discovery:
- GCP Private VPC/Subnets permissions:
compute.networks.getcompute.networks.listcompute.subnetworks.getcompute.subnetworks.list
- GCP VM Instance permissions:
compute.instances.getcompute.instances.list
- GCP DNS Zones (Private) permissions:
dns.managedZones.listdns.managedZones.getdns.resourceRecordSets.list
- GCP DNS Zones (Public) permissions:
dns.managedZones.listdns.managedZones.getdns.resourceRecordSets.list
- GCP Load Balancer permissions:
compute.backendBuckets.getcompute.backendBuckets.listcompute.backendServices.getcompute.backendServices.listcompute.forwardingRules.getcompute.forwardingRules.listcompute.globalForwardingRules.getcompute.globalForwardingRules.listcompute.globalNetworkEndpointGroups.listcompute.instanceGroups.getcompute.instanceGroups.listcompute.networkEndpointGroups.getcompute.networkEndpointGroups.listcompute.regionBackendServices.getcompute.regionBackendServices.listcompute.regionNetworkEndpointGroups.getcompute.regionNetworkEndpointGroups.listcompute.regionTargetHttpProxies.getcompute.regionTargetHttpProxies.listcompute.regionTargetHttpsProxies.getcompute.regionTargetHttpsProxies.listcompute.regionTargetTcpProxies.getcompute.regionTargetTcpProxies.listcompute.regionUrlMaps.getcompute.regionUrlMaps.listcompute.targetHttpProxies.getcompute.targetHttpProxies.listcompute.targetHttpsProxies.getcompute.targetHttpsProxies.listcompute.targetPools.getcompute.targetPools.listcompute.targetSslProxies.getcompute.targetSslProxies.listcompute.targetTcpProxies.getcompute.targetTcpProxies.listcompute.urlMaps.getcompute.urlMaps.list
- GCP Private Endpoints permissions:
dns.managedZones.getdns.managedZones.listdns.resourceRecordSets.listcompute.globalForwardingRules.getcompute.globalForwardingRules.listcompute.forwardingRules.getcompute.forwardingRules.list
- GCP Kubernetes Engine permissions:
container.clusters.getcontainer.clusters.listcompute.instanceGroups.getcontainer.services.listcontainer.pods.listdns.managedZones.listdns.resourceRecordSets.list
Permissions for Visibility:
- GCP Cloud Logging permissions:
logging.sinks.createlogging.sinks.deletelogging.sinks.getlogging.sinks.updatelogging.sinks.list
- GCP Pub/Sub permissions:
pubsub.subscriptions.createpubsub.subscriptions.deletepubsub.subscriptions.getpubsub.subscriptions.listpubsub.subscriptions.updatepubsub.subscriptions.consumepubsub.topics.createpubsub.topics.deletepubsub.topics.getpubsub.topics.listpubsub.topics.getIamPolicypubsub.topics.setIamPolicypubsub.topics.attachSubscription
- GCP Operation permissions:
compute.globalOperations.getcompute.regionOperations.getcompute.zoneOperations.get
Permissions for manually configuring the Visibility system: If your GCP user account does not have the correct write permissions, in order to enable visibility, you must manually configure the GCP topic, sink, and subscription rules. For more details, see Manually configuring the GCP topic, sink, and subscription.
- GCP Cloud Logging permissions:
logging.sinks.get
- GCP Pub/Sub permissions:
pubsub.topics.getIamPolicypubsub.topics.getpubsub.subscriptions.consumepubsub.subscriptions.create