Task: Remaining NATS changes
This page documents a task in the NATS migration story. It captures the goal, current status, acceptance, and any notes or results.
Goal
Round of follow-up fixes after the NATS landing — tenant provisioning, RBAC, LEI handler, audit attribution, wt service startup.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent story | NATS migration |
| Now | Completed 2026-03-18. |
| Waiting on | None. |
| Next | None. |
| Last touched | 2026-03-18 |
Acceptance
- Tenant provisioning auto-creates system party + seeds bootstrap-mode flag (triggers provisioning wizard on first login).
- Server-side UUID generation in
tenant_handler::save()when client omits it. account_handlerfixed to usemake_request_contextfor tenant scoping.lei_entity_handler::summary()calls new SQL functionsores_dq_lei_entities_distinct_countries_fn()+ores_dq_lei_entities_summary_by_country_fn()instead of inline SQL (DISTINCT ON (lei) dedup for GLEIF counterparty picker).PQsetNoticeProcessorinstalled inpg_connection_guardso PL/pgSQL NOTICEs route through Boost.Log rather than stdout.- Provisioning wizard parity restored after NATS migration (depth controls, contact counts, reproducibility seed).
performed_byaudit field correctly reflects the service account for service-initiated actions;modified_bycontinues to capture end-user.ores.wt.servicestartup crash fixed (excluded from NATS service discovery to prevent env collisions; Wt-specific arguments correctly passed).
Plan
Captured during execution; cleared into the parent story on close.
Notes
Follow-up sweep covering the things the big NATS PR couldn't catch in one pass.
Result
NATS migration sweep closed cleanly.