trustgraph/trustgraph-flow
cybermaggedon fe542b3d33
Remove race condition in workspace initialisation if iam-svc is up (#867)
Remove race condition in workspace initialisation if iam-svc is up
before config-svc.

iam.py — handle_create_workspace:
- Config registration (_on_workspace_created) moves before the IAM
  table write, so it's a prerequisite. If the config put fails,
  the exception propagates and the IAM create doesn't happen.
- On duplicate, the IAM table write is skipped but config
  registration still runs (idempotent put). Returns the existing
  record with no error instead of returning _err("duplicate", ...).

service.py — _announce_workspace_created → _ensure_workspace_registered:
- Renamed to reflect the new semantics.
- Exceptions propagate instead of being swallowed — if config
  registration fails, the caller sees the error.
2026-05-06 21:21:48 +01:00
..
trustgraph Remove race condition in workspace initialisation if iam-svc is up (#867) 2026-05-06 21:21:48 +01:00
pyproject.toml feat: IAM service, gateway auth middleware, capability model, and CLIs (#849) 2026-04-24 17:29:10 +01:00
README.md Maint/fix build env (#84) 2024-09-30 19:47:09 +01:00