The Google connector allows you to inspect your Google Cloud infrastructure using their API. The connector is a wrapper around the Google ReST API.

Google Cloud Platform Service Account

A service account is a special kind of account used by an application or a virtual machine (VM) instance, not a person. Applications use service accounts to make authorized API calls. To learn more about the Service Account, you can review Google Cloud Platform documentation

To grant access to the prancer cloud validation framework to browse your Google Cloud Platform, you need to create a Service Account. It is highly recommended to follow official google cloud platform documentation

Here are the recommended steps to creating such a user if you don't have one yet:

  1. Open the Service Accounts page in the Cloud here to access

  2. Open the Service Accounts page

  3. Click Select a project, choose your project, and click Open.

  4. Click Create Service Account.

  5. Enter a service account name (friendly display name), an optional description, select a role you wish to grant to the service account, and then click Save.

  6. create a new key by selecting create key. Select the json as the type of key and it will be downloaded to your local disk. All the information you need is in that json file.

Connector configuration file

Notes: Naming conventions

This file can be named anything you want but we suggest googleConnector.json

    "organization": "company1",
    "type": "google",
    "fileType": "structure",
    "auth_uri": "",
    "token_uri": "",
    "auth_provider_x509_cert_url": "",
    "projects": [
            "project-name": "<project-name>",
            "project-id": "<project-id>",
            "users": [
                    "name": "<service-account-name>",
                    "type": "service_account",
                    "private_key_id": "<private-key-id>",
                    "private_key": "<private-key>",
                    "client_email": "<client-email>",
                    "client_id": "<client-id>",
                    "client_x509_cert_url": "<client_x509_cert_url>",

Remember to substitute all values in this file that looks like a <tag> such as:

tag What to put there
project-name The name of the project in the Google Cloud
project-id project id in the google cloud
service-account-name service account name
private_key_id private key id
private_key Embed the private key in the connector file
private_key_path put the path of the private key in the connector file
client_email client email
client_id client id
client_x509_cert_url client x509 cert url, you get this info from the key json output

It is not recommended to put any secret in the connector file. This is good just for testing purposes.

You should use either private_key or private_key_path

Projects and Service Accounts

The Google Cloud Platform connector supports multiple projects and multiple service accounts for each project.

Private Key

There are three options available to store the private key for the service account: - In connector file as a key - In connector file as a path - In a vault

Keeping the private key in the connector file is good only for testing purposes.

You can keep the path to the private key in your connector file.

Keeping the private key in the vault is the most secure and recommended way of keeping the secret in prancer framework. To learn more visit secrets section