Live Data, Read-Only & Security
The security model behind live (BYODB) connectors: how read-only and write-through are enforced, how multi-tenant sources stay isolated, how source credentials are protected, and how every query is validated before it reaches your database or warehouse.
Overview
Who this is for
The No-Copy Guarantee
curl https://api.supero.dev/api/v1/crud/acme-corp/customer?limit=5 \
-H "Authorization: Bearer $ACCESS_TOKEN"import supero
org = supero.connect(domain_name="acme-corp", api_key="ak_...")
# Identical call whether "customer" is a native schema or a live-read connector table
customers = org.crud.list("customer", limit=5)Warehouse results are held in a short-lived in-memory cache
One case where an empty result does not mean an empty source
Read-Only vs. Write-Through
| Mode | Reads | Writes |
|---|---|---|
| live_read | Real time from the source, every request | Blocked — every create, update, and delete returns 403 |
| live_readwrite | Real time from the source, every request | Passed through to the source in real time — entity tables only, on a source that has a write path (see below) |
Writes on a read-only table or stream
curl -X PUT https://api.supero.dev/api/v1/crud/acme-corp/order_facts/8f14e45f-... \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "status": "shipped" }'
# 403 — order_facts is a live_read warehouse tableTenant Isolation on Shared Sources
| tenant_binding.mode | What it does |
|---|---|
| fixed | The whole connector belongs to one tenant. No per-row filtering happens, so this is only appropriate when the source genuinely holds a single tenant's data (or is an internal/ops-only source with no per-tenant split). |
| column | Every read and write is filtered by tenant_field, mapped from your Supero tenant to the source's own value via tenant_value_map. |
{
"tenant_binding": {
"mode": "column",
"tenant_field": "org_id",
"tenant_value_map": { "acme": "42", "globex": "77" },
"on_unmapped_tenant": "deny"
}
}Unmapped tenants fail closed
Column-mode tenant routing is not available from the create wizard
How Source Credentials Are Protected
- The connector screens and the connector API never return a credential in a GET or list response — any field that looks like one (password, api_key, token, private_key, service_account_json, wallet, and similar patterns) is masked before the response leaves the server.
- This redaction also applies to a cross-project listing scoped to your whole domain. One read path is not masked yet: a domain_admin, project_admin or project API key that reads the connector through the generic CRUD API (/api/v1/crud/<domain>/connector/<id>) receives the secret fields in clear. Masking on that path is pending.
- A credential is resolved fresh for each query or sync run rather than held decrypted in memory between requests, so rotating it on your source side and updating the connector is a clean swap.
- Because credentials are masked on read, a source configuration you fetched from the API cannot be replayed into a connection test — a re-test has to be done against the saved connector so the stored secret is used server-side.
One published bound on a revoked credential
Least-privilege source roles are still on you
Direct database access does not go through Supero
Where Supero Is Allowed to Connect
- Every connection test, every sync run, and every live REST read is vetted against the target address before a connection is opened. A target that resolves to a private, loopback, link-local, or cloud-metadata address is refused — the cloud metadata endpoint in particular, which is the classic escalation target for a server-side request forgery.
- The guard is re-applied per redirect hop rather than once at the start, so a public URL that redirects to an internal address does not slip through. Outbound REST requests do not follow redirects blindly.
- The guard is on by default. If you genuinely need to reach a host inside a private range — an on-premise deployment reaching your own network — that is an allow-list your operator configures explicitly, not something a connector config can turn off.
- BigQuery’s token endpoint is pinned to Google’s own address rather than taken from the service-account JSON, so a tampered credential file cannot redirect a token exchange somewhere else.
Safe Query Execution
Identifiers and parameters
Field-level RBAC guards inputs, not just responses
curl -X POST https://api.supero.dev/api/v1/crud/acme-corp/query \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "type": "employee", "filters": {"salary": 200000} }'
# 400 — "salary" is a hidden_fields entry for this role, so it cannot be used as a query inputWhat Your App Can — and Can't — Reach
Next Steps
- Connectors Overview — data modes, the supported-sources matrix, the console walkthrough, and the control-plane API
- Database Connectors — full configuration reference for PostgreSQL, Supabase, MySQL, SQL Server, Oracle, and MongoDB sources
- Warehouse Connectors — Snowflake, Databricks, ClickHouse, BigQuery, Redshift, and Fabric, including the Query console and its cost controls
- File, HTTP API, Webhook & Public Catalog — including live reads over REST
- Access Policies — the full access_policy and access_rule reference, including hidden_fields and owner-scope
On this page