No description
| docs/endpoint-snapshots | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| bun.lock | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| types.d.ts | ||
Hanasand Internal
Privileged internal API for Hanasand host and VM operations.
Docker
The service is intended to run through Docker Compose on the dev host:
PORT=8001 INTERNAL_HOST_PORT=8001 DOCKER_GID=988 LXD_GID=101 docker compose up -d --build internal
The container runs the API process as UID/GID 1000:1000 and receives host access through explicit mounts and host groups:
- Docker socket:
/var/run/docker.sock - host workspaces:
/home/devand/home/ubuntu - nginx config:
/home/dev/nginx/default.conf - host logs:
/var/log
Endpoint snapshots live in docs/endpoint-snapshots.
INTERNAL_BASE_URL=http://127.0.0.1:8001 bun run snapshot:endpoints
Side-effecting endpoints are skipped by default. Set INTERNAL_SNAPSHOT_INCLUDE_SIDE_EFFECTS=true only when intentionally testing actions such as backup, scan, deploy, or VM mutations.