Skip to content
Community forum

Connecting Snowflake: what goes in plugin?

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

POST /api/v1/connectors with {"plugin": "snowflake", "config": {...}} is rejected. There's no Snowflake plugin in the list either.

Link

1 answer

Accepted answer
Accepted answer

Warehouses use the database plugin, and db_type selects the warehouse. plugin only accepts http_api, database, csv_file and webhook.

json
{
  "plugin": "database",
  "config": {
    "db_type": "snowflake",
    "account": "ORG-ACCOUNT",
    "warehouse": "COMPUTE_WH",
    "database": "ANALYTICS",
    "schema": "PUBLIC",
    "role": "READER",
    "username": "SVC_SUPERO",
    "private_key": "-----BEGIN PRIVATE KEY-----...",
    "query_type": "table",
    "table_names": ["CUSTOMERS"]
  }
}

Snowflake authenticates with a key-pair JWT (recommended) or OAuth client credentials. Warehouse tables are always live and read-only. Leave mode unset on each table and it becomes live_read; setting sync or live_readwrite fails with a 400 naming the table. Your app then queries the table through the normal CRUD and query endpoints, and responses come back stamped access_mode: "warehouse". Every read is a real query against the warehouse, so latency and compute follow your warehouse.

Supero Integrations teamSupero team answered
Link

Your answer

Connecting Snowflake: what goes in plugin? | Supero Community