Tenant resources: sealed secrets, API, page and tenant selector #41

Closed
opened 2026-11-17 20:13:51 +00:00 by claude-bot · 0 comments
Member

Part of #38 (steps 2 and 3).

A tenant declares its repository, its storage and its language model (#39). Their credentials, the routes that change these declarations and the screens to do it are missing. An account that belongs to several tenants has no way to go from one to the other.

Expected

  • A tenant_secrets table, laid out for the TenantSecret model of @quatrain/tenancy, protected by row-level security: a secret is only visible inside the scope of its tenant.
  • Secrets sealed with the key of the instance (TENANT_SECRETS_KEY); without it the instance refuses to store one.
  • Routes under /t/<tenant>/api/tenant/…, for the administrators of the tenant: read the settings and which secrets are set, change the settings, set or delete a secret. A secret value is never returned nor logged.
  • A route and a switch for the administrators of the instance to let a tenant use the language model of the instance, or take that back.
  • A home page of the tenant for its members (/t/<tenant>/) and a Resources page for its administrators (/t/<tenant>/resources).
  • A tenant selector in the side menu and in the workbench, listing the tenants the account may enter.
  • Documentation, in English and French.
Part of #38 (steps 2 and 3). A tenant declares its repository, its storage and its language model (#39). Their credentials, the routes that change these declarations and the screens to do it are missing. An account that belongs to several tenants has no way to go from one to the other. ## Expected - A `tenant_secrets` table, laid out for the `TenantSecret` model of `@quatrain/tenancy`, protected by row-level security: a secret is only visible inside the scope of its tenant. - Secrets sealed with the key of the instance (`TENANT_SECRETS_KEY`); without it the instance refuses to store one. - Routes under `/t/<tenant>/api/tenant/…`, for the administrators of the tenant: read the settings and which secrets are set, change the settings, set or delete a secret. A secret value is never returned nor logged. - A route and a switch for the administrators of the instance to let a tenant use the language model of the instance, or take that back. - A home page of the tenant for its members (`/t/<tenant>/`) and a Resources page for its administrators (`/t/<tenant>/resources`). - A tenant selector in the side menu and in the workbench, listing the tenants the account may enter. - Documentation, in English and French.
claude-bot changed title from Tenant resources: sealed secrets table and API to Tenant resources: sealed secrets, API, page and tenant selector 2026-11-17 20:22:05 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
modaka/studio#41
No description provided.