Migrations 0002 (ladder statuses warning|restricted|halted) and 0003 (products table seeded with pruefwerk + werkbank add-on, werkpilot, firmwerk; compliance disabled until M-MIG-9).
GET /v1/tenants (keyset pagination), POST /v1/internal/entitlements/check, POST /v1/tenants/{id}/status; cancel → halted; activate accepts products[] with limits and provisions via catalog provision_urls.
Catalog served from the store with type/launch_url/skus/addons/trial_days. OpenAPI + README updated.
Why
M-MIG-5: the registry is the entitlement authority; products stop reading products from the token. Catalog keys for the first-line products did not exist.
Test plan
go test ./... locally incl. the testcontainers Postgres harness (ladder, add-on, pagination, catalog, authz, migration round-trip)
coverage total 70.5 %
CI
Risk
Behaviour change: cancel now yields halted (was frozen); consumers that compared against frozen must switch to the ladder. Existing frozen rows are treated as restricted.
## What
- Migrations 0002 (ladder statuses `warning|restricted|halted`) and 0003 (`products` table seeded with pruefwerk + werkbank add-on, werkpilot, firmwerk; `compliance` disabled until M-MIG-9).
- `GET /v1/tenants` (keyset pagination), `POST /v1/internal/entitlements/check`, `POST /v1/tenants/{id}/status`; `cancel` → `halted`; `activate` accepts `products[]` with limits and provisions via catalog `provision_urls`.
- Keycloak `SyncTenantStatus` (coarse claim only, attributes merged); `AUTHZ_RULES` per-client route groups; invite client/redirect from env.
- Catalog served from the store with type/launch_url/skus/addons/trial_days. OpenAPI + README updated.
## Why
M-MIG-5: the registry is the entitlement authority; products stop reading `products` from the token. Catalog keys for the first-line products did not exist.
## Test plan
- [x] `go test ./...` locally incl. the testcontainers Postgres harness (ladder, add-on, pagination, catalog, authz, migration round-trip)
- [x] coverage total 70.5 %
- [ ] CI
## Risk
Behaviour change: `cancel` now yields `halted` (was `frozen`); consumers that compared against `frozen` must switch to the ladder. Existing `frozen` rows are treated as `restricted`.
## Linked milestone
M-MIG-5
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Registry becomes the entitlement authority (ERP/02, PRODUCT_INTEGRATION_SPEC 2.0):
- migrations 0002/0003: ladder statuses warning|restricted|halted on
tenant_status; products table replaces the hard-coded catalog, seeded with
pruefwerk (+ werkbank add-on), werkpilot, firmwerk; compliance disabled
until the dsms migration (M-MIG-9)
- GET /v1/tenants (keyset pagination, status/kind filters) for product
schedulers and reconcile jobs
- POST /v1/internal/entitlements/check → {allowed, read_only, status, limits,
expires_at, reason}; add-on limits from tenant_products.config
- POST /v1/tenants/{id}/status — the single ladder transition endpoint;
cancel now moves to halted; activate accepts products[] with limits and
provisions them via the catalog's per-env provision_urls
- SyncTenantStatus: coarse tenant_status attribute on every Keycloak org
member after every status change (attributes merged, roles untouched)
- AUTHZ_RULES: per-client (JWT azp) route groups; 403 FORBIDDEN_CLIENT
- INVITE_CLIENT_ID / INVITE_REDIRECT_URI replace the hard-coded dev-portal
invite parameters
- catalog entries carry type, launch_url (per APP_ENV), skus, addons,
trial_days; openapi.yaml + README updated
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
CODEOWNERS rules
requested review from Benjamin_Boenisch 2026-09-11 14:29:47 +00:00
Coverage gate (70%) fell to 67.6% with the new M-MIG-5 code paths.
Adds tests for GET /v1/tenants pagination + filters + validation,
GET /v1/tenants/{id}, POST /v1/tenants/{id}/status validation and the
Keycloak-failure audit path, /readyz, the requireAuthz middleware and
LogAuthz, and HTTPAdapter.SyncTenantStatus / findUserByEmail against a
stub Keycloak admin API. CI package set now reports 73.5%.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
M-MIG-3/5: the platform cluster (bp-platform-stage) deploys
tenant-registry-stage from repo.breakpilot.com/platform/tenant-registry.
The image job now logs in with the org secrets REGISTRY_USERNAME /
REGISTRY_PASSWORD, pushes under platform/, and POSTs the orca webhook
only when the repo variable ORCA_WEBHOOK_URL is set (it no longer targets
the core master). release.yaml (env-stage/env-prod promotion against a
cluster layout that no longer exists) is removed; prod deploys get their
own trigger with the prod node.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
warning|restricted|halted) and 0003 (productstable seeded with pruefwerk + werkbank add-on, werkpilot, firmwerk;compliancedisabled until M-MIG-9).GET /v1/tenants(keyset pagination),POST /v1/internal/entitlements/check,POST /v1/tenants/{id}/status;cancel→halted;activateacceptsproducts[]with limits and provisions via catalogprovision_urls.SyncTenantStatus(coarse claim only, attributes merged);AUTHZ_RULESper-client route groups; invite client/redirect from env.Why
M-MIG-5: the registry is the entitlement authority; products stop reading
productsfrom the token. Catalog keys for the first-line products did not exist.Test plan
go test ./...locally incl. the testcontainers Postgres harness (ladder, add-on, pagination, catalog, authz, migration round-trip)Risk
Behaviour change:
cancelnow yieldshalted(wasfrozen); consumers that compared againstfrozenmust switch to the ladder. Existingfrozenrows are treated asrestricted.Linked milestone
M-MIG-5
🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Registry becomes the entitlement authority (ERP/02, PRODUCT_INTEGRATION_SPEC 2.0): - migrations 0002/0003: ladder statuses warning|restricted|halted on tenant_status; products table replaces the hard-coded catalog, seeded with pruefwerk (+ werkbank add-on), werkpilot, firmwerk; compliance disabled until the dsms migration (M-MIG-9) - GET /v1/tenants (keyset pagination, status/kind filters) for product schedulers and reconcile jobs - POST /v1/internal/entitlements/check → {allowed, read_only, status, limits, expires_at, reason}; add-on limits from tenant_products.config - POST /v1/tenants/{id}/status — the single ladder transition endpoint; cancel now moves to halted; activate accepts products[] with limits and provisions them via the catalog's per-env provision_urls - SyncTenantStatus: coarse tenant_status attribute on every Keycloak org member after every status change (attributes merged, roles untouched) - AUTHZ_RULES: per-client (JWT azp) route groups; 403 FORBIDDEN_CLIENT - INVITE_CLIENT_ID / INVITE_REDIRECT_URI replace the hard-coded dev-portal invite parameters - catalog entries carry type, launch_url (per APP_ENV), skus, addons, trial_days; openapi.yaml + README updated Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsBCoverage gate (70%) fell to 67.6% with the new M-MIG-5 code paths. Adds tests for GET /v1/tenants pagination + filters + validation, GET /v1/tenants/{id}, POST /v1/tenants/{id}/status validation and the Keycloak-failure audit path, /readyz, the requireAuthz middleware and LogAuthz, and HTTPAdapter.SyncTenantStatus / findUserByEmail against a stub Keycloak admin API. CI package set now reports 73.5%. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB