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 dbe9338af3 feat(auth): add refresh tokens, admin role and user management
- feat(auth): short-lived access tokens plus rotating refresh tokens stored as
  SHA-256 hashes; replaying a spent token revokes every session of that user
- feat(auth): is_admin flag; the first registered user is the admin and the
  last admin can be neither demoted nor deleted
- feat(api): POST /auth/refresh, /auth/logout, /auth/password and GET /auth/me
- feat(api): admin-only GET/POST /users, PATCH /users/{id}, PUT
  /users/{id}/password and DELETE /users/{id}; the admin check reads the role
  from the database on every call
- feat(api): starting a library scan is now admin-only
- feat(storage): users and refresh token repositories for SQLite and
  PostgreSQL (migration 0004; the oldest existing account becomes admin)
- feat(config): auth.access_ttl_minutes and auth.refresh_ttl_hours replace
  auth.token_ttl_hours
- test: rotation, reuse detection, concurrent rotation with a single winner,
  admin rules, role changes taking effect immediately
2026-11-11 12:38:42 +01:00
cmd/sondad feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
internal feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +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