29 lines
1.4 KiB
Markdown
29 lines
1.4 KiB
Markdown
# 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 `obsidian` capability and enabled vault binding can search/read/write only their own notes.
|
|
- Customer without `obsidian` capability receives `403` on every Obsidian route/tool.
|
|
- Customer with capability but no vault binding receives `403 vault_not_configured`.
|
|
- Legacy bearer token receives `403` for Obsidian customer vault access.
|
|
|
|
## Edge Cases
|
|
- Absolute path such as `/etc/passwd` is rejected.
|
|
- Traversal path such as `../other-customer/secret.md` is 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.
|