# Source Datastore Connections

Source: https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/

A connection defines how Qualytics authenticates and communicates with your data infrastructure. It stores the credentials, host information, and configuration needed to reach a specific system - whether it is a relational database, a cloud data warehouse, or a file storage bucket.

You create a connection when you add a source datastore: pick a connector, enter its endpoint and credentials (or pull them from a secrets manager), and test it. Once a connection is verified, other datastores can reuse it, so the credentials live in one place. This page covers the connection types, how a connection relates to the datastores that use it, its lifecycle, the advanced options, the network requirements, and how credentials are kept.

## Connection Types

Qualytics supports three connection types, each designed for a different class of data source:

| Type | Description | Examples |
| --- | --- | --- |
| **JDBC** | Relational databases and SQL-based warehouses accessed via JDBC drivers. | PostgreSQL, Snowflake, BigQuery, MySQL, Oracle, SQL Server, Redshift, Databricks, Athena, Synapse, Teradata |
| **DFS** | Distributed file systems and cloud object storage. | Amazon S3, Azure Data Lake Storage (ABFS), Google Cloud Storage |
| **Native** | Platform-specific integrations with their own connection and storage requirements. | AWS Glue Native, Hive Native, MongoDB, Salesforce, Unity Catalog Native. Databricks Native on Databricks-based deployments |

> **Note: Native vs. JDBC**
>
> Native connector availability depends on your deployment. See [Hive Native](https://userguide.qualytics.io/source-datastore/datastore/native/hive/deep-dive/introduction/) and [Unity Catalog Native](https://userguide.qualytics.io/source-datastore/datastore/native/unity-catalog/deep-dive/introduction/) for their requirements. Databricks-based deployments also offer Databricks Native. The [Databricks JDBC connector](https://userguide.qualytics.io/source-datastore/datastore/jdbc/databricks/databricks-connector/) is configured separately.

## Connection vs. Datastore

A connection and a datastore serve different roles:

- A **connection** holds the credentials and endpoint information (host, port, username, password, access keys) needed to authenticate with a system.
- A **datastore** represents a specific data scope within that system (a database + schema for JDBC, a root path for DFS).

This separation means **one connection can be shared across multiple datastores**. For example, a single Snowflake connection (host, role, warehouse, credentials) can serve datastores for `production.public`, `production.sales`, and `production.finance` - each pointing to a different schema.

| Layer | JDBC | DFS | Native |
| --- | --- | --- | --- |
| **Connection** (shared) | Host, Port, Username, Password, Role, Warehouse | URI, Access Key, Secret Key | Connector-specific authentication and endpoints |
| **Datastore** (specific) | Database, Schema | Root Path | Schema |

## Connection Lifecycle

### Creating a Connection

When you add a source datastore with a **new connection**, the connection is created alongside the datastore in a single step:

1. You provide the connection credentials (host, credentials, parameters).
2. You configure the datastore-specific properties (database, schema, or root path).
3. You click **Test Connection** to validate access before saving the connection and datastore.
4. On success, clicking **Finish** creates both the connection and the datastore.

### Reusing a Connection

When you add a source datastore with an **existing connection**, you skip the credential setup:

1. You select a previously created connection from the dropdown.
2. The connection properties are displayed as **read-only** - they cannot be modified from the datastore form.
3. You only configure the datastore-specific properties (database, schema, or root path).
4. The test connection verifies that the existing credentials can reach the new datastore scope.

Reusing a connection needs the **Manager** role. When datastores already use the connection, it also needs the **Editor** team permission on at least one of them. A connection that no datastore uses yet needs only the role.

> **Info**
>
> Reusing connections ensures credential consistency across datastores and reduces the risk of configuration drift. If the password changes, updating the connection once propagates to all datastores that use it.

### Testing a Connection

The **Test Connection** step checks that Qualytics can authenticate and reach the selected database, schema, or storage path. For an enrichment destination, it can also create and remove a temporary object to verify write access. The test reports success or an error describing the failure.

Testing does not save the connection or datastore configuration. Click **Finish** to save it.

### Editing a Connection

Connection properties can be updated through the [Manage Connections](https://userguide.qualytics.io/settings/connections/manage-connections/) page in Settings. When credentials change, Qualytics verifies access again before saving them.

> **Warning**
>
> Editing a connection affects **all datastores** that share it. If you change the host or credentials, every datastore using that connection will use the updated values.

### Deleting a Connection

A connection can only be deleted if it has **no datastores associated** with it. If any datastores still use the connection, the deletion will fail with a `409 Conflict` error - you must delete or reassign those datastores first.

> **Note: Orphaned Connections**
>
> Connections without any associated datastores remain in the system until explicitly deleted. They are visible in the [Manage Connections](https://userguide.qualytics.io/settings/connections/manage-connections/) page and can be reused when creating new datastores.

## Advanced Options

Some connectors offer an **Advanced** section in the connection form, collapsed because the values it holds are rarely changed. Expand it to review or set these options. They belong to the connection, so they apply to every datastore that shares it.

### Max Parallelization

**Max Parallelization** limits how many queries Qualytics runs at the same time against a datastore reached through this connection. It is available on every JDBC connector.

Leave the field empty for no explicit limit, which is the default. Qualytics then chooses how much to run in parallel based on the size of your deployment. Enter a whole number between 1 and 100 to hold it lower, for a database that cannot handle the default amount of parallel reads without slowing down other work on it.

> **Note: The limit applies per datastore, not per connection**
>
> The limit is applied to each datastore on its own. If two operations run at the same time against two different datastores that share this connection, each one gets its own allowance, so the connection can carry up to twice the value you entered. Keep that in mind when several datastores point at the same database through one connection.

Lowering **Max Parallelization** means Profile and Scan operations read less data at a time, so they take longer to finish. Raise it again once the source database can handle more.

> **Tip: Where to set it**
>
> On a new connection, the field appears in the **Advanced** section of the datastore form. For a connection that already exists, open the [Manage Connections](https://userguide.qualytics.io/settings/connections/manage-connections/) page in Settings and edit it there. The datastore form does show the value of a connection you reuse, but read-only, because changing a shared connection affects every datastore that uses it.

## Network Requirements

Qualytics requires **direct network access** from your deployment to your data infrastructure. Consider the following:

- **Firewall rules**: the addresses your deployment connects from must be allowed to reach your database or storage endpoint.
- **Private endpoints**: for databases in private VPCs, configure VPC peering, private endpoints, or a VPN tunnel between your deployment and your network.
- **IP allowlisting**: if your database requires IP allowlisting, add the addresses your deployment connects from to the allowlist.
- **Port access**: ensure the required port is open (for example, 5432 for PostgreSQL, 443 for Snowflake, BigQuery, or S3).

### Finding the addresses to allow

You do not need to ask anyone for the addresses. The datastore form shows them for you: once you pick a connector, an information banner below the form lists the addresses your datastore connections originate from, grouped as **Public addresses** and **Private addresses**. Each group is either configured for your deployment or, when nothing is configured, estimated from it; an estimated group is marked as such and may not be complete (see the note below). Each address has a copy button, so you can paste it straight into your security group, firewall rule, or network policy.

Allow only the group that matches how your deployment reaches the source. A source you connect to over the internet needs the public addresses; a source inside the same private network needs the private ones.

The same banner appears on the **Add Datastore** form, on the enrichment destination form, and in the **Enrichment Destination** step when you create a new destination while adding a source datastore. It does not appear in the **Enrichment Destination** dialog opened from an existing datastore, so copy the addresses from one of those forms when you need them there.

> **Note: The Estimated badge**
>
> A group marked **Estimated** was worked out from your current deployment rather than configured explicitly. The addresses listed are correct, but processing workloads may reach your source from additional addresses. If a connection still fails after you allow everything the banner lists, ask your Qualytics administrator to confirm the full set for your deployment.

## Secrets Management

Instead of storing credentials in Qualytics, a connection can fetch them from an external secrets manager each time it is opened. You configure how Qualytics logs in to the secrets manager and where the secret lives, then write `${key}` in any connection field to use a value from that secret. The integration is generic: HashiCorp Vault is the most common provider, but any secrets manager with a REST login endpoint, token-based authentication, and a JSON secret endpoint works.

See the [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/) pages for the Vault-side setup (KV secret, policy, AppRole), the six form fields with the right values for KV version 1 and 2, the namespace rule, and a troubleshooting table that maps each connection-test message to its fix.

## Authentication Methods

Different connectors support different authentication methods. **Basic** (username and password) is the default method available on all JDBC connectors. The other methods are additional options for specific connectors:

| Method | Description | Connectors |
| --- | --- | --- |
| **Basic** | Username and password. Default for all JDBC connectors. | All JDBC connectors |
| **Keypair** | Private key authentication. | Snowflake |
| **Service Principal** | Microsoft Entra ID service principal with tenant ID and client secret. | Microsoft SQL Server, Synapse, Fabric Analytics, Azure Data Lake Storage |
| **OAuth M2M** | Machine-to-machine OAuth flow. | Databricks |
| **Shared Key** | Access key and secret key. | Amazon S3, Azure Data Lake Storage |
| **Kerberos** | Kerberos ticket-based authentication. | Hive |

## Credential Security

Qualytics encrypts stored connection credentials. Grant each connection only the access its datastores need: read access for source data, and the connector's documented write permissions for an enrichment datastore. Use secrets management when your organization manages credentials outside Qualytics.

## How-tos

Create a new datastore with a new or existing connection.

- **New Connection**

  Create a new source datastore by setting up a new connection from scratch with your own credentials.

  [Setup a Connection](https://userguide.qualytics.io/source-datastore/datastore/how-tos/add-new-source-datastore/)
- **Existing Connection**

  Create a new source datastore by reusing credentials from a connection that already exists.

  [Reuse a Connection](https://userguide.qualytics.io/source-datastore/datastore/how-tos/existing-connection/)
- **Supported Connectors**

  See every connector Qualytics supports and what each one can be used for.

  [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)

---

## See Also

- **Multiple-Schema**

  Create one datastore per schema or folder from a single connection.

  [Multiple-Schema](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/)
- **Supported Connectors**

  Every connector by family, with its enrichment support and multi-schema fields.

  [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)
- **JDBC Connectors**

  How Qualytics reads relational databases and warehouses through JDBC.

  [JDBC Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/jdbc/)
- **DFS Connectors**

  How Qualytics reads files from cloud object storage and distributed file systems.

  [DFS Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/dfs/)
- **Native Connectors**

  How Qualytics reads a platform's own storage or API without its query engine.

  [Native Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/native/)
- **Supported File Formats**

  The file formats DFS datastores read, including compressed variants.

  [Supported File Formats](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-file-formats/)
- **Filename Globbing**

  How DFS datastores group files with similar names into one container.

  [Filename Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/)
- **HashiCorp Vault**

  Pull connection credentials from a secrets manager instead of typing them in.

  [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/)
- **Examples**

  Real scenarios, from onboarding a warehouse to protecting a busy database.

  [Examples](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/examples/)
- **Best Practices**

  Recommendations for scoping datastores, sharing connections, and keeping access tight.

  [Best Practices](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/best-practices/)
- **Permissions**

  The role and team permission each datastore action needs.

  [Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/)
- **How It Works**

  How a datastore maps to your storage, the layers behind it, the lifecycle, and the Timeline.

  [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/how-it-works/)

*Last updated: November 16, 2026.*
