Commit graph

3 commits

Author SHA1 Message Date
Jan-Peter von Hunnius
b4502999da CI: add workspace build/test workflow; clones skara-brae-common to the absolute path expected by the sb-common path dependency
Some checks failed
build / build-test (push) Failing after 57s
2026-09-01 06:25:00 +02:00
Jan-Peter von Hunnius
6410e0a86d Implement auth, persistence, typed responses, and injectable RNG
Auth: JWT tokens (sb-auth) with argon2 password hashing, login/register
endpoints, Bearer token middleware protecting all routes except auth.
Authorization checks ensure users can only access their own characters.

Persistence: SQLite via rusqlite (sb-db) with write-through on all
mutations. Optional via SB_DB_PATH env var; falls back to in-memory.

Typed responses: ~20 response DTOs in sb-shared replacing ad-hoc JSON.

Combat: Injectable RNG via &mut impl Rng for deterministic tests.

Clean Architecture: Combat types and response DTOs in sb-shared; domain
services in sb-core; auth in sb-auth; persistence in sb-db.
2026-08-09 16:51:52 +02:00
Jan-Peter von Hunnius
7a75a523f0 Initial scaffold: Rust server workspace (sb-api, sb-core, sb-db, sb-auth, sb-shared) + sb-common dependency + systemd 2026-08-02 12:48:08 +02:00