> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jedify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data sources

> Declare your warehouses and other sources in the Jedify resource. The operator connects each one and reports how it stands.

Each source is an entry under `dataSources` in your Jedify resource. The operator connects it once your account exists, connects it again whenever the entry or its credentials change, and reports its state on the resource.

```yaml theme={null}
spec:
  dataSources:
    - name: warehouse
      type: bigquery
      workloadIdentity: { projectId: acme-dwh }
```

## Two ways to sign in to a source

| | How | Sources |
| - | - | - |
| **No key** (`workloadIdentity`) | The source trusts the installation's own identity. Nothing secret exists. | [BigQuery](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/bigquery.md), [Snowflake](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/snowflake.md) |
| **Credentials** (`credentials`) | A secret in your secret manager, or a Kubernetes Secret, holding the source's credentials. | Every other source below, and BigQuery or Snowflake with a key |

Prefer no key wherever the source supports it: there is nothing to leak, and nothing to rotate.

## The sources

| Kind | Sources |
| - | - |
| Warehouses (`dwh`) | [BigQuery](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/bigquery.md), [Snowflake](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/snowflake.md) |
| Pipelines (`pipeline`) | [dbt Cloud](https://docs.jedify.com/self-hosted/gcp/configure/data-sources/dbt.md) |

The kind in brackets is the source's `sourceType` in its status.

An account holds one source of each warehouse type, so BigQuery and Snowflake can sit side by side.

## Check a source

```sh theme={null}
kubectl -n jedify get jedify jedify \
  -o jsonpath='{range .status.dataSources[*]}{.name}{"\t"}{.state}{"\t"}{.message}{"\n"}{end}'
```

| State | Means |
| - | - |
| `Connected` | Jedify reads it. |
| `Waiting` | For the account, the credentials, or another connect or build to finish. The message says which. |
| `Connecting` | The connection test is running. |
| `Failed` | The connection test failed. The message is the source's own error. The operator tries again every 10 minutes, so a grant made later is picked up without a change. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.