Connect your warehouse
Pick your warehouse below. See Warehouse access for the access model and what to prepare.
Roadway connects from two fixed IP addresses. Contact Roadway for them before you set up network rules, and for Redshift or ClickHouse setup.
Snowflake
Roadway gets read access to your source data and write access to its own schema only.
Snowflake connects with a key pair only.
You need:
- A Snowflake role that can create users, roles, warehouses, and schemas, such as
ACCOUNTADMIN - The database and source schemas Roadway should read. See Table schemas.
- Names for the new objects: this guide uses
roadway_user,roadway_role,roadway_warehouse, and<your_db>.roadway. The user must be namedroadway_user. You can choose the role, warehouse and schema names in the connect form.
Step 1: create the objects
Log in to the Snowflake web interface and run the following. The statements use plain CREATE with no OR REPLACE, so they never overwrite an existing object of the same name.
-- 1. Role, schema, and warehouse
CREATE ROLE roadway_role;
CREATE SCHEMA <your_db>.roadway;
CREATE WAREHOUSE roadway_warehouse
AUTO_SUSPEND = 60 -- seconds. Snowflake bills at least 60 seconds per resume
WAREHOUSE_SIZE = XSMALL; -- raise only if data volume requires it
-- 2. Usage grants
GRANT USAGE ON DATABASE <your_db> TO ROLE roadway_role;
GRANT USAGE ON SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT USAGE ON WAREHOUSE roadway_warehouse TO ROLE roadway_role;
-- 3. Read and write inside the roadway schema only
GRANT SELECT ON ALL TABLES IN SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT SELECT ON ALL VIEWS IN SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT SELECT ON FUTURE TABLES IN SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT SELECT ON FUTURE VIEWS IN SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT CREATE TABLE, CREATE VIEW ON SCHEMA <your_db>.roadway TO ROLE roadway_role;
GRANT CREATE FUNCTION ON SCHEMA <your_db>.roadway TO ROLE roadway_role; -- Roadway's dbt runs create a URL-decoding function
Step 2: create the user with a key pair
-
Generate an unencrypted key pair on your computer:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub -
Create the user and set the public key on it:
CREATE USER roadway_user TYPE = SERVICE RSA_PUBLIC_KEY = '<contents of rsa_key.pub without the PEM header and footer>' DEFAULT_ROLE = 'roadway_role' DEFAULT_WAREHOUSE = 'roadway_warehouse' DEFAULT_NAMESPACE = '<your_db>.roadway'; GRANT ROLE roadway_role TO USER roadway_user; -
Keep
rsa_key.p8. You upload it in Roadway's Snowflake connect form in Step 4. Passwords aren't accepted.
See Snowflake's key-pair authentication guide.
Step 3: grant read access to your source data
Repeat for each database and schema Roadway should read, such as Segment, your Stripe sync, CRM, and ad data:
GRANT USAGE ON DATABASE <source_db> TO ROLE roadway_role;
GRANT USAGE ON SCHEMA <source_db>.<source_schema> TO ROLE roadway_role;
GRANT SELECT ON ALL TABLES IN SCHEMA <source_db>.<source_schema> TO ROLE roadway_role;
GRANT SELECT ON ALL VIEWS IN SCHEMA <source_db>.<source_schema> TO ROLE roadway_role;
GRANT SELECT ON FUTURE TABLES IN SCHEMA <source_db>.<source_schema> TO ROLE roadway_role;
GRANT SELECT ON FUTURE VIEWS IN SCHEMA <source_db>.<source_schema> TO ROLE roadway_role;
For example, <source_db>.<source_schema> might be revenue_db.stripe. If a view reads from tables in other schemas, grant access to those too.
Step 4: connect in Roadway
In Roadway's Snowflake connect form, enter:
- Account ID, for example
myorg-myaccount, without.snowflakecomputing.com - Database name
- Warehouse
- Role (optional, default
roadway_role) - Schema (optional, default
roadway) - Private key file: upload
rsa_key.p8(.p8,.keyand.pemare accepted)
Click Connect. Tell Roadway the source schemas you granted.
If you use a Snowflake network policy, allow Roadway's two IP addresses. See Network access and security.
Verify
-
Check the grants:
SHOW GRANTS TO ROLE roadway_role; SHOW GRANTS TO USER roadway_user; -
Test as the Roadway role:
USE ROLE roadway_role; USE WAREHOUSE roadway_warehouse; SELECT COUNT(*) FROM <source_db>.<source_schema>.<a_source_table>; CREATE TABLE <your_db>.roadway.connection_test (id INT); DROP TABLE <your_db>.roadway.connection_test;All three statements should succeed.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
Object does not exist or not authorized |
Missing USAGE on a database or schema |
Grant USAGE at each level |
| New tables aren't visible | Missing FUTURE grants |
Add GRANT SELECT ON FUTURE TABLES |
| Login blocked | Wrong public key on roadway_user, an encrypted private key, or a network policy |
Re-set the public key, upload an unencrypted key, or allow Roadway's IPs |
| Warehouse suspended errors | Role lacks USAGE on the warehouse |
Grant USAGE |
Vendor docs: GRANT privilege, CREATE USER, Key-pair authentication, Network policies
BigQuery
In BigQuery, Roadway connects with a service account that Roadway creates for your workspace (bq-conn-<workspaceId>@...).
You grant that account access to your project. Roadway's BigQuery connect form shows its email with a copy button.
You need:
- The workspace-specific service account email, copied from Roadway's BigQuery connect form
- A Google Cloud user who can edit IAM and create datasets (
Project IAM AdminandBigQuery Admin, orOwner) - Your source datasets, such as the GA4 export dataset
analytics_<PROPERTY_ID>. See GA4 BigQuery export. - The location of your source datasets. Create
roadwayin the same location, because BigQuery can't join data across locations.
Step 1: grant read and query access
In the Cloud console
- Open the Google Cloud console and select your project.
- Go to IAM & Admin > IAM.
- Click Grant access.
- In New principals, enter the service account email from the connect form.
- Assign these roles:
- BigQuery Data Viewer (
roles/bigquery.dataViewer): read-only access to your BigQuery data - BigQuery Job User (
roles/bigquery.jobUser): permission to run queries
- BigQuery Data Viewer (
- Click Save.
Narrower access (recommended)
Project-level BigQuery Data Viewer lets Roadway read every dataset in the project. To limit access, grant only BigQuery Job User at the project level, and grant BigQuery Data Viewer on each source dataset:
GRANT `roles/bigquery.dataViewer`
ON SCHEMA `your-project.analytics_123456789`
TO "serviceAccount:ROADWAY_SERVICE_ACCOUNT_EMAIL";
Repeat for each source dataset, such as your Segment, Stripe, and CRM datasets.
Step 2: create the roadway dataset
- In BigQuery Studio, click your project, then Create dataset.
- Set Dataset ID to
roadwayand choose the same Location as your source data. - Click Create dataset.
- Open the dataset, click Sharing > Permissions > Add principal.
- Add the service account with BigQuery Data Editor (
roles/bigquery.dataEditor) so it can read and write in this dataset. - Make sure the account has BigQuery Job User at the project level, if you haven't already.
With the command line:
bq --location=US mk --dataset your-project:roadway
gcloud projects add-iam-policy-binding your-project \
--member="serviceAccount:ROADWAY_SERVICE_ACCOUNT_EMAIL" \
--role="roles/bigquery.jobUser"
GRANT `roles/bigquery.dataEditor`
ON SCHEMA `your-project.roadway`
TO "serviceAccount:ROADWAY_SERVICE_ACCOUNT_EMAIL";
Step 3: connect in Roadway
In Roadway's BigQuery connect form, enter your project ID and the dataset name (default roadway), then click Connect. Roadway detects the dataset location for you. Tell Roadway which source datasets you granted.
Verify
-
In IAM, confirm the service account has BigQuery Job User on the project.
-
Under each source dataset's Sharing > Permissions, confirm the account has BigQuery Data Viewer (or inherits it from the project).
-
Under
roadway, confirm BigQuery Data Editor. -
Check the dataset locations match:
SELECT schema_name, location FROM `your-project.region-us`.INFORMATION_SCHEMA.SCHEMATA;Change
region-usto your region. Locations ofroadwayand your source datasets should be the same.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
Access Denied: ... bigquery.jobs.create |
Missing Job User on the project | Grant it at project level |
Not found: Dataset ... was not found in location |
roadway and source data are in different locations |
Recreate roadway in the source location |
| Can read source, can't create tables | Missing BigQuery Data Editor on roadway |
Grant it on the dataset |
| GA4 export link fails | Organization policy blocks service accounts, or API not enabled | See GA4 BigQuery export |
Vendor docs: BigQuery IAM roles, Control access to datasets, DCL GRANT statement
Redshift
Redshift is supported by arrangement. Roadway reads tables you model to the table schemas. Roadway sets up the Redshift connection with you. You can't connect Redshift in the app.
Create a Roadway database user, grant it access to the schemas Roadway needs, and open network access to your cluster or workgroup. Roadway sets up the connection with you, using a user and password. IAM authentication isn't supported.
You need:
- Access to the Redshift cluster or serverless workgroup as a superuser or a user with
CREATE USERprivilege - The database and schemas Roadway should read, plus a schema Roadway can write to
- Permission to edit the VPC security group and cluster settings in the AWS console
Step 1: create the user and grant privileges
Connect to your cluster with a SQL client or the Redshift query editor, and run the following. Replace the placeholders. Roadway doesn't need access to your entire warehouse.
-- 1. User. Redshift passwords: 8 to 64 characters with an uppercase letter, a lowercase letter, and a number.
CREATE USER roadway_user PASSWORD '<your_strong_password>';
-- 2. A schema Roadway can write modeled tables to
CREATE SCHEMA IF NOT EXISTS roadway;
GRANT USAGE, CREATE ON SCHEMA roadway TO roadway_user;
GRANT SELECT, INSERT ON ALL TABLES IN SCHEMA roadway TO roadway_user;
-- 3. Read access to each source schema Roadway needs
GRANT USAGE ON SCHEMA <your_schema_name> TO roadway_user;
GRANT SELECT ON ALL TABLES IN SCHEMA <your_schema_name> TO roadway_user;
-- 4. Read access to tables created in the future by your loader or ETL user
ALTER DEFAULT PRIVILEGES FOR USER <your_internal_management_user> IN SCHEMA <your_schema_name>
GRANT SELECT ON TABLES TO roadway_user;
Repeat step 3 and step 4 for every source schema. ALTER DEFAULT PRIVILEGES applies only to objects created after you run it, so run the GRANT ... ON ALL TABLES line as well.
Use ALTER DEFAULT PRIVILEGES FOR USER with the name of the user that creates your tables (for example your Fivetran, Airbyte, or dbt user).
Step 2: configure network access
- In the AWS Management Console, go to Amazon Redshift and select your cluster or serverless workgroup.
- Open the security group the cluster uses.
- Add an inbound rule that allows TCP on the Redshift port (default
5439for provisioned clusters) from Roadway's IP addresses. - If Roadway connects over the public internet, turn on Publicly accessible for the cluster or workgroup, and make sure its VPC has an internet gateway and a route.
For details, follow AWS's guide: Configuring security group communication settings.
Add Roadway's two IP addresses to the inbound rule. Roadway connects only over a public endpoint with an allowlist. VPC peering and PrivateLink aren't supported. Tell Roadway if you use Redshift Serverless.
Step 3: share connection details
Send Roadway these details for the connection:
| Item | Example |
|---|---|
| Cluster or workgroup endpoint | example-cluster.abc123xyz.us-west-2.redshift.amazonaws.com or example.<account_id>.us-west-2.redshift-serverless.amazonaws.com |
| Database | analytics |
| Schema | roadway and your source schemas |
| User | roadway_user |
| Password | Shared the way Roadway asks, never by email or chat |
| Region | us-west-2 |
| Port | 5439 (assumed if you don't say) |
Verify
-
Log in as the new user from a machine outside your VPC and run:
SELECT current_user, current_database(); SELECT COUNT(*) FROM <your_schema_name>.<a_source_table>; CREATE TABLE roadway.connection_test (id INT); DROP TABLE roadway.connection_test; -
Check privileges:
SELECT has_schema_privilege('roadway_user', '<your_schema_name>', 'usage'); SELECT has_table_privilege('roadway_user', '<your_schema_name>.<a_source_table>', 'select');Both return
true.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Connection times out | Security group, route, or public access blocks the connection | Check inbound rules and Publicly accessible |
permission denied for schema |
Missing USAGE |
Grant USAGE ON SCHEMA |
| New tables not readable | Default privileges missing or set for the wrong creator | Run ALTER DEFAULT PRIVILEGES FOR USER with the right user |
password must contain ... |
Password doesn't meet Redshift rules | Use a stronger password |
Vendor docs: GRANT, ALTER DEFAULT PRIVILEGES, CREATE USER
Databricks
Connect Databricks in the app during workspace setup.
Roadway connects with OAuth machine-to-machine (M2M) using a service principal, and runs queries on a SQL warehouse. Personal access tokens aren't supported. Roadway writes to the catalog and schema you enter in the form. The connection test writes, so write access is required.
You need:
- A Databricks workspace with Unity Catalog enabled
- Account or workspace admin rights to create service principals and grant privileges
- The catalog and schemas Roadway should read
Step 1: create a service principal
- In the Databricks account console or workspace, go to Settings > Identity and access > Service principals, and click Add service principal.
- Name it
roadway. - Open the service principal, go to Secrets, and click Generate secret. Copy the client ID and secret. Databricks shows the secret once.
Databricks recommends OAuth machine-to-machine (M2M) for unattended access. See Authorize service principal access with OAuth.
Step 2: create a SQL warehouse
- Go to SQL Warehouses > Create SQL warehouse.
- Name it
roadway, choose a small size, and set a short auto-stop. - Open Permissions and give the service principal Can use.
Step 3: grant Unity Catalog privileges
Run as a user who can grant these privileges. Replace the placeholders.
-- Replace <sp-app-id> with the service principal's application ID
-- Read access to a source schema
GRANT USE CATALOG ON CATALOG <source_catalog> TO `<sp-app-id>`;
GRANT USE SCHEMA ON SCHEMA <source_catalog>.<source_schema> TO `<sp-app-id>`;
GRANT SELECT ON SCHEMA <source_catalog>.<source_schema> TO `<sp-app-id>`;
-- The target schema Roadway writes to
CREATE SCHEMA <roadway_catalog>.roadway;
GRANT USE CATALOG ON CATALOG <roadway_catalog> TO `<sp-app-id>`;
GRANT USE SCHEMA, SELECT, CREATE TABLE, CREATE FUNCTION, MODIFY
ON SCHEMA <roadway_catalog>.roadway TO `<sp-app-id>`;
Repeat the first block for each source schema. Privileges granted on a schema apply to all current and future tables in it. CREATE TABLE covers views, so there's no CREATE VIEW grant. CREATE FUNCTION is needed because Roadway's dbt runs create functions.
Step 4: connect in Roadway
Enter these in Roadway's Databricks connect form:
- Server hostname, for example
adb-1234567890123456.7.azuredatabricks.net, withouthttps:// - HTTP path of the SQL warehouse (under the warehouse's Connection details)
- Catalog and Schema
- Client ID and Client secret of the service principal
Click Connect.
Verify
SHOW GRANTS `<sp-app-id>` ON SCHEMA <source_catalog>.<source_schema>;
Then run a query as the service principal through the SQL warehouse, such as SELECT COUNT(*) FROM <source_catalog>.<source_schema>.<a_table>.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
PERMISSION_DENIED on a table |
Missing USE CATALOG, USE SCHEMA, or SELECT |
Grant at each level |
| Warehouse not usable | No Can use on the SQL warehouse | Add permission |
| Authentication fails | Secret expired or wrong client ID | Generate a new secret |
Vendor docs: Unity Catalog privileges, GRANT, Service principals
ClickHouse
ClickHouse isn't currently supported for self-serve connection, and you can't connect it in the app.
What to expect
- Roadway sets up the connection with you, using a user and password.
- Roadway connects over ClickHouse's native protocol with TLS, default port 9440. Allow that port, not 8443.
- Allow Roadway's two IP addresses.