fix: Phase 1 - security & stability patches
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

- AuthMiddleware now requires auth on /v1/* routes (returns 401)
- WebSocket origin check configurable via WSAllowedOrigin
- Removed debug fmt.Printf leaks (config, ollama, server)
- Registry access protected by sync.RWMutex (race condition fix)
- Session cleanup goroutine runs every 15 min
- RevokeSession returns error instead of silent no-op
This commit is contained in:
2026-04-26 14:45:22 -04:00
parent da074f52b4
commit 8a8d8d1477
13 changed files with 448 additions and 105 deletions
+81
View File
@@ -0,0 +1,81 @@
{
"version": 1,
"files": {
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/index.ts": {
"latest": {
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:14.025Z",
"mi": 12.6,
"cognitive": 335,
"nesting": 6,
"lines": 910,
"maxCyclomatic": 36,
"entropy": 6.97
},
"history": [
{
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:14.025Z",
"mi": 12.6,
"cognitive": 335,
"nesting": 6,
"lines": 910,
"maxCyclomatic": 36,
"entropy": 6.97
}
],
"trend": "stable"
},
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/config.ts": {
"latest": {
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:32.901Z",
"mi": 37.7,
"cognitive": 49,
"nesting": 6,
"lines": 173,
"maxCyclomatic": 8,
"entropy": 6.39
},
"history": [
{
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:32.901Z",
"mi": 37.7,
"cognitive": 49,
"nesting": 6,
"lines": 173,
"maxCyclomatic": 8,
"entropy": 6.39
}
],
"trend": "stable"
},
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/server.ts": {
"latest": {
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:38.756Z",
"mi": 3.9,
"cognitive": 322,
"nesting": 7,
"lines": 1506,
"maxCyclomatic": 28,
"entropy": 7.47
},
"history": [
{
"commit": "da074f5",
"timestamp": "2026-04-26T03:45:38.756Z",
"mi": 3.9,
"cognitive": 322,
"nesting": 7,
"lines": 1506,
"maxCyclomatic": 28,
"entropy": 7.47
}
],
"trend": "stable"
}
},
"capturedAt": "2026-04-26T03:45:43.756Z"
}