Read-only Google Cloud inventory for CloudSlash. It discovers Compute Engine instances, disks, static addresses, forwarding rules, networks, subnetworks, and Cloud Storage buckets, then emits normalized CRNs and relationships to the core.
The plugin only reads metadata. Grant a dedicated service account:
resourcemanager.projects.getcompute.instances.listcompute.disks.listcompute.addresses.listcompute.forwardingRules.listcompute.networks.listcompute.subnetworks.liststorage.buckets.list
The built-in Viewer and Storage Object Viewer roles cover these. Do not grant
write or admin roles.
- Create a service account in the target project.
- Grant it the read-only permissions above.
- Create a JSON key.
- Add a GCP connection in CloudSlash with the project ID and the JSON key, or
run
cs plugin host gcp --runand use the hosted connection form.
The service account key is stored as a write-only secret by the connection layer. The plugin never uses ambient Google credentials.
go build -o gcp-plugin .The local provider is read-only and exposes no remediation actions.
cs plugin host gcp --run builds cmd/hosted, which serves the v3 source over
native gRPC and gRPC-Web. The CloudSlash CLI isolates the quick tunnel and
forces HTTP/2 so the transport works without a Cloudflare account. See
docs-site/docs/explanation/grpc-web-hosted-plugins.md.