Google Cloud project management

This topic describes how to add Google Cloud projects to CloudFlow.

For details about required permissions, see Permissions required for Google Cloud

You can choose from the following four onboarding methods to add new Google Cloud Projects:

  • With script - Uses scripts to onboard Google Cloud resources. Changes to projects in Google Cloud after onboarding are automatically synced to CloudFlow.

  • No script - Onboard Google Cloud resources without using scripts. Changes to projects in Google Cloud after onboarding are automatically synced to CloudFlow.

  • API (single account) - Onboard a single project. Changes to the projects after onboarding are not synced.

  • Terraform - Leverage Terraform, the infrastructure-as-code solution, for onboarding your Google Cloud projects into CloudFlow. Changes to projects in Google Cloud after onboarding are automatically synced to CloudFlow.

Notes:

  • To add projects to CloudFlow, you need Google Cloud service account credentials.

  • Onboarding means giving access to CloudFlow to collect data from your Google Cloud projects. To stop data collection (delete your project), you must withdraw access to CloudFlow by revoking the CloudFlow permissions within your cloud vendor environment.

  • Project IDs must be unique across all organizations for the onboarding process to complete successfully.

  • Any changes to projects in an onboarded Google Cloud folder or organization will automatically sync with CloudFlow once every hour.

Access the Onboarding wizard

Do the following:

  1. In the CloudFlow Settings area, click ONBOARDING.

    On the Onboarding Managment page that opens, click +Onboard.

  2. If you are onboarding your first account, click the New Cloud Account button on the welcome page.

  3. Otherwise, click the Google Cloud button and click Next.

    The Google Cloud Onboarding wizard appears.

  4. Select your preferred method to onboard using the Select Onboarding Method dropdown.

    *Automatically syncs changes to projects from Google Cloud to CloudFlow after onboarding.
    Onboarding Method Description Automatic sync*
    With script Uses scripts to onboard Google Cloud resources Yes
    No script Onboard Google Cloud resources without using scripts Yes
    API (single account) Onboard a single Google Cloud via API No
    Terraform Onboard Google Cloud resources using Terraform Yes
  5. Onboard Google Cloud resources using your preferred method:

Permissions required for Google Cloud

Note: When using the "No script" onboarding method, the following APIs must be enabled on the Project level before adding the Google Cloud permissions listed in the table below. For details, see Step 2 in To Onboard Google Cloud resources | No script.

#

Required API Service*

*Click for link to Google Cloud Docs

Permission grant level
1
compute.googleapis.com
Project
2
iam.googleapis.com
Project
3
storage.googleapis.com
Project
4
cloudresourcemanager.googleapis.com
Project
5
logging.googleapis.com
Project

Important: Missing permissions can cause CloudFlow to malfunction and lead to data inconsistencies. AlgoSec is not responsible for any issues arising from missing permissions.

#

Required Permission*

*Click for link to Google Cloud Docs

Permission grant level

  Access level:   READ    
1
iam.serviceAccountViewer
Project
2
serviceusage.serviceUsageAdmin
Project
3
compute.viewer
Project
4
logging.views.access
Project
5
iam.serviceAccounts.list
Project
6
storage.buckets.list
Project
7
compute.networks.list
Project
8
compute.firewalls.list
Project
9
compute.instances.list
Project
10
compute.subnetworks.list
Project
11
resourcemanager.projects.get
Project

The following are mandatory ONLY if Organizations or Folders are onboarded:

12
compute.firewallPolicies.list
Organization or folder
13
resourcemanager.folders.get
Organization or folder
14
resourcemanager.organizations.get
Organization

Enable Google Cloud logs

By enabling Google Cloud logs, CloudFlow can retrieve and analyze logs. This provides data, shown on the Risks page and Network Policy page, such as the date each rule was last used.

Do the following:

  1. In the Google Cloud console, select VPC network > Firewall.

  2. Click the firewall selector at the top of the page.

    The Select From dialog appears.

  3. Select the firewall whose rules you want to log.

  4. Select the rules.

Offboard Google Cloud projects from CloudFlow

Offboarding automated Google Cloud projects from CloudFlow is done via the Google Cloud Console.

Do the following:

  1. Navigate to the Google Cloud Console and select IAM from the navigation menu.

  2. Select the project / folder / organization you want to offboard.

  3. Use the Filter to search for the access project.

  4. Select the access project you want to remove and then click Remove Access.

    A confirmation window appears.

  5. Click CONFIRM.

    The access project and associated project(s) is removed.

Note: Removed projects will automatically sync with CloudFlow once every hour.