1.4 KiB
1.4 KiB
Test Plan
Generated by /plan-eng-review on 2026-06-19 Branch: main Repo: hermes-mcp
Affected Pages/Routes
/api/obsidian/search- verify customer vault binding, capability enforcement, and tenant-scoped search./api/obsidian/note- verify customer-scoped read/update and rejection of absolute/traversal paths./api/obsidian/note/append- verify writes stay inside the authenticated customer's vault./api/obsidian/sync- verify sync status is scoped to the customer's vault binding./mcp- verify Obsidian tools cannot bypass REST capability and vault checks.
Key Interactions to Verify
- Customer with
obsidiancapability and enabled vault binding can search/read/write only their own notes. - Customer without
obsidiancapability receives403on every Obsidian route/tool. - Customer with capability but no vault binding receives
403 vault_not_configured. - Legacy bearer token receives
403for Obsidian customer vault access.
Edge Cases
- Absolute path such as
/etc/passwdis rejected. - Traversal path such as
../other-customer/secret.mdis rejected. - Symlink escape out of the customer root is rejected.
- Missing note inside an authorized vault returns
404, not cross-vault fallback.
Critical Paths
- Customer A search/read/write cannot touch Customer B files.
- Generic MCP tool call cannot bypass route-level authorization.
- Global operator access, if kept, is explicit and separate from customer routes.