Skip to main content

Data Sources

Connect to external databases, data warehouses, and cloud storage services. Once configured, these connections are available in your workflows via the STRONGLY_SERVICES environment variable.

Supported Data Source Types​

Choose from 53 supported data source types across 10 categories:

Data Sources

CategoryProvidersUse Cases
RelationalMySQL, PostgreSQL, MSSQL, Oracle, Redshift, Snowflake, BigQuery, CockroachDB, CrateDB, TimescaleDB, QuestDB, ClickHouse, DuckDB, SingleStore, Greenplum, SupabaseTransactional data, structured queries, analytics
Document/NoSQLMongoDB, Elasticsearch, DynamoDB, Firestore, CouchDB, CouchbaseDocument storage, search, flexible schemas
Key-Value/CacheRedis, MemcachedCaching, session storage, real-time data
GraphNeo4j, Amazon Neptune, ArangoDB, TigerGraphGraph relationships, knowledge graphs
VectorMilvus, Pinecone, Weaviate, Qdrant, Chroma, pgvector, Vespa, MarqoAI embeddings, semantic search, RAG systems
Multi-ModelSurrealDBMulti-paradigm data modeling
SpreadsheetAirtable, Google Sheets, Baserow, NocoDB, SeaTable, GristLow-code databases, spreadsheet data
Cloud StorageAmazon S3, Google Cloud Storage, MinIO, Azure Blob StorageFile storage, data lakes, backups
Message QueueRabbitMQ, Apache Kafka, Amazon SQS, Apache Pulsar, MQTT brokerEvent streaming, message brokering, device telemetry
APIAPI KeyThe search API of the web search node (Tavily, Brave, SerpAPI or another search API)
Additional Documented Types

Dedicated configuration pages exist for the most commonly used types listed above. All other types (MSSQL, Oracle, Redshift, Elasticsearch, DynamoDB, Neo4j, Pinecone, Kafka, etc.) follow the same general creation workflow described in How to Connect Data Sources. The creation form dynamically renders the correct credential fields for every supported type.

Using Data Sources in Workflows and Apps​

When a data source is attached to your workflow, app, workspace or job, its decrypted connection details are injected via the STRONGLY_SERVICES environment variable. Data sources are grouped by type under services.datasources, and each entry is one configured connection with connection and auth sections.

STRONGLY_SERVICES Structure​

{
"version": "2.0",
"environment": "development",
"services": {
"datasources": {
"postgres": [
{
"id": "abc123",
"name": "prod-postgres",
"type": "postgres",
"category": "data-source",
"status": "connected",
"connection": {
"host": "postgres.example.com",
"port": 5432,
"database": "myapp",
"ssl": { "enabled": true }
},
"auth": {
"method": "username_password",
"credentials": {
"username": "app_user",
"password": "<password>"
}
},
"metadata": {
"owner": "<user-id>",
"tags": ["production"]
}
}
]
}
}
}

The connection fields vary by type. For example, S3 entries have connection.bucket and connection.region with auth.method: "aws_access_key"; BigQuery entries have connection.project_id and connection.dataset_id with auth.method: "service_account"; Snowflake entries have connection.account, connection.warehouse, and connection.database. See the per-type pages for the exact shapes.

Python Example -- PostgreSQL​

import os, json
import psycopg2

# Parse STRONGLY_SERVICES environment variable
services = json.loads(os.environ['STRONGLY_SERVICES'])

# Data sources are grouped by type; pick yours by name (its label)
pg = next(
d for d in services['services']['datasources']['postgres']
if d['name'] == 'prod-postgres'
)

# Connect using the connection and auth sections
conn = psycopg2.connect(
host=pg['connection']['host'],
port=pg['connection']['port'],
database=pg['connection']['database'],
user=pg['auth']['credentials']['username'],
password=pg['auth']['credentials']['password']
)

# Execute queries
cursor = conn.cursor()
cursor.execute("SELECT * FROM users WHERE active = true")
users = cursor.fetchall()

Node.js Example -- MongoDB​

const { MongoClient } = require('mongodb');

// Parse STRONGLY_SERVICES environment variable
const services = JSON.parse(process.env.STRONGLY_SERVICES);
const mongo = services.services.datasources.mongodb
.find(d => d.name === 'prod-mongodb');

// Build connection string from connection and auth sections
const { host, port, database } = mongo.connection;
const creds = mongo.auth ? mongo.auth.credentials : null;
const authPart = creds ? `${creds.username}:${creds.password}@` : '';
const url = `mongodb://${authPart}${host}:${port}/${database}`;

// Connect
const client = new MongoClient(url);
await client.connect();
const db = client.db(database);

// Query
const users = await db.collection('users').find({ active: true }).toArray();

Security​

Credential Encryption​

All credentials are encrypted at rest. The encryption key is configured via the API_KEY_ENCRYPTION_SECRET environment variable (minimum 32 characters required). Credentials are never sent to the client -- they are excluded from all publications and only decrypted server-side when needed for connection testing, metadata fetching, or building STRONGLY_SERVICES.

Permission Model​

A data source is private to its owner until it is shared:

  • All users (permissions.allowAllUsers): everyone in the organization can use the connection.
  • Can edit (permissions.allowedUsers): the user can use the connection and change it.
  • Can use (permissions.users): the user can use the connection without changing it.

A user has one of these levels. Sharing goes through the platform's one sharing API (the data source's Permissions tab, or /api/v1/data-sources/:id/permissions). On Strongly Cloud, sharing is restricted to users within the same organization.

Managing Data Sources​

View Connection Details​

  • Click data source name to view details page
  • See connection string (passwords masked)
  • View metadata: tables, schemas, databases, collections, buckets
  • Check last tested time and status

Test Connection​

The platform automatically tests the connection when creating or updating a data source. You can also manually trigger a test using the Test Connection button on the data source details page. The test result updates the data source status to connected or error.

Every type gets a real connection test with your credentials (for example SELECT 1, ping, listing the bucket, or calling the service's API). See Connection Testing by Type.

Schema Discovery​

After connecting, use Fetch Metadata on the Metadata tab to discover the structure of your data source. Depending on the type, this returns:

  • Tables/Collections: Available tables or collections
  • Schemas: Database schemas (PostgreSQL, Snowflake, Redshift, Oracle, etc.)
  • Databases: Available databases
  • Buckets: S3/cloud storage buckets
  • Size and row counts: Approximate storage size and row counts

Every type except API Key and MQTT broker has a metadata connector (an API key holds no data, and an MQTT broker keeps no catalogue of its topics). See Schema Discovery Support.

Additionally, you can fetch the columns (or fields) of an individual table, collection, index, queue or topic, and browse the contents of a bucket or container for S3, MinIO, GCS and Azure Blob Storage.

Update Credentials​

  • Click Edit button
  • Update label, description, credentials, or tags
  • Connection is re-tested automatically when credentials change
  • Click Save to apply changes

Usage Tracking​

  • The Overview tab shows Times used and Last used
  • A use is counted each time an app, workspace or job deploys or starts with the data source, or a workflow run is given it
  • Each use is also kept as a launch record (who it was launched for and which workload), so the Strongly iPhone app charts a data source's Launches by day for the last 30 days, with how many different people they were for; the REST API serves them at GET /api/v1/data-sources/:id/time-series (see the Data Sources API)

Delete Data Source​

  • Click Delete: the dialog first lists the apps, workspaces, jobs and workflows that use the data source, and Delete stays disabled while anything does
  • Once nothing uses it, confirm the deletion (irreversible); its permissions are removed with it
Security

Credentials are encrypted at rest and are never sent to the browser with the data source. Only the owner and administrators can read them (the Connection tab and the edit dialog load them on demand); workloads receive them only through STRONGLY_SERVICES.