HARBOR USER GUIDE

Google Cloud

Link Google Cloud projects with gcloud or a service account key, and discover Compute Engine VMs.

Google Cloud

Harbor lists the Linux Compute Engine VMs in your Google Cloud projects and imports them as hosts.

Open Connectors › Cloud & infrastructure › Google Cloud and choose how Harbor signs in:

  • gcloud CLI: uses your existing gcloud auth login, on this computer or (on Windows) in WSL. Nothing is stored in Harbor. Install the Google Cloud CLI and sign in first.
  • Service account key: choose a service account’s JSON key file. It’s encrypted like other saved secrets and only used to sign in to Google.

The identity needs the Compute Viewer role (roles/compute.viewer) on the projects.

Options

  • Project IDs to scan.
  • Zones or regions and Only VMs labelled, to narrow the scan.
  • The SSH username and SSH key imported VMs log in with, and their environment.

Discover and import VMs

Scans list each VM’s state, machine type, OS and addresses. Imported VMs connect over SSH with the account’s username and key. Make sure that key is allowed on the VMs (project or instance SSH keys, or OS Login).

Harbor only reads from the Compute Engine API; it never starts, stops or changes resources.