Warehouse access
In a warehouse-native implementation, Roadway reads your existing tables and builds its modeled tables in a schema or dataset that you create for it.
Roadway doesn't need access to your whole warehouse.
Supported warehouses
| Warehouse | How you connect | Guide |
|---|---|---|
| Snowflake | In the app, during workspace setup | Connect Snowflake |
| BigQuery | In the app, during workspace setup | Connect BigQuery |
| Databricks | In the app, during workspace setup | Connect Databricks |
| Redshift | Limited. Contact Roadway. Roadway reads tables you model. | Connect Redshift |
| ClickHouse | Not self-serve. Roadway sets it up with you. | ClickHouse |
Snowflake, BigQuery and Databricks: connect in the app during workspace setup (Connect your data, then choose your warehouse). Redshift and ClickHouse: contact Roadway.
The access model
Every in-app warehouse guide sets up the same three layers of access.
| Layer | What Roadway can do | Where |
|---|---|---|
| Read | SELECT from the tables Roadway needs |
Your source schemas, such as Segment, GA4 export, Stripe, CRM, ad spend |
| Write | Create tables and views, insert rows | A dedicated roadway schema or dataset only |
| Run queries | Use compute (a warehouse, job, or cluster) | A dedicated, small compute resource where your platform allows it |
Roadway never needs permission to change or delete your source tables.
Before you connect
- Land your data. Roadway reads tables that match the table schemas. Confirm each table exists and is populated.
- Remove PII. Roadway doesn't use PII. Expose views without email, name, phone, or address. See Create PII-free views.
- Decide the schema. Use a dedicated schema or dataset called
roadway, in the same region as your source data. - Choose compute. Use a small dedicated warehouse or cluster which keeps Roadway's queries away from your workloads and lets you see and cap its cost.
- Have your credentials ready. You enter them in Roadway's connect form, and they go straight into Roadway's secret store. Don't send them by email or chat. See Network access and security.
What to tell Roadway
The connect form takes the connection details. During onboarding, tell Roadway:
| Item | Examples |
|---|---|
| Source schema names | segment_prod, analytics_123456789, stripe |
| Your table mapping | Which tables supply page views, users, revenue, CRM, ad spend |
Verify
After you connect, check each table against Table schemas.
Network access and security
This guidance applies to every warehouse connection.
Least privilege
- Create a dedicated Roadway user or service identity. Don't reuse a personal or shared account.
- Grant
SELECTonly on the schemas Roadway needs. - Grant create and write permissions only in the
roadwayschema or dataset. - Review grants quarterly and remove tables Roadway no longer uses.
Credentials
- For Snowflake, BigQuery and Databricks, you enter secrets in Roadway's connect form, and they go straight into Roadway's secret store. Don't send credentials by email or in chat.
- Snowflake requires a key pair. Databricks uses an OAuth service principal.
- Rotate credentials when people leave, and on a schedule.
Authentication by warehouse
| Warehouse | Authentication |
|---|---|
| BigQuery | Grant the per-workspace service account shown in the app (bq-conn-<workspaceId>): BigQuery Job User on the project, BigQuery Data Viewer on each source dataset, and BigQuery Data Editor on the roadway dataset. No key leaves your side. |
| Snowflake | Key pair only. Upload an unencrypted PKCS#8 private key (.p8, .key or .pem). The user must be roadway_user. Passwords are rejected. |
| Databricks | OAuth machine-to-machine with a service principal (client ID and secret). No personal access token. |
| Redshift, ClickHouse | Not self-serve. Roadway sets it up with you, using a user and password. No Redshift IAM. |
Network allowlisting
Cloud warehouses can restrict which IP addresses connect. If you use network policies, security groups, or IP access lists, allow Roadway's egress addresses.
| Warehouse | Where to configure |
|---|---|
| Snowflake | Network policy on the user or account |
| BigQuery | No allowlist needed. Access is by IAM. If you use VPC Service Controls, add an ingress rule for Roadway's service account, which lives in Roadway's project |
| Redshift | VPC security group inbound rule for the cluster port, and Publicly accessible setting |
| Databricks | Workspace IP access list |
Roadway connects from two fixed IP addresses. Add both to your allowlist. Email contact@roadwayai.com for the addresses. Some ad-platform syncs use a partner's addresses, so ask for those too.
Data protection
- Expose views, not raw tables, if tables contain PII. See Create PII-free views.
- Keep your source data in one region and place the
roadwayschema in the same region. - Turn on your warehouse's query and access logging to audit Roadway's activity.
Cost control
- Use a small dedicated compute resource. Snowflake: an
XSMALLwarehouse with auto-suspend. Databricks: a small SQL warehouse. - Set resource monitors or quotas where your warehouse supports them.
Create PII-free views
Roadway doesn't use personally identifiable information (PII), such as names, email addresses, phone numbers, or street addresses, even for users.
The safest way to meet that requirement is to give Roadway views that don't contain those columns, and to grant access to the views instead of the raw tables.
You need:
- Write access to a schema where you can create views, for example
roadway_source - A list of the columns in each source table that contain PII
Steps
-
List PII columns for each table that Roadway reads: users, contacts, customers, form submissions.
-
Create a view for each table that selects only the columns Roadway needs, and transforms any risky ones:
CREATE OR REPLACE VIEW roadway_source.users AS SELECT id AS user_id, created_at AS signed_up_at, plan_type, -- categorical CASE WHEN company_size < 11 THEN '1-10' WHEN company_size < 51 THEN '11-50' ELSE '51+' END AS company_size -- bucketed, not exact FROM app.users; -- not selected: email, full_name, phone, address, company_name -
Grant
SELECTon the views to the Roadway role, not on the underlying tables. See Connect your warehouse. -
Avoid PII in IDs and dimensions. Don't use an email as
user_id. Avoid high-cardinality values such as exact revenue or company name.
Verify
-
Run
SELECT * FROM roadway_source.users LIMIT 10and read every column. -
As the Roadway role, confirm it can't read the underlying table:
-- should fail with a permissions error SELECT * FROM app.users LIMIT 1;