Skip to main content

Privacera Documentation

Integrate GCS and GCP with Privacera Platform using the Data Access Server

You can integrate Google Cloud Storage (GCS) and Google BigQuery (GBQ) with Privacera Platform using the Privacera Data Access Server.

Prerequisites

Ensure that the following prerequisites are met:

  • If GCS is being configured, then you need access to an Google Cloud Storage account along with required credentials.

  • If GBQ is being configured, then you need access to an Google Cloud BigQuery account along with required credentials.

  • Get the credential file (JSON) associated with the service account by downloading it.

Procedure
  1. SSH to the instance where Privacera is installed.

  2. Copy the credential file from your machine to a location on your instance where Privacera Manager is configured. Get the file path of the JSON file and add it in the next step.

  3. Run the following commands.

    cd ~/privacera/privacera-manager/
    cp config/sample-vars/vars.dataserver.gcp.yml config/custom-vars/
    vi config/custom-vars/vars.dataserver.gcp.yml
  4. Update the following credential file information.

    GCP_CREDENTIAL_FILE_PATH: "/tmp/my_google_credential.json"

    Note

    You can also add custom properties that are not included by default. See Custom Data Access Server properties.

  5. Run the following commands.

    cd ~/privacera/privacera-manager
    ./privacera-manager.sh update

    After the update, Privacera is installed and a default GCS data source is created.

  6. Add GCS Project ID in the GCS data source.

    1. From the Privacera Portal navigation menu, select Settings > Data Source Registration and edit GOOGLE_CLOUD_STORAGE.

    2. Click Application Properties and add the following properties:

      • Credential Type: Select Google Credentials Local File Path from the dropdown list.

      • Google Credentials Local File Path: Set value to None.

      • Google Project Id: Enter your Google Project ID.

    3. To view the buckets, navigate to Data Inventory > File Explorer.

      Note

      If you can not view the buckets, restart the Data Access Server.

      cd  privacera/privacera-manager
      ./privacera-manager.sh restart dataserver

Tip

You can use Google APIs to apply access control on GCS. For more information, see Access Control using APIs on Privacera Platform.