Partner sharing

Partner sharing gives another organization read access to a live table without copying it to them or opening your storage. The platform runs its own server for the open Delta Sharing protocol, so a lessor, a vendor or an auditor reads with any standard Delta Sharing client. Each shared table can be limited to some columns and some rows, never shows more than the person who shared it can see, and every read is recorded

Open protocolRead with the standard Delta Sharing clients
FilteredColumn lists and row filters, served as filtered snapshots
RevocableExpiring, hashed tokens; revoking stops links already handed out
AuditedEvery read a row in ops.share_reads

In the platform today

Built
  • The protocol server, shares, recipients, filters, access labels, tokens and read audit run in the platform service, on the demo airline and the ice cream maker
  • The stock delta-sharing Python client reads from it, and a revoked token is refused
  • The Partner sharing screen in Data manages shares, recipients and tokens and shows the read audit when the app is connected to the service
On request
  • The delta response format, streaming and change feed reads beyond the changes endpoint, and OAuth profiles
Requirements
  • Membership of a group in sharing.managers, or Administrator, to manage shares and recipients
  • For the person a share names as its sharer: the SQL workspace grant on each source schema, and every access label on the shared data
  • A reachable endpoint for partners. The protocol is served under /delta-sharing on the main API, or on its own endpoint

Shares, schemas and recipients

A share holds schemas, and a schema holds tables. Each shared table points at a gold or objects table in the lake, optionally with a column list, a row filter and permission to read its history. A recipient is a partner with a bearer token for one or more shares. Shares come from ontology.yaml or from the administration API; both end up in the same definitions

sharing:
  linkSeconds: 900                       # signed file link lifetime
  recipientDays: 365                     # default recipient expiry
  managers: [maintenance-control]
  shares:
    fleet:
      description: Fleet status for the lessor
      owner: plan.raman                    # the sharer: their access limits what is shared
      schemas:
        fleet:
          aircraft: { table: gold.aircraft,
                      columns: [fleetNumber, registration, aircraftType, status, hours, cycles] }
          stations: { table: objects.station, history: true }
    vendor-repairs:
      description: Repair orders with one overhaul vendor
      owner: plan.raman
      accessLabels: [COMMERCIAL]                # labelled data must be recorded on the share
      schemas:
        repairs:
          repair_orders:
            table: gold.repair_orders
            # a SQL predicate, or a map such as { vendorId: V-104 }
            where: "vendorId = 'V-104'"
            columns: [roNumber, partNumber, serialNumber, status, sentDate, promisedDate,
                      expectedDate]

Governance

RuleHow it holds
Labelled dataA table carries the access label of the object type it is or backs. It can be shared only when the sharer holds that access label and the share lists it in accessLabels. Both are checked again on every read, so a sharer losing an access label, or a share dropping it, stops the table at once
The sharer's own viewA share never exceeds its sharer. Their row policy limits the rows, properties hidden from them are left out, and they need the SQL workspace grant on the source schema
Filters and column listsWhen a table has a filter, a column list or a sharer restriction, the partner never sees the raw table files. The server writes a filtered Parquet snapshot for that recipient and table version and serves that instead
TokensShown once, in the profile file, and stored only as a SHA-256 hash. A recipient has an expiry, 365 days by default, and can be revoked or given a new token at any time
File linksLinks point at the server's own download endpoint, signed with HMAC-SHA256, valid for 15 minutes by default, and tied to the recipient, so revoking a recipient also stops links already handed out
Read auditEvery query and change feed read is a row in ops.share_reads and an event in the audit log. Refused reads by known recipients are kept too

Add a recipient

  1. Create the recipient. Name the partner and the shares they may read. The response carries the token and a profile file, once
POST /api/v2/sharing/recipients
{ "name": "Lessor fleet desk", "shares": ["fleet"], "expiresInDays": 180 }
{
  "recipient": { "id": "rcp_01JB…", "name": "Lessor fleet desk", "shares": ["fleet"],
                 "expiresAt": "2027-04-21T14:02:11Z" },
  "token": "mss_…",
  "profile": {
    "shareCredentialsVersion": 1,
    "endpoint": "https://share.example.com/delta-sharing",
    "bearerToken": "mss_…",
    "expirationTime": "2027-04-21T14:02:11Z"
  }
}
  1. Send the profile. Save profile as a .share file and give it to the partner over a channel you trust. It is the only copy of the token
  2. The partner reads. With any Delta Sharing client, for example the Python one
import delta_sharing

profile = "lessor.share"
client = delta_sharing.SharingClient(profile)
print(client.list_all_tables())
aircraft = delta_sharing.load_as_pandas(profile + "#fleet.fleet.aircraft")
ExpectedA frame with the six shared columns of every aircraft the sharer can see, and a row for the read in ops.share_reads with filtered true, because the table has a column list

Protocol endpoints

The server implements the open Delta Sharing REST protocol with the Parquet response format. Errors use the protocol's own codes, such as RESOURCE_DOES_NOT_EXIST, and a share or table the recipient may not read answers as not existing

EndpointDoes
GET /delta-sharing/shares, /shares/{share}Shares the recipient may read
GET …/shares/{share}/schemas, …/schemas/{schema}/tables, …/all-tablesSchemas and tables
GET …/tables/{table}/version, …/metadataThe table version, schema and partitioning
POST …/tables/{table}/queryFile links for the current version, or a past version or timestamp when the table shares its history
GET …/tables/{table}/changesThe change data feed between versions, when the table shares its history

Administration

EndpointDoes
GET, POST /api/v2/sharing/sharesLists shares, or creates one with its access labels
GET, PATCH, DELETE /api/v2/sharing/shares/{share}Reads, changes or removes a share
POST /api/v2/sharing/shares/{share}/tablesAdds a table with schema, name, table, columns, where and history
DELETE …/shares/{share}/schemas/{schema}/tables/{table}Removes a table
GET, POST /api/v2/sharing/recipients, GET …/{id}Lists, creates and reads recipients
POST …/recipients/{id}:revoke, :rotate, :grantRevokes, issues a new token, or changes the shares a recipient may read
POST …/recipients/{id}/profileIssues a new token as a profile file to download; the old token stops working
GET /api/v2/sharing/readsRecent reads, by recipient or share
-- What each partner read this month, and how much
SELECT recipient_name, share, table_name,
       count(*) AS reads, sum(rows) AS rows, sum(bytes) AS bytes
FROM ops.share_reads
WHERE status = 'ok' AND read_at >= date_trunc('month', current_date)
GROUP BY 1, 2, 3 ORDER BY bytes DESC;

Limitations

  • Responses use the Parquet format only; the delta response format is delivered on request
  • Streaming reads are delivered on request. A recipient follows changes through the changes endpoint, and only on tables shared with history: true
  • Profiles carry a bearer token. OAuth client credentials profiles are delivered on request
  • A filtered table is served as a snapshot file per recipient and version, so the first read of a new version takes longer than an unfiltered one
  • Only gold and objects tables can be shared
  • A token is shown once. A lost profile needs a new token, which stops the old one
  • The Partner sharing screen, with shares, recipients and the read audit, is in Data, in the workspaces of the demo app connected to the service

Related