2.9 KiB
Per-Customer Vault Deployment Note
Date: 2026-06-19
Server: art0
Repo: /home/garfield/hermes-mcp
Branch: main
Summary
Claude Code on art0 implemented and deployed per-customer vault isolation for SquareMCP Obsidian/Living Brief access.
The customer cross-vault bug is fixed for customer-authenticated traffic. Customers now require an explicit enabled customer_vaults binding, and customer auth does not fall back to the operator vault.
Operator/no-customer access to the operator vault is intentionally preserved for now for Garfield/Living Brief use.
Git
Pushed to origin:
b4c1007 feat(security): per-customer Obsidian vault isolation
Push result:
7591c66..b4c1007 main -> main
Current server repo state after push:
## main...origin/main
M hermes-k8s.yaml
hermes-k8s.yaml remains dirty intentionally because it is the gitignored production manifest with the deployed image digest. Do not commit it.
Deployed Image
Production hermes-mcp is running:
localhost:32000/hermes-mcp@sha256:9e359392c9eced41f4dd488d2096576e9ee59722a3578e8796bbcd6cb218871c
Rollout status:
hermes-mcp 1/1 READY 1 UP-TO-DATE 1 AVAILABLE
Health check:
curl -fsS https://hermes.squaremcp.com/health
Returned OK with status: ok.
Security Behavior
Enforced now:
- Customer-authenticated Obsidian access requires an enabled customer vault binding.
- Customer A receives Customer A's vault root only.
- Disabled customer vault binding returns
403. - Missing customer vault binding returns
403. - Customer auth does not fall back to Garfield/operator vault.
- Absolute paths and traversal paths are rejected by the scoped vault path resolver.
- Generic MCP Obsidian tool execution cannot bypass customer vault binding checks.
Intentional policy for now:
- No-customer/operator-style Obsidian access can still use Garfield/operator vault.
- This is intentional for Garfield/Living Brief use.
- Revisit later if Living Brief is moved to customer-bound vaults only.
Tests
Targeted security tests and build were rerun on art0 after deployment:
npm test -- src/clients/obsidian.test.ts src/capability-routes.test.ts src/tools.test.ts
npm run build
Result:
3 test files passed
70 tests passed
TypeScript build passed
Full suite was also rerun:
npm test
Result:
32 test files passed
502 tests passed
Files Changed In Commit
TODOS.md
docs/per-customer-vault-design.md
src/capability-routes.test.ts
src/clients/obsidian.test.ts
src/clients/obsidian.ts
src/db.ts
src/index.ts
src/tools.test.ts
src/tools.ts
Remaining Operational Work
- Add explicit
customer_vaultsbindings only for customers who should use vault features. - Use isolated directories for each customer vault root.
- Smoke test any new customer binding before enabling real customer use.
- Keep
hermes-k8s.yamluncommitted.