Commit bf963fa
fix(backend): security scanner KeyError on miniKanren port findings
The convert_kanren_findings/1 function accessed finding.message and
finding.severity on all findings, but proto_findings from the kanren
engine only have :port, :protocol, :risk, :source (no :message or
:severity). Now uses Map.get with fallbacks for both finding shapes.
Also verified full backend stack:
- PostgreSQL via Podman container (postgres:17-alpine)
- Ecto migrations run (stacks, users, user_settings tables)
- DbStore auto-fallback working (NativeBridge.available?/0)
- POST /api/stacks creates + persists to PostgreSQL
- POST /api/stacks/:id/validate returns real findings (12 checks)
- POST /api/stacks/:id/security-scan returns real vulnerabilities
- POST /api/stacks/:id/gap-analysis returns 8 real gaps with fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b6e302b commit bf963fa
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
477 | 481 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| |||
0 commit comments