Access labels

An access label is a required label on data that says who may see it. To read labelled data, a person must hold every access label on it, whatever group they are in and whatever a row policy says. A label is set on an object type, an action type, a dataset or a document source, and a property can be sealed under one. On request, labels travel with the data through lineage into everything built from it, and come off only through an authorized, recorded declassification

RuleHold every access label on the data, or see nothing of it
ScopeObject types, action types, datasets, document sources and sealed properties
HoldersUsers and the directory, plus time-boxed grants from access requests
HiddenA labelled type answers as not found to anyone without the label
Requirements
  • Permission to change ontology.yaml, where access labels are listed and set on object types, action types and datasets
  • You must hold an access label yourself to see data that carries it

In the platform today

Built
  • Access labels run in the platform service with tests, in all three demo workspaces
  • They are listed under accessLabels in ontology.yaml, and each user holds the labels on their entry, plus any granted for a time through access requests
  • One label can be set on an object type, an action type, a document source, a document extraction kind or a dataset under governance.datasets
  • A type the reader does not hold the label for answers as not found; the catalogue, search, SQL workspace, partner sharing, push updates and the model gateway's redaction all apply the same rule
  • A property can be sealed under a label (encryption.properties, see encryption): holders read it in plaintext and everyone else has it withheld
  • The Unity Catalog sync leaves labelled datasets out
On request
  • Labels on columns, on other properties, on single objects and on files, propagation through lineage, label groups, stewards, declassification, the /api/v2/accessLabels endpoints and Unity Catalog grants

Required and optional controls

Most of the access model is optional, left to owners: an owner of an object type decides who gets a role on it and writes the object policies. Owner-set controls are flexible, but they are only as good as every owner's judgement on every resource. A finance analyst who copies supplier pricing into a new dataset in a project with broad access has, with owner-set controls alone, published supplier pricing to that project

Access labels close that gap. They are required: an access label applied to data cannot be widened by the data's owner, by a role grant or by copying the data somewhere else. The owner of the new dataset in that example does not get to choose whether it is labelled. It inherits SUPPLIER-CONF from its input at build time, and only people who hold SUPPLIER-CONF can read it, wherever it lives

Groups and policiesAccess labels
Who sets themAdministrators, in the ontology definitionDefined in the ontology definition and set on datasets, object types and sealed properties
Can grant accessYesNo; an access label can only restrict
Follow copies and derivationsNo; each new resource has its own grantsOn request
Can be removed by the data ownerYesNo; only by a reviewed change to the definition
Typical useWho works on whatWhich categories of information a person may ever see

The access labels in an example tenant

Access labels are defined per tenant. Keep the list short: each access label is a decision people have to understand, and a dozen overlapping access labels get applied inconsistently. The illustrative creamery uses five

Access labelApplied toHeld bySteward
QUALITYLab and line results, holds and releases, recall scopes under investigationQuality, lab, plant maintenance, cheese room, operationsQA manager
FINANCEPrices, customer values and margins, freight cost, wholesale pricingOperations, purchasing, wholesaleOperations lead
SUPPLIER-CONFFarm milk quality and supplier terms, negotiated ingredient and packaging pricesPurchasing, milk receiving, quality, operationsPurchasing lead
PIIStaff schedules and contact details, customer personal informationOperations, shops manager, shift leads for their own shopShops manager
INTERNALEveryone at the creamery, shops and office; nothing meant for carrier partners or wholesale customers who sign inAll employeesAdministrator

Label groups

On request, access labels can be grouped so a reader needs one of several rather than all of them, for data shared by two parts of a business

Where access labels are applied

An access label applies to everything inside what it is set on, and the effective access labels on any value are the union of all the access labels that apply to it

LevelEffectExample
DatasetEvery row and columnraw.supplier_items labelled SUPPLIER-CONF
Object typeAll objects of the type; the type is invisible without the access labelQA test labelled QUALITY
PropertyA property sealed under the access label: holders read it in plaintext and everyone else has it withheldProduct.unitPrice sealed under FINANCE

On request, access labels also apply to columns, single properties, single objects and files. Labels on single objects let a batch under a quality investigation disappear for readers outside the quality group until it is dispositioned

Propagation and declassification

On request, access labels follow data through lineage into everything derived from it, including derived properties, function results and agent answers, and come off only through a declassification the steward approves

Managing access labels

Access labels are listed under accessLabels in ontology.yaml, and each person holds the labels on their directory entry, plus any granted for a time through access requests

On request, stewards grant labels to groups for a set time, and labels carry into the open tables and limit where writeback and exports go

Examples

QUALITY during an investigation

An antibiotic screen on a milk load comes back positive. The LIMS connector syncs the result; the QA test object type is labelled QUALITY, so only the quality group sees it. The batch pipeline labels every batch drawn from that silo since its last clean, and those batches, their QA tests and any recall scope under calculation vanish from the planners' screens. Planners still see that the silo is held, because the silo object is not labelled. When the confirmatory test is negative and quality records a disposition, the access label falls off the batches on the next build and they reappear with a release status

FINANCE on margin

Scoop prices and their target margins are price points, and the price point type is labelled FINANCE, so Price point.targetMargin carries it. Shop managers see their shop's sales and stock but not the margin property, which does not exist for them. An operations lead holding FINANCE sees margins for every region and customer, and when the Assistant answers "which shops lost margin last week" for that lead, the answer is labelled FINANCE and cannot be shared into a channel whose members do not hold it

SUPPLIER-CONF on milk and packaging prices

Contracted farm milk prices and packaging prices are labelled SUPPLIER-CONF at the raw columns. Product cost inherits it. Planning needs to know whether strawberry costs more to make than vanilla, not what the creamery pays a particular farm, so purchasing approved a cost_by_category declassification, which publishes monthly category averages across several suppliers with FINANCE only

Limitations

  • An access label can only restrict access. It never grants it
  • A label comes off a dataset or object type only through a reviewed change to the ontology definition. Declassification approved by a steward is delivered on request
  • Each person holds access labels on their entry, set in ontology.yaml or by the directory, plus any granted for a time through an access request
  • Labels do not yet follow data into derived tables, and the catalogue sync leaves labelled datasets out. Propagation, and masks and row filters on direct table reads, are delivered on request
  • On request, writeback targets and export destinations are registered as cleared for each access label, and labelled data goes only to those

Related