For the complete documentation index, see llms.txt. This page is also available as Markdown.

Warehouse compatibilities

Supported warehouse providers, and the exact access each one needs.

Your goal

Prepare your warehouse so the platform can read the data you want to expose - with the narrowest access that still supports the synchronisation strategy you need.

Expected outcome

A dedicated service account, the right permissions, and a credentials file the platform accepts.

Supported providers

Provider
Authentication

Google BigQuery

A service account and a credentials JSON file.

Snowflake

A service account with key-pair authentication, and a credentials JSON file you assemble.

In both cases the service account needs at least read access on the data you want to expose, plus editing rights on the working schema if you want strategies that handle updates and deletes. See Sync with your data warehouse.

Where the warehouse is the source of truth for the datamart, the platform writes into it as well as reading from it, so a working schema is required rather than optional, and object storage in your environment is needed for live tracking.

Google BigQuery

1

Enable the Cloud Resource Manager API

In the Google Cloud Console, go to APIs & Services > Library, search for Cloud Resource Manager API, open it, and click Enable.

2

Create a working schema, if you need one

Only required for strategies handling updates and deletes. Create a dedicated dataset in your project:

CREATE SCHEMA IF NOT EXISTS `project-name.mediarithmics_dataset`
OPTIONS (
  location = 'EU',
  description = 'Working schema mediarithmics'
);
3

Create a dedicated service account

In the Google Cloud Console, under IAM & Admin > Service Accounts, select your project and create a service account, giving it a name, an ID, and a description.

4

Grant access

Recommended - read-only access to your data, with these roles at project level:

  • bigquery.jobUser

  • bigquery.dataViewer

And, if applicable, this role only on the working schema:

  • bigquery.dataEditor

Granting narrower access

If you do not want to give bigquery.dataViewer at project level, assign it only to specific datasets, tables, or views. In that case you must add these permissions at project level:

  • bigquery.datasets.get

  • bigquery.tables.list

  • bigquery.tables.get

To assign them, create a custom role carrying the bigquery.jobUser role plus those permissions.

If bigquery.dataViewer is still too broad, you can assign the bigquery.tables.getData permission at table level only.

5

Generate a credentials JSON file

On the service account, open the … menu, choose Manage keys, then Add key > Create new key, select JSON, and create. The key downloads automatically.

Snowflake

Connecting to Snowflake requires key-pair authentication.

1

Create the service account and grant permissions

Start from this template. It creates a dedicated service account, role, and warehouse for mediarithmics; gives the service account read-only access on a database of your choice and all its content; and creates a working schema inside the database with full read and write access for the service account.

Adapt it as needed:

  • To restrict access to specific tables or views, the minimum permissions are USAGE on DATABASE, USAGE on SCHEMA, and SELECT on TABLES - or views.

  • If you do not need the working schema, omit the last part of the script.

2

Configure key-pair authentication

Generate a private key:

Then the matching public key:

Assign the public key to the service account, from the Snowflake interface or CLI:

  • Exclude the public key delimiters in the SQL statement.

  • To run this query you need either the MODIFY PROGRAMMATIC AUTHENTICATION METHODS or OWNERSHIP privilege on the user, or the SECURITYADMIN role or higher.

3

Assemble the credentials file

Field
What it holds

user

The user you associated the public key with.

account

Snowflake's "account identifier" - usually the organisation name and the account name, hyphenated.

database

The database containing the data you want to expose.

private_key

The private key generated above, matching the public key on the user.

Verify

  • The credentials file is accepted when you declare the warehouse - an incorrect permission set raises an error at that point. See Data warehouse sync.

  • The service account can read the tables you intend to expose, and nothing more.

  • If you created a working schema, the service account can write in it.

Last updated

Was this helpful?