Repository navigation
v0.5.1 — Tenant Isolation Audit + Workspace Auto-Select
·
841 commits
to edgequake-main
since this release
What's New in v0.5.1
Security — Full Tenant/Workspace Isolation Audit
verify_workspace_tenant_accesshelper (handlers/workspaces/helpers.rs): Centralised guard that fetches a workspace by ID, checksworkspace.tenant_idmatchesX-Tenant-ID, and returns 404 (not 403) on mismatch to prevent cross-tenant UUID enumeration.- Workspace CRUD (
workspace_crud.rs):get_workspace,update_workspace, anddelete_workspacenow require the workspace to belong to the requesting tenant. - Stats and metrics (
stats.rs):get_workspace_statsverifies tenant ownership before consulting the in-memory cache — cross-tenant requests never receive cached data. Same check applied toget_metrics_historyandtrigger_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 beforeselectWorkspace()/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] versioninedgequake/Cargo.toml,VERSION, andedgequake_webui/package.jsonfrom0.5.0to0.5.1. - Fixed 12 duplicate
@implements FEATannotations (same-layer collisions introduced by SRP refactoring) to restore doc-traceability CI to green.