Privacy and sharing¶
A personal server has one user, so it checks no identity: anyone who can reach it can list, open and execute every notebook under the storage root. Service mode gates the routes by scope and tenant. This page lays out the model honestly so you can pick the deployment shape that matches your trust boundary.
What's shared, what isn't¶
Iceberg scan cache, shared by design¶
The original Strata value prop: identical scans hit the same cache. The key is content-addressed:
hash(tenant | table_identity | table_uuid | file_path | file_size | row_group_id
| projection_fingerprint | schema_id | deletes | reading | added_snapshot_id)
No snapshot id: a data file never changes, so a row group stays cached
across appends. deletes names the rows a snapshot deletes from that
row group, reading the table's format version and name mapping,
table_uuid the table itself, so a dropped and recreated table never
reads the old one's entries, and added_snapshot_id the snapshot that
added the file, so a file rewritten at its path and registered again is
read again.
If Alice ran a scan an hour ago and Bob runs the same scan now, Bob
hits Alice's cached result. This is intentional: it's the
performance win that makes Strata interesting. In multi-tenant
service mode, the tenant term in the hash isolates one tenant
from another.
Notebook artifacts, not actually shared¶
Per-cell variable outputs are stored in each notebook's own
.strata/artifacts/ store as
nb_{notebook_id}_cell_{cell_id}_var_{name}. Two users with
identical notebook code but different notebooks each produce their
own artifacts under different notebook_ids, they don't dedupe
across notebooks. So sharing a Strata instance with a teammate
does not mean your cell outputs cross-pollinate. The exception
is opt-in: the team cache
(STRATA_NOTEBOOK_TEAM_CACHE_ENABLED) offers results, with what
each run printed and displayed, to a shared store by provenance, so
identical cells in different notebooks hit each other there.
Notebook access¶
On a personal server there is no identity to check against: discover
lists every notebook under the storage root, open takes a notebook's
path, and anyone who can reach the port can open anything. That is the
single-user shape, and it is why personal mode binds to loopback by
default. Use
publishing to hand someone a result, or
service mode for a genuinely shared deployment.
Trust boundaries, pick a shape¶
Single developer (default)¶
STRATA_DEPLOYMENT_MODE=personal on localhost, no proxy. The
caller is you, every notebook is yours, sharing isn't on the table.
Use this shape unless something else applies.
A team¶
Give each member a personal server (their own machine, or one container each behind your proxy) and share results through a service-mode store: see Connecting a notebook to the shared store. Share results by publishing them rather than by sending a notebook link. For one server the whole team uses, run service mode (next section).
Multi-tenant or hard-isolation requirements¶
STRATA_DEPLOYMENT_MODE=service + multi-tenancy. Each tenant gets
its own QoS pools and cache namespacing; per-tenant usage comes from
GET /v1/admin/tenants. Notebook routes
are scope gated (notebook:read, notebook:write, notebook:execute),
so what a principal can reach depends on the scopes the proxy asserts
for it.
Notes:
- Notebooks are tenant-scoped, not per-principal. A session
records the tenant of the caller who opened it and looks missing to
other tenants, and a multi-tenant server gives each tenant its own
subdirectory of the storage root. Within a tenant there are no
per-notebook ACLs: anyone in Alice's tenant with
notebook:readsees her notebooks listed by/v1/notebooks/discover, and anyone withnotebook:writecan open them. - Notebook deletion is personal-mode only. Service mode refuses
DELETE /v1/notebooks/{id}anddelete-by-path.
Per-user isolation (every user truly private)¶
Not supported in a single instance. If you need every user to have a notebook namespace nobody else can ever access, run one Strata instance per user. The deployment cost is real (one process, one venv, one storage volume per user) but the isolation is total. Per-user containers behind a routing proxy is a reasonable implementation.
This is the same answer you'd get from JupyterHub, marimo Cloud, or any other notebook tool: hard-private = separate instances.
Future direction: per-notebook ACLs¶
Real per-notebook permissions (a read_principals / write_principals
list in notebook.toml checked on every endpoint) would sit between
the two shapes that exist today: a personal server has one user, and
in service mode anyone in the tenant who has the ID and the scope can
open a notebook. Nothing in between is implemented:
- Publishing already hands a result to someone without handing them the notebook.
- The handful of users who need stronger isolation already have the "separate instance" escape hatch.
If you have a concrete use case that needs per-notebook ACLs, file an issue describing the workflow, that's the right way to move this off the future-work list.