doc: add per-tenant namespace isolation and teardown design - #554
Closed
somfornot wants to merge 1 commit into
Closed
doc: add per-tenant namespace isolation and teardown design#554somfornot wants to merge 1 commit into
somfornot wants to merge 1 commit into
Conversation
Add the design for per-tenant data namespace isolation and fast tenant teardown on the SDK-native direct data plane, the companion to the tenant rate-limit and traffic-observability designs. The tenant becomes a trusted partition key: each tenant has a private namespace backed by its own origin bucket and credentials (resolved from a coordinator-distributed registry), cache entries and on-disk storage are sharded per tenant under one global eviction budget, and DropTenant tears a tenant down by subtree rename plus background unlink, fenced by binding generation. Isolation is structural (no accidental cross-tenant serving) but not a defense against a forged tenant id; native-plane authentication is a documented follow-on. Wire the doc into the mdBook SUMMARY via an include stub. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a design proposal (docs only) — the accepted spec for upcoming per-tenant data-isolation work on the SDK-native direct data plane. Companion to the tenant rate-limit and traffic-observability designs.
Model (the three decisions this design is built on)
Highlights
cache_root/<tenant>/subtree, under one global eviction budget (shard the eviction policy, not the budget — per the v1 Design / DESIGN.md describes a monoio/io_uring Layer-1 runtime that does not exist — the codebase is entirely Tokio #273).DropTenant= in-memory shard drop + subtree rename + background unlink, fenced by binding generation. Near-constant, no full-cache scan.Scope
Design + mdBook SUMMARY wiring only. The object-store gateway access path is explicitly out of scope.
🤖 Generated with Claude Code