Sync vault notes: April-November 2026 sessions, projects, and architecture
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe4fe656be
commit
994c7ae577
379 files changed
+55216
-107
No files matched your search
@@ -0,0 +1,128 @@
|
||||
# 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:
|
||||
|
||||
```text
|
||||
b4c1007 feat(security): per-customer Obsidian vault isolation
|
||||
```
|
||||
|
||||
Push result:
|
||||
|
||||
```text
|
||||
7591c66..b4c1007 main -> main
|
||||
```
|
||||
|
||||
Current server repo state after push:
|
||||
|
||||
```text
|
||||
## 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:
|
||||
|
||||
```text
|
||||
localhost:32000/hermes-mcp@sha256:9e359392c9eced41f4dd488d2096576e9ee59722a3578e8796bbcd6cb218871c
|
||||
```
|
||||
|
||||
Rollout status:
|
||||
|
||||
```text
|
||||
hermes-mcp 1/1 READY 1 UP-TO-DATE 1 AVAILABLE
|
||||
```
|
||||
|
||||
Health check:
|
||||
|
||||
```text
|
||||
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:
|
||||
|
||||
```text
|
||||
npm test -- src/clients/obsidian.test.ts src/capability-routes.test.ts src/tools.test.ts
|
||||
npm run build
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```text
|
||||
3 test files passed
|
||||
70 tests passed
|
||||
TypeScript build passed
|
||||
```
|
||||
|
||||
Full suite was also rerun:
|
||||
|
||||
```text
|
||||
npm test
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
```text
|
||||
32 test files passed
|
||||
502 tests passed
|
||||
```
|
||||
|
||||
## Files Changed In Commit
|
||||
|
||||
```text
|
||||
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_vaults` bindings 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.yaml` uncommitted.
|
||||
Reference in new issue
Block a user