mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #10] Add multi-tenant support #6
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yingdi-shan on GitHub (Jul 27, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/10
Summary
AgentENV should add first-class multi-tenant support so one deployment can safely serve multiple teams, organizations, or projects without relying on ad hoc metadata filters or external routing conventions.
Today the API authentication path accepts several auth header shapes, but
src/api/impls/auth.rsonly checks that a header is present and returns an emptyClaimsvalue. Runtime resources such as sandboxes, snapshots, templates, aliases, proxy routes, and scheduler bindings are not scoped by a tenant identifier. This is acceptable for local development and trusted single-tenant deployments, but it is not enough for shared service deployments.Motivation
A multi-tenant AgentENV deployment needs to prevent one tenant from seeing, modifying, resuming, deleting, or proxying into another tenant's resources. It also needs tenant-aware limits and observability so operators can allocate capacity fairly and debug tenant-specific workloads.
Without first-class tenant identity:
Proposed scope
TenantId, and include it in authenticated request claims.