Skip to content

v0.5.1 — Tenant Isolation Audit + Workspace Auto-Select

Choose a tag to compare

@raphaelmansuy raphaelmansuy released this 24 Feb 14:25
· 841 commits to edgequake-main since this release

What's New in v0.5.1

Security — Full Tenant/Workspace Isolation Audit

  • verify_workspace_tenant_access helper (handlers/workspaces/helpers.rs): Centralised guard that fetches a workspace by ID, checks workspace.tenant_id matches X-Tenant-ID, and returns 404 (not 403) on mismatch to prevent cross-tenant UUID enumeration.
  • Workspace CRUD (workspace_crud.rs): get_workspace, update_workspace, and delete_workspace now require the workspace to belong to the requesting tenant.
  • Stats and metrics (stats.rs): get_workspace_stats verifies tenant ownership before consulting the in-memory cache — cross-tenant requests never receive cached data. Same check applied to get_metrics_history and trigger_metrics_snapshot.
  • Bulk operations (rebuild_embeddings, rebuild_knowledge_graph, reprocess_all_documents): Inline BR0201 guard added to all three destructive/long-running handlers.

Fixed — Workspace / Tenant UX

  • Auto-select after creation (tenant-workspace-selector.tsx, use-tenant-context.ts): When a new workspace or tenant is created, it is immediately pushed into the Zustand store before selectWorkspace()/selectTenant() is called. Eliminates the race-condition window where the Select dropdown showed "Select workspace…" until async React Query refetch delivered the new item.

Infrastructure

  • Bumped [workspace.package] version in edgequake/Cargo.toml, VERSION, and edgequake_webui/package.json from 0.5.0 to 0.5.1.
  • Fixed 12 duplicate @implements FEAT annotations (same-layer collisions introduced by SRP refactoring) to restore doc-traceability CI to green.