## What - **Codes:** two workspaces connect by code. One administrator creates a code; another workspace's administrator enters it, and the two are connected at once. Each side sees only the other's display name. - **Ending:** either side can end a connection. Archiving a workspace ends all of its connections. When a workspace is purged, the other side keeps the ended connection under the name it knew. - **Product routes:** products (Prüfwerk's supplier SBOM releases first) list a tenant's active connections and check one before each delivery, under a new route group `connections.read`. ## Why Closes #138. This is phase 4 of platform/pruefwerk#1028. Prüfwerk's agent is on stage and already calls the two internal routes; without them the release screen warns that connections can't be read (see the comment on #138). Linked milestone: **n/a** (Prüfwerk #1028, phase 4) ## How **Routes:** | Call | Group | Answer | |---|---|---| | `POST /v1/tenants/{id}/connection-invites` | tenants.write | `201 {id, code, created_at, expires_at}`; the code is in this answer only | | `GET /v1/tenants/{id}/connection-invites` | tenants.read | open codes, without the codes | | `DELETE /v1/tenants/{id}/connection-invites/{invite}` | tenants.write | `204`, withdraws an unused code | | `POST /v1/tenants/{id}/connections` `{code}` | tenants.write | `201 {id, peer_name, state, created_at, ended_by_us}` | | `GET /v1/tenants/{id}/connections` | tenants.read | `{items: [...]}`, newest first | | `POST /v1/tenants/{id}/connections/{connection}/end` | tenants.write | `200`; ending one that has ended answers it unchanged | | `GET /v1/internal/tenants/{id}/connections?state=active` | **connections.read** | `{items: [{id, peer_tenant_id, peer_name}]}`; 404 for an unknown tenant | | `GET /v1/internal/connections/{connection}` | **connections.read** | `{active, tenant_ids}`; 404 for an unknown id | The two internal answers match what `compliance-agent/src/registry.rs` reads. A test pins the `items` key, because the agent defaults a missing key to "no connections". **Codes:** - 160 random bits (`crypto/rand`), shown as eight groups of four base32 letters. - Stored as SHA-256 only, looked up by hash; case, spaces and dashes don't matter. - Valid for 14 days, single use, at most 20 open per workspace. - Every code that doesn't work gets the same 404 `invalid_code`: unknown, used, expired, withdrawn, the workspace's own, or either workspace archived. - 409 `already_connected` when the two are connected already; the code then stays open. - Entering codes is limited to 20 per hour per workspace, and per person when the call names one (`keyRateLimiter` now takes its limit as an argument; CI licences keep theirs). A call from the portal's own client that names nobody has only the workspace limit. Otherwise every workspace would share one limit through that client. **portal#201 must send `X-Portal-User-Subject`.** **Redeeming** is one transaction. `SELECT … FOR UPDATE` on the code, insert the connection, then mark the code used. A partial unique index allows at most one connection per pair of workspaces that hasn't ended. A race test has two workspaces enter one code at the same time: exactly one connects. **Active** is derived on every read: not ended, both workspaces exist, and neither is archived. So no delivery can go to an archived workspace, even if writing the end failed. **Ending on archive:** every status change passes through `syncTenantStatus`, which now ends an archived workspace's connections. The admin purge calls the same step again before `DeleteTenant`, as a safety net. The foreign keys are `ON DELETE SET NULL`, with name snapshots, so the other side keeps its history. **Audit:** `connection.invite_created`, `connection.invite_withdrawn`, `connection.created` and `connection.ended` go into both workspaces' logs. - The acting side's entry names the actor. - The other side's entry is a system entry with `by: peer`: no person, IP or user agent, only the connection id and the acting side's display name. - Ends caused by archiving carry `reason: tenant_archived`. **Product routes refuse user tokens** (403 `FORBIDDEN_CLIENT`), whatever groups the token's client holds, because they carry the peer's tenant id. **Who may:** user tokens need IT_ADMIN or OWNER in their own workspace (the existing team gate, `IsTenantAdmin`). Another workspace's administrator gets a 404. The portal calls as its service client, naming the person in `X-Portal-User-*`. **Side fix:** the Postgres `GetTenant` now answers a non-UUID id as not found (404), as the memory store does. It was a 500, which the new internal route hit. ## Test plan - [x] Unit tests: route groups in `authz_test`, roles and cross-tenant scoping in `connections_scope_test`, and the OpenAPI contract cases. - [x] Integration tests on memory **and Postgres (testcontainers)** in `connections_test.go`, run locally: - connect, list, product view, check, and the re-connect after end; - every invalid code gives the same answer, including expiry with an injected clock; - archive, then purge; - unknown ids; - the rate limit; - the redeem race. - [x] The whole `internal/server` suite runs against Postgres locally (`go test -count=1 ./internal/server/`, 236 s, green). `-race` is green on the connection tests. `go vet` and `golangci-lint` v2.12.2: 0 issues. - [ ] Playwright e2e: n/a, there's no UI here (portal#201). - [ ] Manual smoke on stage after deploy, once `AUTHZ_RULES` carries the grant below. Prüfwerk's release screen should then show no warning. ## Risk **Blast radius:** new tables and routes only. Existing routes change in two small ways: the `GetTenant` 500→404 for non-UUID ids, and the archive path now also ends connections. **What could break:** - **Migration number:** `0032` is also used by the open onprem PRs (#142/#143, `0032_werkpilot_description`). Whichever merges second must renumber. A duplicate version fails the migrations test loudly. I didn't pick 0033, because golang-migrate would silently skip a 0032 that merges after it. - **Deployment grant:** the new group needs a grant in stage and prod `AUTHZ_RULES`. That config isn't in this repo: `pruefwerk-svc-stage:…,connections.read`, and the same for prod. Until it's added, Prüfwerk keeps getting 403. **Rollback plan:** revert the PR and redeploy. The down migration drops both tables. ## Decided (2026-11-20, by the product owner) - **Archived only** ends connections. A `halted` workspace keeps them, so a returning customer finds them again. Active stays false while a side is archived. - **IT_ADMIN or OWNER** may create, enter and end, using the existing team gate rather than a new catalogue right. ## Open points for review 1. **Retention:** a purged workspace's display name stays visible to its former peers through the name snapshot, with no time limit. Should it be dropped after a while? 2. **Additions to the sketch:** the create answer now carries the invite `id`, which the withdraw route needs, and there's a list of open codes, without the codes. ## Checklist - [x] Docs updated: the OpenAPI spec and the package doc in `connections.go` (no separate docs page for registry routes) - [x] Audit events emitted for state changes - [x] Secrets via Infisical, never in repo (none involved) - [x] Migration is forward-only (new tables; down drops them) - [x] Tenant scoping enforced on every DB query - [x] OpenAPI spec updated - [ ] `featureFlags.evaluate()`: n/a (nothing toggleable) - [ ] CHANGELOG entry: n/a (generated by git-cliff on release) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Reviewed-on: #145
tenant-registry
Multi-tenant glue: orgs, entitlements, API keys, audit.
Part of the Breakpilot Platform. For the big picture see
platform/docs: Architecture · Infrastructure · Product Integration Spec · Implementation Plan
What this is
Multi-tenant glue: orgs, entitlements, API keys, audit. Scaffolded under milestone M4.1. See platform/docs for the full architecture context.
Plane: Control Owner: @sharang Status: pre-alpha Linked milestone: M4.1
Run locally
# Prerequisites: Go 1.25+
# Dependencies (Keycloak, pg-app) come from the dev stack — see platform/orca-platform/dev.
# In one terminal — bring up dev dependencies (in the orca-platform clone):
cd /path/to/platform/orca-platform && make dev-up
# In another — run the service:
make dev # APP_ENV=dev, listens on :8090 (Keycloak owns :8080 in the dev stack)
make test # unit tests
make build # compile to ./bin/tenant-registry
Env vars (override at the shell):
| Var | Default | Purpose |
|---|---|---|
APP_ENV |
dev |
one of dev, stage, prod |
ADDR |
:8090 |
listen address (avoids Keycloak's :8080) |
KEYCLOAK_ISSUER |
http://localhost:8080/realms/breakpilot-dev |
OIDC issuer URL (the JWT signer) |
DATABASE_URL |
empty (in-memory store fallback) | Postgres DSN; service uses Memory when empty |
MIGRATE_ON_START |
unset | true ⇒ apply pending migrations before serving (orca has no shell to chain /migrate) |
KEYCLOAK_ADMIN_URL |
empty (Mock adapter used in dev) | KC base URL for the Admin API |
KEYCLOAK_REALM |
breakpilot-dev |
Realm name for Admin API calls |
KEYCLOAK_CLIENT_ID |
empty | Service-account client id (Admin) |
KEYCLOAK_CLIENT_SECRET |
empty | Service-account client secret |
AUTH_ENABLED / AUTH_EXPECTED_AUDIENCE |
false / tenant-registry |
Bearer-token gate on every non-health route |
AUTHZ_RULES |
empty (allow all — dev only) | Per-client route groups, e.g. portal-svc-stage:tenants,catalog,api-keys,audit,users;pruefwerk-svc-stage:entitlements,tenants.read,api-keys.verify,audit.write |
DOCUMENTS_S3_ENDPOINT / _REGION / _BUCKET / _ACCESS_KEY / _SECRET_KEY |
empty (document routes 503) | Object storage for tenant documents; the bucket is created in the region when missing |
DOCUMENTS_MAX_MB |
200 |
Upload limit per document |
SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASSWORD |
empty (mail queues up unsent) | Relay for platform mail (STARTTLS on 587, TLS on 465) |
MAIL_FROM / MAIL_FROM_NAME |
noreply@breakpilot.com / BreakPilot |
Sender of platform mail |
PORTAL_URL |
https://app.breakpilot.com |
Portal origin for links in mail |
INVITE_CLIENT_ID / INVITE_REDIRECT_URI |
dev-portal / https://breakpilot.com/onboard |
Keycloak invite mail client + landing URL (stage: portal-stage, https://app-stage.breakpilot.com/start?invited=1) |
ERP_BASE_URL / ERP_API_KEY / ERP_API_SECRET |
empty (outbox idle) | ERPNext / erpmock base URL + token key:secret credentials |
ERP_LEAD_DOCTYPE |
Lead |
CRM Lead when the Frappe CRM app is used |
ERP_WEBHOOK_SECRET |
empty (receiver disabled) | HMAC secret for POST /v1/internal/erp/webhook |
ERP_OUTBOX_INTERVAL / ERP_RECONCILE_INTERVAL |
15s / 15m |
Worker cadence |
ERP_RESTRICT_AFTER_DAYS / ERP_HALT_AFTER_DAYS / ERP_EXPORT_WINDOW_DAYS |
14 / 28 / 30 |
Ladder timing: days after the Mahnung until read-only / halted; export window |
LICENCE_SIGNING_KEY / LICENCE_ISSUER / LICENCE_TTL_DAYS |
empty (ephemeral) / tenant-registry / 30 |
CLI licence signer (base64 Ed25519 seed) |
SECRETS_ENCRYPTION_KEY |
empty | base64, 32 bytes (openssl rand -base64 32). Seals the LiteLLM key of a Werkpilot CI licence so the reused licence hands it out again (ADR 0001 §5). Empty: a reused CI licence comes without the key (warning llm_key_not_repeatable). |
LITELLM_BASE_URL |
https://llm.breakpilot.com |
LiteLLM proxy root; returned to Werkpilot as llm_base_url |
LITELLM_MASTER_KEY |
empty (LLM keys off — logged once at start) | LiteLLM admin key for /key/generate + /key/delete (secret) |
LITELLM_MODELS |
Qwen3-Coder-30B-A3B-Instruct,gpt-oss-120b,Qwen3.8-27B |
Comma list of models a tenant key may call |
LITELLM_BUDGET_TRIAL / LITELLM_BUDGET_DEFAULT |
5 / 50 |
USD per 30 days (budget_duration: 30d) for trial / paying tenants |
Endpoints
Authoritative spec: openapi.yaml. Summary:
| Method | Path | Purpose |
|---|---|---|
| GET | /healthz |
Liveness |
| GET | /readyz |
Pings the store |
| GET | /v1/tenants |
List tenants (service-only, keyset paginated) |
| POST | /v1/tenants |
Create a tenant |
| GET | /v1/tenants/{id} |
Read by id |
| GET | /v1/tenants/by-slug/{slug} |
Read by slug (portal middleware uses this) |
| POST | /v1/tenants/{id}/activate |
trial → active |
| POST | /v1/tenants/{id}/status |
Ladder transition (active/warning/restricted/halted/archived), syncs Keycloak |
| POST | /v1/tenants/{id}/cancel |
active → halted |
| POST | /v1/internal/entitlements/check |
Authoritative entitlement answer for products (cache ≤ 60 s) |
| GET | /v1/entitlements?tenant_id={id} |
List product entitlements |
| GET | /v1/catalog |
List requestable products |
| POST | /v1/catalog/request |
Customer requests a product (sales follow-up) |
| POST | /v1/catalog/trial-request |
Self-serve 14-day trial |
| GET | /v1/api-keys?tenant_id={id} |
List keys |
| POST | /v1/api-keys |
Create key (plaintext shown once) |
| DELETE | /v1/api-keys/{id} |
Revoke |
| POST | /v1/internal/api-keys/verify |
Used by headless products to validate inbound keys |
| POST | /v1/audit |
Append an audit event |
| GET | /v1/audit |
Query (cursor-paginated) |
| POST | /v1/usage/events |
Products push usage facts (idempotent; forwarded to ERPNext via the outbox) |
| GET | /v1/usage/events?tenant_id={id} |
Query usage |
| GET | /v1/subscriptions?tenant_id={id} |
Subscriptions mirrored from ERPNext |
| POST | /v1/internal/erp/webhook |
ERPNext webhook receiver (HMAC, no bearer) → ladder |
| GET | /v1/internal/erp/status |
Outbox backlog + ERP/licence configuration |
| POST | /v1/internal/erp/reconcile |
Run the reconcile pass now |
| POST | /v1/licences |
Issue a CLI licence JWT (Werkpilot, Firmwerk) |
| GET | /v1/licences?tenant_id={id} |
List licences |
| POST | /v1/licences/{id}/revoke |
Revoke |
| POST | /v1/licences/heartbeat |
CLI phone-home (licence JWT is the credential; renews past half-life) |
| GET | /.well-known/licence-keys.json |
JWKS (Ed25519) for offline licence verification |
| PUT | /v1/admin/tenants/{id}/managed-services/{sid}/admin-token |
Set or clear a Git instance's read:admin token (staff; sealed, write-only) |
| GET | /v1/admin/tenants/{id}/module-users?month= |
Module users per month (staff) |
| GET | /v1/tenants/{id}/module-users?month= |
Module users per month (tenant; portal:billing.view) |
| POST | /v1/internal/module-users/count |
Run the daily module-user count now (group module-users) |
State-changing endpoints emit audit events automatically. The OpenAPI contract test (openapi_test.go) asserts every listed path resolves against the committed spec.
ERP link (M-MIG-7)
ERPNext is the commercial authority; the registry mirrors it and moves tenants
on the ladder (ERP/02 Billing and Entitlements):
- Outbox (
erp_outbox): tenant create →customer.upsert(writeserp_customer_id), usage event →usage.record, catalog request →lead.create. The worker runs everyERP_OUTBOX_INTERVAL(15 s) with backoff 1 m / 5 m / 15 m / 1 h. WithERP_BASE_URLunset it idles and the rows accumulate. - Webhooks (
POST /v1/internal/erp/webhook, HMACERP_WEBHOOK_SECRET):sales_order.submit→ subscriptions +tenant_products(SKU → product,-STD/-BUS/-ENT→ plan, add-on SKUs → limit, e.g.runners) +active;sales_invoice.overdue→warning(never more: see below);payment_entry.submit→active;subscription.cancel→halted. - Late payment needs a Mahnung (AGB § 10: restriction only "trotz
Mahnung und angemessener Nachfrist"). An overdue invoice alone means
warning. The reconcile pass reads the customer's submitted, unresolved ERPNext Dunnings. The earliest one that names a still-open invoice sets the clock:restricted(read-only)ERP_RESTRICT_AFTER_DAYS(14) after its posting date,halteda further 14 days after the restriction (soERP_HALT_AFTER_DAYS, 28, after a Mahnung seen on time). A tenant is always read-only before it is halted. A Mahnung for paid invoices does not count. The ERP API user needs read access to Dunning. - Reconcile every
ERP_RECONCILE_INTERVAL(15 min): re-reads ERP Subscriptions and overdue invoices + Dunnings per customer (safety net for lost webhooks) and applies the time-based steps: trial expiry →restricted,restricted→haltedafter a further 14 d (ERP_HALT_AFTER_DAYS−ERP_RESTRICT_AFTER_DAYS),halted→archivedafterERP_EXPORT_WINDOW_DAYS(30). Awarningnever escalates by time alone. - Every status change syncs the coarse
tenant_statusclaim to Keycloak.
Staging uses the mock (cmd/erpmock, decision 18): the Frappe REST
surface (/api/resource/{Customer,Subscription,Usage Record,Lead,…} with
Authorization: token key:secret), GET /_mock/requests for assertions and
POST /_mock/fire/{sales-order-submit|invoice-overdue|payment-entry|subscription-cancel}
which mutate the mock's docs and deliver the signed webhook to
ERP_WEBHOOK_URL. The live-ERP configuration (custom field tenant_id, API
user, Frappe Webhooks) is documented in ERP/03 for the prod phase.
CLI licences (decision 13)
werkpilot login / firmwerk login run the device flow on the realm and call
POST /v1/licences with the user token; the registry checks the entitlement,
records the licence and signs an EdDSA JWT (LICENCE_SIGNING_KEY = base64
32-byte Ed25519 seed; unset ⇒ ephemeral dev key). CLIs verify offline against
/.well-known/licence-keys.json, phone home hourly via /v1/licences/heartbeat
(ok → warning → degraded → hard_stop on the token's own clock after expiry,
plus the tenant ladder; renewal past half-life) and honour revoked.
Werkpilot licences carry a LiteLLM key (D6)
For product = "werkpilot" the registry also provisions a per-tenant
LiteLLM virtual key (POST /key/generate on LITELLM_BASE_URL with
LITELLM_MASTER_KEY) and returns it in the grant:
{
"id": "6a5e…", "licence": "eyJhbGciOiJFZERTQSIs…", "kid": "fe209240",
"expires_at": "2026-10-12T09:00:00Z",
"grace": { "warning_days": 7, "degraded_days": 14, "hard_stop_days": 30 },
"status": "ok",
"llm_api_key": "sk-…", // once — never stored, never returned again
"llm_base_url": "https://llm.breakpilot.com",
"warnings": ["llm_key_unavailable"] // only when LiteLLM is off / down / refused
}
- Key shape sent to LiteLLM:
key_alias = werkpilot-<tenant_slug>-<licence_id>,models = LITELLM_MODELS,max_budget = LITELLM_BUDGET_TRIALfor tenants intrial, elseLITELLM_BUDGET_DEFAULT,budget_duration = "30d",metadata = {tenant_id, tenant_slug, licence_id, product, plan, tenant_status}. - The row keeps only LiteLLM's hashed token id (
licences.llm_key_id, migration0007), whichGET /v1/licencesexposes asllm_key_id. - Failure never fails the licence: with
LITELLM_MASTER_KEYunset or LiteLLM unreachable the JWT is issued, the LLM fields are omitted andwarningscarriesllm_key_unavailable. - Heartbeat renewal does not mint a second key: the handle moves to the
renewed licence row, the renewed grant carries
llm_base_urlbut nollm_api_key(the CLI keeps the one it stored). - Revoke (
POST /v1/licences/{id}/revoke) deletes the key (POST /key/delete {"keys": [<token id>]}; 404 tolerated). The audit event recordsllm_key_deleted. Firmwerk licences get no key. GET /v1/internal/erp/statusreportsllm_keys_enabled.
Module users (t81)
The registry counts the users of each module per tenant and Europe/Berlin
month (migration 0031). Counting only: invoicing, usage events and the
included amounts come later with t72.
| Module | Who counts | Month value |
|---|---|---|
managed-git |
Workspace members who have signed in to the tenant's active Git instance(s) at least once | Peak of the daily counts (peak_day = the earliest peak day) |
werkpilot, firmwerk |
People whose own CLI licence was created or seen in the month | Distinct people in the month |
- Managed Git: each Gitea is read with its own token of scope
read:admin(GET {url}/api/v1/admin/users, paged). Customers sign in only through Keycloak, so Gitea'slogin_nameis the Keycloak user id; the count is the users whoselogin_nameis a current workspace member's id and whoselast_loginis set. Staff (company realm, other ids) and the CI botbreakpilot-ci(local account, emptylogin_name) drop out. A person on two instances of the tenant counts once. A tenant with a failing instance, a missing token or a Keycloak error is reported and not written (never a 0); a re-run overwrites the day. - Werkpilot / Firmwerk: from
licences; CI licences (apikey:subject,ci:device) and licences issued by a service client (service:) don't count.last_seen_atkeeps only the latest time, so the job adds people to the month's set while it runs (module_users_seen). Each run sweeps the times in the current and the previous Berlin month, each into its own month, so a run after midnight still credits the evening before. - Job: once per Berlin day in the background (checked every 15 min;
also once after a start, a re-run is harmless), or now with
POST /v1/internal/module-users/count. The report lists errors per tenant and service id. - Token:
PUT /v1/admin/tenants/{id}/managed-services/{sid}/admin-tokenwith{"token": "…"}(""clears). Stored AES-256-GCM sealed underSECRETS_ENCRYPTION_KEY(bound to the service id); without that key the PUT answers 503 and Managed Git is not counted. Never returned or logged; the admin view showsadmin_token_set.
Storage
The service picks its store based on DATABASE_URL:
- empty → in-memory store, pre-seeded with the
acmetenant (id: 00000000-0000-0000-0000-000000000001). Useful for portal dev without spinning Postgres. - set → pgx-backed Postgres. Run
make migrate-upagainst the same DSN first.
Both implementations pass the same test harness (internal/server/server_test.go → eachStore).
Keycloak adapter (M4.3)
internal/keycloak is the seam between tenant-registry and Keycloak. The
Adapter interface has two implementations:
| Implementation | When used |
|---|---|
Mock |
Default in dev when KEYCLOAK_ADMIN_URL is empty |
HTTPAdapter |
Real KC Admin API client; activated when KC env vars are populated |
POST /v1/tenants now accepts admin_email and admin_name. When set, the
adapter creates a Keycloak organization (alias = the tenant slug), invites
the user as the IT_ADMIN, and triggers the verify-email + set-password
flow. The response body includes invite_url so dev testers can use it
without waiting for the email — production discards it.
KC failures are non-fatal. The tenant row still lands; a
keycloak.provision_failed audit event captures the error so the operator
can resend the invite from the KC UI.
POST /v1/internal/keycloak/claims resolves a tenant's current entitlement
bundle (tenant_id, slug, products, plan, status). The realm's protocol
mapper calls this at token-issuance time (or whenever user attributes
need a refresh).
For production, provision a service-account client in the realm with the
realm-management:manage-users + manage-organizations roles. Drop its
credentials in Infisical at /{env}/tenant-registry/KEYCLOAK_CLIENT_*.
Schema migrations (M4.1)
# Apply all pending migrations against the dev Postgres (assumes
# `make dev-up` in platform/orca-platform is running):
make migrate-up
# Inspect current version:
make migrate-version
# Roll back the most recent migration:
make migrate-down
# Wipe everything (DESTRUCTIVE — only safe against a dev DB):
make migrate-down-all
# Create the next pair of empty migration files:
make migrate-create NAME=add_team_table
Migrations are embedded into both cmd/server and cmd/migrate via migrations/embed.go. In production, cmd/migrate ships as an Orca init container so the schema is applied before the API server starts (IMPLEMENTATION_PLAN.md §1.7: migrations are forward-only and run as an init container before the service).
The migrations package ships three integration tests (require Docker):
| Test | What it asserts |
|---|---|
TestMigrate_upDownRoundTrip |
up → all 6 tables + 4 enums exist; down → schema empty; up again succeeds |
TestSeed_canInsertAndQuery |
end-to-end insert across all 6 tables, FK cascade behaviour, audit_log SET-NULL on tenant delete |
TestSlugConstraint |
tenant slug regex enforced (rejects too-short / leading dash / uppercase / underscore) |
Run them with make test. Use make test-short in environments without Docker.
Deployment
| Env | URL | How |
|---|---|---|
| dev | http://localhost:8090 |
make dev |
| stage | https://tenant-registry.stage.breakpilot.com |
auto on merge to main |
| prod | https://tenant-registry.breakpilot.com |
manual: tag vX.Y.Z + sign-off |
Rollback: orca rollout undo tenant-registry --env={{env}}.
Observability
- Traces, logs, metrics: SigNoz — service name
tenant-registry - Audit events: Tenant Registry
/audit(Retraced-shape schema) - On-call:
oncall@breakpilot.com· runbook atplatform/docs/runbooks/tenant-registry.md
Contributing
See CONTRIBUTING.md. TL;DR: branch from main, open a PR, 1 review + green CI, squash-merge.
License
Proprietary — all rights reserved. Copyright (c) 2026 Sharang Parnerkar and Benjamin Boenisch. See LICENSE.