sonda/internal/storage
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 49f1051b3f feat(streaming): stream tracks with HTTP Range support
- feat(streaming): open a track's file only after checking it against the
  configured library roots: relative paths only, no "..", symlinks resolved on
  both sides so none can leave the root, regular files only
- feat(api): GET and HEAD /api/v1/tracks/{id}/stream via http.ServeContent
  (206, 416, Content-Length, conditional requests), MIME type from the
  extension, nosniff, no-referrer and private caching headers
- feat(api): the stream route also accepts the access token as access_token in
  the query string, because an audio element cannot send headers; no other
  route does, and the query string is never logged
- feat(storage): PlayableFile picks the oldest file of a track that is not
  flagged missing
- fix(api): internal errors set by handlers are now written to the request log
- test: range variants, HEAD, conditional requests, auth variants, traversal,
  symlink escape, symlinked root, missing file, directory instead of file
2026-11-11 12:56:20 +01:00
..
auth_test.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
library.go feat(streaming): stream tracks with HTTP Range support 2026-11-11 12:56:20 +01:00
library_test.go feat(streaming): stream tracks with HTTP Range support 2026-11-11 12:56:20 +01:00
listening.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
refresh.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00
repos_test.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
storage.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
storage_test.go feat(auth): add refresh tokens, admin role and user management 2026-11-11 12:38:42 +01:00
users.go fix(auth): close session races found in review 2026-11-11 12:45:06 +01:00