Welcome

Getting Access

How to access the Monta Data Warehouse


Overview

Access to the Monta Data Warehouse uses Key Pair Authentication for enhanced security. This requires generating a public/private key pair and connecting via Snowflake-compatible tools.

Tool Compatibility

Not all BI or dashboard tools support key pair authentication. If your tool doesn't support private/public key setup, contact your Monta CSM to discuss alternatives.

Quick Start

  1. Generate key pair → 2. Send public key to Monta CSM → 3. Receive connection details → 4. Connect using your preferred tool

Prerequisites

Before accessing the Monta Data Warehouse:

  • Active partnership with a mutual data sharing agreement in place
  • Snowflake-compatible tool that supports key pair authentication (SnowSQL, Python Connector, DBeaver, JDBC, etc.)

Setup: Generate Your Key Pair

Mac OS / Linux (OpenSSL)

Generate a 2048-bit RSA key pair using these commands:

1. Generate private key:

TerminalBash
(umask 077 && openssl genrsa 2048 \ | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt)

umask 077 makes the key file readable only by you.

2. Generate public key:

TerminalBash
openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub

Windows Users

Follow Snowflake's key pair authentication guide for Windows-specific instructions.

Send Your Public Key

Share rsa_key.pub with your Monta CSM via email or Slack. This file is safe to share - it contains only the public key. Monta will respond with your Snowflake account identifier and connection details.

Security Note

We only support unencrypted private keys at this time. Keep your rsa_key.p8 file secure and never share it.


Connection Parameters

Once you receive your credentials, use these values when connecting:

ParameterValue
Accountst17140.eu-west-1
Hostst17140.eu-west-1.snowflakecomputing.com
UsernameYour partner name (e.g., examplepartner)
WarehousePARTNER
DatabasePARTNER
SchemaPRODUCTION_{partner_name}
Private KeyPath to your rsa_key.p8 file

Connecting to Snowflake

Option 1: SnowSQL (CLI Tool)

Install SnowSQL: Follow Snowflake's installation guide for your OS.

Connect:

TerminalBash
snowsql -a st17140.eu-west-1 \ -h st17140.eu-west-1.snowflakecomputing.com \ -u {your_partner_name} \ --private-key-path ~/rsa_key.p8 \ -w PARTNER \ -d PARTNER \ -s PRODUCTION_{your_partner_name}

Replace {your_partner_name} with your actual partner name.


Option 2: Code

Install Snowflake's library for your language: pip install snowflake-connector-python (Python), npm install snowflake-sdk (JavaScript), the net.snowflake:snowflake-jdbc driver from Maven Central (Java) or go get github.com/snowflakedb/gosnowflake/v2 (Go).

Connect with key pair authentication: replace your_partner_name with your partner name. Each example reads rsa_key.p8 from your home folder, counts the rows in charges and prints the result.

import os import snowflake.connector ACCOUNT = "st17140.eu-west-1" PARTNER_NAME = "your_partner_name" WAREHOUSE = "PARTNER" DATABASE = "PARTNER" SCHEMA = f"PRODUCTION_{PARTNER_NAME}" PRIVATE_KEY_FILE = os.path.expanduser("~/rsa_key.p8") with snowflake.connector.connect( account=ACCOUNT, user=PARTNER_NAME, authenticator="SNOWFLAKE_JWT", private_key_file=PRIVATE_KEY_FILE, warehouse=WAREHOUSE, database=DATABASE, schema=SCHEMA, ) as connection: cursor = connection.cursor() (count,) = cursor.execute("SELECT COUNT(*) FROM charges").fetchone() print(f"Charges: {count}")

See Snowflake's key pair authentication docs for Python, Node.js, JDBC and Go.


Option 3: DBeaver (Visual Database Tool)

Download the free community edition and follow these steps:

1. Create new connection: Database → New Database Connection

2. Select Snowflake:

3. Configure connection:

  • Host: st17140.eu-west-1.snowflakecomputing.com:443
  • Database: PARTNER
  • Warehouse: PARTNER
  • Schema: PRODUCTION_{your_partner_name}
  • Username: {your_partner_name}

4. Add private key property:

Go to Driver properties → Right-click → Add new property → Name it private_key_file → Click OK

5. Set private key path:

Click the value field next to private_key_file and enter the full path to your rsa_key.p8 file.

6. Finish: Click Finish. You should see the PARTNER database in your Database Navigator.


Need Help?

If you experience connection issues or have questions, contact your Monta CSM via your usual channel (email or Slack).

Last modified on

Did this page help you?