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
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
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