Skip to content

Write access policies

Access policies decide which subjects can read which objects, with optional row filters and column projection — enforced server-side in the cell, fail-closed.

OSL emits policy facts for every governed object. The policy decision point matches a request’s (data, action, actor, context) against those facts and the policies you author, returning allow/deny plus obligations (row filters, projection, redaction). The policy enforcement point applies the decision before any data leaves the cell.

To see the decisions that currently apply to a tenant, query the PDP on the cell’s tenant-mgmt-api (fronted by the control plane under /v1/tenants/{t}/… in OpenDome-operated deployments):

GET /policies/effective

Text limits: page sizes and reading windows

Section titled “Text limits: page sizes and reading windows”

A facet grant carries the policy’s text limits:

limits:
topK: 25 # maximum passages per page
maxChunks: 50 # maximum chunks per page
maxTokens: 12000 # maximum tokens per page (after redaction)
pageSize: 10 # optional: default page size (<= topK)
window: # optional: cumulative reading budget per subject and facet
tokens: 500000
seconds: 3600 # sliding interval, >= 60
  • topK, maxChunks and maxTokens are required and size one page of a paginated RETRIEVE. Across the policies that reach a subject they compose by minimum, and the response names the policies that set each bound (cappedByPolicies).
  • Because a client can continue page after page, page limits no longer bound total volume. If a policy relied on topK: 8 meaning “this connection only ever sees 8 passages”, add a window.
  • Windows compose as a set, never by component-wise minimum (that would synthesise a looser limit than either policy): a page is served only if every contributing window has budget. An exhausted window answers 429 E0532 with Retry-After; a configured window whose ledger is unavailable fails closed with 503 E0534. The ledger is configured on the engine chart (readingWindow.*).
  • A window is a cost and pace control, not a confidentiality control: what a page may contain is decided by the governed predicate on every page. Forms that serve no text (document aggregates, job results) consume no window.

When every scope of an entity restricts rows, each column a row filter uses must be granted in cleartext by every scope. A filter column granted only in some regions is redacted on the other regions’ rows, so filtering on it could reveal its hidden values: such statements are refused at query time (E2101, fail-closed) and flagged when the policy is previewed or published. Grant the filter column in every scope or move the filter.

  • Fail-closed. No snapshot → deny (E2001, 503). Deny-by-default on ACL’d facets.
  • PII is declared at the connector, never inferred in the UI, and redacted server-side.
  • Non-revealing denials. A denied request never discloses which policy denied.
  • Everything is audited — allow or deny — on one hash-chained trail.