feat(tenancy): settings a tenant declares for its curation #40

Merged
crapougnax merged 1 commit from feat/39-tenant-settings into develop 2026-11-17 20:11:42 +00:00
Member

Closes #39 — step 2 of #38 (settings part; the sealed secrets wait for quatrain/core#64).

src/instance/tenant-settings.ts:

  • readTenantSettings: repository (address, branch), storage (endpoint, region, bucket), language model (none, own, instance), source of authority, axes, facets. A tenant without settings has none of them.
  • changeTenantSettings: replaces the settings a change names; only an instance administrator may grant the model of the instance.
  • assertRemoteUrl: HTTPS only, no credential, no local or private host. The check reads the host name and does not resolve it: a public name resolving to a private address is not caught here.
  • TENANT_SECRET_NAMES: names of the secrets a tenant may hold.

Nothing uses these settings yet: no behaviour change.

Tests: 127 passing (33 new).

🤖 Generated with Claude Code

Closes #39 — step 2 of #38 (settings part; the sealed secrets wait for quatrain/core#64). `src/instance/tenant-settings.ts`: - `readTenantSettings`: repository (address, branch), storage (endpoint, region, bucket), language model (`none`, `own`, `instance`), source of authority, axes, facets. A tenant without settings has none of them. - `changeTenantSettings`: replaces the settings a change names; only an instance administrator may grant the model of the instance. - `assertRemoteUrl`: HTTPS only, no credential, no local or private host. The check reads the host name and does not resolve it: a public name resolving to a private address is not caught here. - `TENANT_SECRET_NAMES`: names of the secrets a tenant may hold. Nothing uses these settings yet: no behaviour change. Tests: 127 passing (33 new). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(tenancy): settings a tenant declares for its curation (#39)
All checks were successful
Build and Publish OCI Image / Build & Push ARM64 OCI Image (pull_request) Successful in 10m19s
971612bb75
A tenant declares its repository, its object storage, its language model,
its source of authority, its axes and its facets. The reader validates what
is stored and a function applies a change to it.

Addresses must be HTTPS, carry no credential and not name a local or private
host. Only an instance administrator may let a tenant use the language model
of the instance. Secrets are not settings: their names are listed for the
sealed store.

No behaviour change yet. Refs #38.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
crapougnax merged commit 54607953ed into develop 2026-11-17 20:11:42 +00:00
crapougnax deleted branch feat/39-tenant-settings 2026-11-17 20:11:42 +00:00
Sign in to join this conversation.
No reviewers
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!40
No description provided.