Data Sources
A data source is a connection configuration to an external system. It defines how Presswerk connects to a database, API, or file.
Creating a Data Source
Section titled “Creating a Data Source”- Navigate to Data Sources in the sidebar
- Click New Data Source
- Enter a name and optionally a description
- Select the type and fill in the configuration
JDBC (SQL Databases)
Section titled “JDBC (SQL Databases)”For relational databases. Supported systems:
| Database | Driver |
|---|---|
| PostgreSQL | org.postgresql.Driver |
| MySQL | com.mysql.cj.jdbc.Driver |
| MariaDB | org.mariadb.jdbc.Driver |
| Oracle | oracle.jdbc.OracleDriver |
| SQL Server | com.microsoft.sqlserver.jdbc.SQLServerDriver |
| DB2 | com.ibm.db2.jcc.DB2Driver |
| H2 | org.h2.Driver |
Configuration:
- JDBC URL — Connection URL (e.g.
jdbc:postgresql://localhost:5432/mydb) - Username / Password — Credentials
- Driver Class — Auto-detected from URL
For REST APIs. Configuration includes the base URL and authentication.
Configuration:
- Base URL — API base URL (e.g.
https://api.example.com) - Auth Type —
none,basic,apiKey, oroauth2 - Headers — Additional HTTP headers
- Timeout — Request timeout in milliseconds
Auth types in detail:
| Type | Fields |
|---|---|
basic | Username, Password |
apiKey | Header name, API key value |
oauth2 | Token URL, Client ID, Client Secret, Scopes |
GraphQL
Section titled “GraphQL”For GraphQL endpoints.
Configuration:
- Endpoint — GraphQL URL (e.g.
https://api.example.com/graphql) - Headers — Additional HTTP headers (e.g. for auth)
- Timeout — Request timeout
For static JSON files (local or remote).
Configuration:
- File path — Path to the JSON file
Connection Test
Section titled “Connection Test”Every data source can be tested before saving. Click Test Connection:
- JDBC: Executes
SELECT 1 - REST: Sends a
HEADrequest to the base URL - GraphQL: Runs a
{ __typename }introspection query
A successful test confirms the connection works with the given parameters.
Environment Overrides
Section titled “Environment Overrides”Every data source has a Base Config — the default connection configuration. For different deployment stages (e.g. TEST, PROD), you can configure different connection parameters.
To set up an override:
- Open the data source
- Switch to the Environments tab
- Select an environment and enter the differing parameters
- Only the explicitly set fields override the base config
Example:
Data Source: "Sales DB"├── Base Config: localhost:5432/sales_dev├── Override TEST: test-server:5432/sales_test└── Override PROD: prod-server:5432/sales_prodWhen the environment switcher is set to “TEST”, Presswerk uses the TEST override. If no override exists for an environment, the base config is used.
Overrides can also be tested — with the Test Connection button in the environments tab.
Encryption
Section titled “Encryption”Sensitive configuration data (passwords, API keys, secrets) is encrypted with AES-256-GCM in the database. In API responses, these fields are masked.
Folders
Section titled “Folders”Data sources can be organized in folders. Folders enable:
- Clean structure when you have many data sources
- Access control via folder permissions