Skip to content

feat(core): multi-tenant namespaces, key quotas and rate limits - #22

Merged
GoDeskio merged 1 commit into
mainfrom
feat/tenant-quotas
Nov 5, 2026
Merged

GoDeskio merged 1 commit into
mainfrom
feat/tenant-quotas

Conversation

@GoDeskio

Copy link
Copy Markdown
Owner

Backlog #13 (MSP model).

  • src/tenancy.rs: hierarchical namespaces. A child's limits can't exceed its parent's.
  • Key quotas count the whole subtree.
  • A per-namespace token bucket is charged atomically up the ancestor chain.
  • The clock is injected, so tests are deterministic.
  • Tests: hierarchy validation, quota denials at child and parent level, rate limit and refill.

@GoDeskio
GoDeskio merged commit 1b3bc27 into main Nov 5, 2026
11 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant