Skip to main content

Crate dragoon_server

Crate dragoon_server 

Source
Expand description

dragoon-server — public-relay server for remote-executor.

Modules§

app
axum application factory + shared state + signed-request middleware.
audit
Append-only audit log table.
auth
Authentication primitives: password hashing, TOTP, recovery codes, session / challenge / nonce lifecycle.
db
SQLite schema, bootstrap, and forward migrations.
messages_repo
Per-user controller-message inbox. Server enqueues task-state + worker-error events; ctl drains them via /v1/messages.
routes
HTTP route modules. Each one exposes pub fn router(state) -> Router.
server_keys
Server task-signing keypair persistence (table server_signing_key).
settings
Server runtime settings, loaded from TOML or constructed in tests.
storage
Blob storage on the local filesystem.
tasks_repo
Tasks: ID generation, CRUD, state machine, per-worker monotonic seq. Mirrors python/.../server/tasks_repo.py.
users_repo
User + pubkey CRUD. Mirrors python/.../server/users_repo.py.
workers_repo
Worker registration & token bookkeeping. Mirrors python/.../server/workers_repo.py.