Connectors and file drops
A connector moves data from a source system into a raw dataset in your open table storage, and carries approved edits back the other way. Connectors are delivered on request for ERPs, databases, plant floor protocols and historians, point of sale, lab systems, telematics, files, email and message streams. Each one runs either as a cloud worker or on an edge agent inside your network, and syncs by change data capture, incrementally or in full, depending on what the source allows
- Owner role on the project that holds the connector to create it or change its tables, and Viewer to see its runs and health
- Any access label you set on a source table held by you, and Owner role on the raw dataset it applies to
- A source account whose credentials are stored in the platform vault or your secret manager; read access is enough unless the connector does writeback
- Network reach from a cloud connector worker for sources on the internet or a peered cloud network, or an edge agent enrolled for the site for sources inside your network
- For change data capture, the source's log enabled for it, such as SQL Server CDC or PostgreSQL logical replication
In the platform today
Twelve connector kinds and file drop ingestion run in the platform service with tests. Edge agents are built too, and so is inbound push: signed webhooks from a source system, and rows pushed by an integration, each landing in a raw table. Writeback to a system's own API is built as calls in systems.yaml, described on writeback. Everything else on this page, log-based change capture, the other systems in the catalogue below and writeback through connectors, is delivered on request
| Kind | Reads | Sync modes |
|---|---|---|
postgres | A Postgres database, through DuckDB's postgres extension | Incremental, snapshot |
rest | JSON over HTTP, with page, offset, token, next-link and Link header pagination; basic or OAuth2 client credentials | Incremental by cursor, snapshot |
sql | Anything DuckDB can read: files, globs, Parquet folders, Delta tables | Incremental, snapshot |
folder | A local or mounted folder | Files |
sftp | An SFTP server | Files |
odata | OData v4 services, such as SAP S/4HANA OData v4 APIs, Business Central and Dynamics 365; basic or OAuth2 client credentials | Incremental by a modified-time property, change tracking with delta links, snapshot |
kafka | Kafka topics through a consumer group, with SASL and TLS | A batch per run; offsets committed only after the rows land, so delivery is at least once and the key makes it idempotent |
imap | A mailbox folder over IMAP with TLS, opened read-only; password or OAuth2 | Incremental by UID, one row per message; attachments are listed, not stored |
mysql | MySQL and MariaDB, through DuckDB's mysql extension | Incremental, snapshot |
sqlserver | SQL Server, encrypted by default | Incremental, snapshot |
shopify | Orders, order lines, products, variants, inventory levels and locations through the Shopify Admin REST API, with an access token or client credentials. Read only | Incremental on updated_at, snapshot |
square | Orders, order lines, inventory counts, locations and the catalogue through the Square APIs, with an access token or an OAuth refresh token. Read only | Incremental on updated_at, snapshot |
connectors:
erp-db:
name: ERP database
kind: postgres
host: erp-db.creamery.example
port: 5432
database: sources
user: svc_markland_ro
password: ${password}
# environment variable names only; values are never stored
secrets: { password: ERP_DB_PASSWORD }
owner: plan.raman
allowedGroups: [planning]
schedule: { every: 15m } # or { dailyAt: "06:00" }
streams:
- { id: parts, source: public.parts, table: raw.pg_parts,
key: part_number, cursor: updated_at, lookback: 2h }
- { id: vendors, source: public.vendors, table: raw.pg_vendors,
key: vendor_id, mode: snapshot }
- Incremental reads rows whose cursor column is after the stored cursor, or at or after it when the stream has a key, so rows sharing the last cursor value are not missed. Rows are upserted by key, or appended without one
- Lookback:
lookback: 2hon an incremental stream (or a number for a number cursor) reads again from that far before the stored cursor, so rows that land late with an older cursor value are not missed. It needs a key; rows that have not changed are not written again, and the cursor never moves back - Snapshot reads every row and compares it with the table: changed and new rows are upserted and rows that are gone are deleted, unless
deletes: false. An empty snapshot is refused unlessallowEmpty: true - Files lands each new file once, through the file ledger
Every write goes through the lake, so the raw table's change data feed records it, and the inserted, updated and deleted counts are read back from that feed. Each run is a row per stream in ops.connector_runs. Secrets come from environment variables only
File drops
A watched folder lands its files in one raw table. CSV and TSV, gzipped or not, JSON lines or a JSON array, Parquet and Excel workbooks are read with DuckDB, which infers the types. A file is loaded exactly once: the file ledger keeps its path, size, modification time and SHA-256, so the same file is never loaded twice and a changed file is loaded as a new version. A file uploaded through the API is also checked by content, so the same rows under another name are skipped
ingest:
folders:
vendor-prices:
name: Vendor price lists
path: volumes/landing/vendor-prices
pattern: ["*.csv", "*.xlsx"]
table: raw.vendor_prices
# upsert by key; without a key rows are appended
key: [vendor_id, part_number]
columns: { unit_price: double }
# add new columns; false sends their values to _rescued
evolve: true
timezone: America/Halifax
# load or skip files already there on the first run
existing: load
owner: plan.raman
allowedGroups: [planning, stores]
schedule: { every: 5m }
Rows are fitted to the table's schema. A column the table has keeps its type, and a value that does not convert is set to null and kept as text in a _rescued JSON column. A new column is added, unless evolve is false. A load cut short is found on the next run, its rows removed by _file_id, and loaded again. Backfill loads files a folder skipped, retries failed ones, and with reload: true loads chosen files again
| Endpoint | Does |
|---|---|
GET /api/v2/ingest/folders, /{id}, /{id}/files, /{id}/runs | Folders the caller can see, the file ledger and runs |
POST /api/v2/ingest/folders/{id}:run, :backfill | Loads new files now, or backfills |
POST /api/v2/ingest/folders/{id}/files?name=prices.csv | Uploads a file and loads it |
GET /api/v2/connectors, /{id}, /{id}/runs | Connectors and their runs |
POST /api/v2/connectors/{id}:run, :test | Runs streams now, optionally in full, or tests the connection |
Schedules run on the same slots as scheduled automations, as the definition's owner, when the background scheduler is switched on, a service setting. Folders, uploads, connectors and edge agents have a screen in Data, then Ingestion. Delivered on request: log-based change capture, MES connectors, point-of-sale connectors beyond Shopify and Square, watching cloud storage buckets, and creating connectors through the API or the screen; connectors are defined in ontology.yaml
Inbound push
Some systems send their changes rather than wait to be read. inbound: in ontology.yaml takes two kinds of push, each into one raw table
inbound:
erp-events: # POST /api/v2/inbound/erp-events
table: raw.erp_events
signature:
header: X-Erp-Signature
# environment variable names only; secretNext while rotating
secret: INBOUND_ERP_SECRET
algorithm: sha256 # sha1, sha256 or sha512, as HMAC
encoding: hex # or base64
prefix: "sha256="
signed: "{body}" # {body}, {url}, {header:Name} and literal text
timestampHeader: X-Erp-Timestamp
toleranceSeconds: 300
deliveryId: { header: X-Erp-Delivery } # or { field: id }; default: SHA-256 of the body
fields: { topic: { header: X-Erp-Topic }, order_id: { field: order.id } }
pos-sales: # POST /api/v2/inbound/pos-sales/rows
table: raw.pos_sales
rows:
users: [svc.pos]
groups: [integrations]
key: [sale_id] # upsert by key; without one, rows are appended
columns: { sale_id: string, amount: double, sold_at: timestamp }
maxRows: 5000
- Signed webhooks need no sign-in: the signature is the check. The HMAC of the signed text under the secret, or the next secret during a rotation, must match the header, compared in constant time. A missing or wrong signature and a timestamp outside the tolerance answer 401, a body over
maxBytes413, and an unset secret 503 - Each accepted delivery is one row with
delivery_id,source,received_at,content_type,bodyand thefieldscolumns. A delivery id already seen answersduplicateand writes nothing, so a sender's retries never make a second row. Deliveries always land on main - Rows come as a JSON array from the users and groups listed, or an administrator. Each row is checked against the table's schema, or
columnsbefore the first push; one bad row refuses the batch with 422ROWS_INVALID, naming up to 20 rows and columns. Accepted rows are upserted onkey, or appended, and the push is audited asinbound.rows - A push only lands rows. A pipeline with an
onChangeorlandedtrigger builds from them
How connectors work
A connector is a configuration, not a program you write. It names a source, the credentials to reach it, the tables, topics, endpoints or file paths to read, a sync mode for each, and a schedule. A connector host runs it. Cloud connector workers reach sources that are on the internet or in a cloud network you peer with. Edge agents run next to sources that are not, such as a plant historian or an OPC UA server on the plant floor, and push data out over an outbound-only connection
Every sync writes to a raw dataset: a Delta Lake table in the raw schema of your catalogue, with one row per source change and the source's own columns kept as they are. Nothing is cleaned or renamed at this stage. That is the job of pipelines, which turn raw datasets into the backing datasets of object types. Keeping raw data unmodified means you can always rebuild from it, and that lineage from a property back to a source column is never interrupted
Connector catalogue
The catalogue below lists the source systems connectors are delivered for on request, beside what the built kinds reach today. None of these is a certified connector. Sources not listed are meant to be reached through the generic database, REST or file connectors. On request, a connector can also write committed action edits back to its source through the writeback service, except for read-only sources such as plant historians and lab exports
| Category | Systems, on request | Built today |
|---|---|---|
| ERP | SAP S/4HANA, SAP ECC, Microsoft Dynamics 365 Finance and Supply Chain, Dynamics 365 Business Central, Oracle NetSuite, Oracle Fusion Cloud ERP, Sage Intacct, Acumatica, Epicor, QuickBooks Online | OData v4 reads S/4HANA, Business Central and Dynamics 365 |
| Database | Oracle Database, SQL Server, PostgreSQL, MySQL and MariaDB, IBM Db2, MongoDB, generic JDBC and ODBC | PostgreSQL, MySQL and MariaDB, and SQL Server, by cursor or snapshot |
| Plant floor | OPC UA, MQTT including Sparkplug B, plant historians, Modbus TCP, MES, maintenance systems | OPC UA, MQTT and Modbus TCP through an edge agent |
| Point of sale and commerce | Square, Lightspeed Retail and Restaurant, Shopify | Shopify and Square, read only |
| Lab and quality | LIMS over REST, LIMS exports | CSV exports through file drops |
| Logistics | Fleet telematics, reefer unit telemetry, warehouse management, carrier and ferry schedules | |
| EDI | X12 and EDIFACT over AS2 or SFTP | |
| Workforce | Staff scheduling | |
| Files | SFTP and FTPS, Amazon S3, Azure Blob Storage, Google Cloud Storage, SharePoint and OneDrive, spreadsheets | SFTP, watched folders and file uploads |
| IMAP mailboxes, Microsoft 365 mail, Gmail | IMAP, read only | |
| Streams | Apache Kafka, AMQP brokers | Kafka |
| APIs | REST, GraphQL, inbound webhooks | REST, OData v4 and inbound push |
| Data sharing | Delta Sharing recipient |
Sync modes
The built kinds read incrementally by cursor, by full snapshot or by file, as described under in the platform today, and Kafka reads a batch per run. On request, change data capture from database logs, which sees every change and every delete in commit order and puts the least load on the source
Edge agents
The built agent and what it reads are described under edge agents. It runs next to sources that are not on the internet and makes only outbound connections. When the link drops, it keeps reading and buffers to local disk, 72 hours by default, then sends the buffer in order before any new data. On request, a signed installer that enrols the agent with its own certificate and updates it from a release channel
Configuring a connector
Connectors are defined under connectors in ontology.yaml, as in the example under in the platform today. Credentials are never written in the configuration: the built kinds read them from the environment variables named in secrets, and a connector with an accessLabel is seen and run only by those who hold it. On request, connectors are configured in the console, credentials come from a vault or your own secret manager, and access labels set on a table carry to its raw dataset and everything built from it
Schema changes and types
Sources change their schemas. In the platform service today, a built connector or folder adds a new column to its raw table, or keeps its values in _rescued when evolve is false. The next pipeline build that reads the table records the change in ops.schema_changes, and an input contract on that pipeline stops the build until an editor accepts the new schema. On request, a policy per kind of change on each connector, such as pausing a table's sync when a column changes type
Writeback and health
Writeback to a system's own API is built as calls in systems.yaml, described on writeback. On request, the writeback service hands committed edits to the source's connector, which applies them through the source's own interface, such as a stored procedure, an API call or a dropped file, never by writing to the source's tables directly unless you configure exactly that
In the platform service today, dataset health learns each raw table's usual freshness and volume, and a monitor raises an alert when a table is late or a connector's runs keep failing. On request, freshness thresholds per table in observability, and stale source data shown on the objects it backs, so a planner looking at a shop's stock can see that the point of sale has not synced for 40 minutes
Limitations
- Incremental syncs do not see hard deletes; use a snapshot where deletes matter
- Renamed columns arrive as a new column, and the old one stops filling
- Connectors write raw data as the source sent it; cleaning, renaming and joining happen only in pipelines
- Writeback goes through the source's own interface, so a connector can only write what that interface and the source account allow, and a read-only account cannot write at all
- Read-only sources, such as plant historians and file exports from a lab, cannot take writeback whatever the account allows
- Batch sources cannot sync more often than once a minute from a cloud worker; faster updates need change data capture or streaming
- An edge agent's buffer covers a fixed window; data not read from the source before the buffer fills is lost for the lowest-priority sources first