Privacy-first, self-hosted music server written in Go.
  • Go 69.3%
  • TypeScript 29.8%
  • Java 0.3%
  • CSS 0.2%
  • JavaScript 0.2%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 7e59bd26af fix(auth): close session races found in review
- fix(storage): lock the user row when rotating a refresh token or changing a
  password, so on PostgreSQL a token minted during a password change can no
  longer survive the revoke-everything that runs at the same time
- fix(auth): a replay of a just-rotated refresh token (two tabs, a retrying
  client) now fails without revoking the winner's new token; only a replay
  after RefreshReuseGrace is treated as theft and revokes every session
- fix(auth): changing or resetting a password and revoking the user's refresh
  tokens now happen in one transaction
- docs(auth): note that the last-admin rule relies on a single instance
- test: password change racing with a refresh (25 rounds, both databases),
  grace window, winner's token still valid after concurrent rotation
2026-11-11 12:45:06 +01:00
cmd/sondad feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
internal fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
migrations feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
.gitignore feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
go.mod feat(library): add concurrent read-only scanner with progress events 2026-11-11 12:16:45 +01:00
go.sum feat(library): add concurrent read-only scanner with progress events 2026-11-11 12:16:45 +01:00
sonda.example.toml feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00