GRI-1853: login, first-user setup and sessions (signage #10) #93

Merged
vivy merged 2 commits from feature/GRI-1853-signage-auth-sessions into dev 2026-11-09 23:23:22 +00:00
Member

Summary

Signage #10: login, first-user setup and sessions.

  • Argon2id password hashing, timing-equalized unknown-user path on login.
  • First-user setup route, race-safe (only succeeds when no user exists yet).
  • Session tokens hashed with SHA-256 at rest, cookie set HttpOnly/Secure/SameSite=Strict.
  • The five /api/v1/setup* / /session routes and an auth extractor for panel routes.

Built on dev after #82 (schema/migrations, signage #9b) merged.

Test plan

  • ./scripts/local-gates.sh --rust-only — all gates pass (fmt, clippy, cargo test incl. 10 db integration tests + unit tests, doc tests).
  • 63 unit tests + 10 integration tests against a real Postgres, covering first-user race, login success/failure timing, session cookie attributes, and the auth extractor.
## Summary Signage #10: login, first-user setup and sessions. - Argon2id password hashing, timing-equalized unknown-user path on login. - First-user setup route, race-safe (only succeeds when no user exists yet). - Session tokens hashed with SHA-256 at rest, cookie set HttpOnly/Secure/SameSite=Strict. - The five `/api/v1/setup*` / `/session` routes and an auth extractor for panel routes. Built on `dev` after #82 (schema/migrations, signage #9b) merged. ## Test plan - `./scripts/local-gates.sh --rust-only` — all gates pass (fmt, clippy, cargo test incl. 10 db integration tests + unit tests, doc tests). - 63 unit tests + 10 integration tests against a real Postgres, covering first-user race, login success/failure timing, session cookie attributes, and the auth extractor.
GRI-1853: cargo fmt
Some checks failed
CI / the pre-push hook (pull_request) Successful in 8s
CI / cargo fmt (pull_request) Successful in 13s
CI / cargo deny (pull_request) Successful in 46s
CI / cargo deny advisories (pull_request) Failing after 40s
CI / repository boundary (pull_request) Successful in 5s
CI / cargo clippy (pull_request) Successful in 10m8s
CI / cargo test (pull_request) Successful in 10m23s
CI / frontend-web (pull_request) Successful in 9m43s
CI / CI (pull_request) Successful in 3s
CI / Notify gate failed (pull_request) Has been skipped
6c709ad428
vivy merged commit 7856035f4a into dev 2026-11-09 23:23:22 +00:00
vivy deleted branch feature/GRI-1853-signage-auth-sessions 2026-11-09 23:23:22 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!93
No description provided.