Files
tenant-registry/migrations/0005_provision_urls.up.sql
T
sharang 8388e47742
ci / shared (push) Successful in 15s
ci / test (push) Successful in 22m4s
ci / image (push) Successful in 24s
feat(provision): service token on product lifecycle calls; stage/prod provision URLs (#26)
2026-09-12 09:27:40 +00:00

5 lines
635 B
SQL

-- M-MIG-8: the registry provisions tenants at the products' platform endpoints
-- (PRODUCT_INTEGRATION_SPEC 2.0 §4.1) with its own service token.
UPDATE products SET provision_urls = '{"stage": "https://pruefwerk-stage.breakpilot.com/api/v1/platform/tenants/{id}/provision", "prod": "https://pruefwerk.breakpilot.com/api/v1/platform/tenants/{id}/provision"}'::jsonb WHERE key = 'pruefwerk';
UPDATE products SET provision_urls = '{"stage": "https://firmwerk-stage.breakpilot.com/api/v1/platform/tenants/{id}/provision", "prod": "https://firmwerk.breakpilot.com/api/v1/platform/tenants/{id}/provision"}'::jsonb WHERE key = 'firmwerk';