Commit Graph
2 Commits
Author SHA1 Message Date
Joas A SantosandClaude Opus 5 eaff7a7cf5 feat(docker): run the console on the Kali toolbox image, add .dockerignore
The console ran on debian-slim and reached tools by spawning a sibling Kali
container per command, through the mounted docker socket. Build the console
FROM the toolbox image instead: nmap, sqlmap, ffuf, nuclei, impacket, Ghidra
and the rest are on PATH in the same container the harness runs in. A run
set to sandbox "host" now executes tools in place; picking an image in the
UI still spawns an isolated sibling, so isolation stays available.

This makes build order load-bearing — the console image cannot resolve its
base until the toolbox image exists. install.sh builds kali-base first, then
neurosploit. Renamed the service from kali-worker to kali-base to say what it
is now: a base layer, not a worker pool.

Add .dockerignore. The build context was 19GB, 18GB of it neurosploit-rs/
target/, which the builder stage recompiles anyway; runs/ carried engagement
data into the context as well. agents_md/ is explicitly preserved.

Dropped NS_WORKER_IMAGE and NS_SANDBOX from the compose environment: neither
is read anywhere in the harness or the web server. The sandbox image comes
from the per-run --sandbox flag.

Also fixes install.sh printing a literal ${NS_PORT:-8787} in its closing
banner, and makes it wait for the console to answer before declaring success.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 11:09:31 -03:00
Joas A SantosandClaude Opus 4.6 f5dcc3f459 feat(infra): Docker + PostgreSQL + Kali worker setup
- docker-compose.yml: PostgreSQL 16, neurosploit app, kali-worker
- Dockerfile: multi-stage Rust build + Node runtime
- Dockerfile.kali: kalilinux/kali-rolling with full pentest toolbox
- install.sh: auto-generate credentials, build images, start services
- db/schema.sql: PostgreSQL schema for runs, findings, auth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-12-04 01:37:20 -03:00