Admin and engine operations
Bring the stack up, watch the queue, resume stuck runs, and manage capacity.
This page is for the person running the Vlnry instance. It stays deliberately neutral about what powers the testing engine — you reason about it as the testing engine, exposed through a typed capability interface. Swapping the underlying implementation is a config change, not a refactor.
Bring the stack up
Vlnry is docker-compose first. From the repo root:
cp .env.example .env
# populate MASTER_ENCRYPTION_KEY, SUPERADMIN_PASSWORD, etc. in root .env
chmod 0600 .env
docker compose up -d --build
docker compose psEvery service (identity + app store, queue, API, worker, web) should report healthy within a minute. Migrations run automatically on the API container before it starts listening.
The run queue
Runs first reserve a durable Mongo dispatch generation, then an idempotent outbox delivers a run-id-only job to the worker. Each worker claims the exact generation, spawns the testing engine for the run, streams progress back to the app, and finalizes findings. Pending and unclaimed-enqueued rows are swept after Redis outages or process crashes.
- Concurrency is set by
WORKER_CONCURRENCY. Raise it when your machine has spare CPU/memory; lower it if runs are competing. - Health — the worker exposes an internal
/healthzonWORKER_PORT. Compose health checks probe it. It is never published to the public internet. - Dead-letter queue — terminally failed jobs land here with the failing error. Investigate before requeuing.
Resuming stuck runs
If a worker crashes, is restarted, or is updated while a run is live, the run ends as an interruption. A normal worker shutdown first stops live runs gracefully so their progress is saved. Every finding already proven is kept — including findings saved on disk that had not been reported yet — and Vlnry resumes the run automatically once (bounded). A stopped run's saved progress is retained for 7 days by default, counted from when the run stopped; inside that window an operator or owner may also resume explicitly. Resume advances the durable dispatch generation, skips completed work, and does not spend another run from the plan; the customer's model provider still bills the repeated steps. A retained terminal BullMQ job cannot collide with the new generation. Stalled detection is bounded by the lock duration—the lock is longer than the run timeout so a live run is never marked stalled. Retention, disk use, graceful stop, and the engine image rebuild are covered in the operator guide docs/pentest-retention-and-graceful-stop.en.md.
Capacity and back-pressure
- Router-level rate limits on run-start, billing, webhooks, and the OAuth callback are configured through the
RATE_LIMIT_*env vars. Authenticated product buckets are account scoped and shared across api replicas in Redis; public auth/webhook buckets are IP scoped. Store failures fail closed. Over-limit requests return 429 with aRetry-Afterheader. - The testing engine is called through a circuit-breaker. Repeated engine failures open the breaker and fail fast for a short window rather than piling runs on a broken back end.
- Vendor calls (identity, AI, GitHub) all carry timeouts and bounded backoff-with-jitter retries; transient errors self-heal.
Reviewing newly discovered models
Discovery proves that an exact model id exists; it does not make that model runnable.
Vercel catalog reasoning and tool-use tags are retained as descriptive evidence, and
an exact streaming/tool probe is still required. When an official provider list does not
publish reasoning metadata, review the provider's official documentation, add the exact
id and evidence URL to the versioned built-in catalog, ship that review, then run the
profile probe and safe-fixture canary. There is deliberately no admin switch that can
assert a capability without review evidence.
Alerts
Set ALERT_WEBHOOK_URL and RESEND_API_KEY so failure notifications land in the channels your team already watches. Without them, failures still land in the log — nothing is silently dropped.