sonda/internal/api/http
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 010f2e5057 feat: a password for each app or device
A person can make a password for each app that connects to their server, in
Settings, Apps and devices. The secret is shown once, can be taken back, and
is for the music API of other apps only: it cannot sign in or change the
account. Secrets are kept sealed (AES-256-GCM, key derived from the jwt secret)
because token login needs them in clear, and a hash finds a device by its key.

- migration 0034 device_passwords (sqlite, postgres)
- internal/devices service, storage repo
- GET/POST /me/devices, DELETE /me/devices/{id}, in the OpenAPI spec
- Settings section with copy and remove
2026-11-16 09:15:25 +01:00
..
api_test.go feat: a password for each app or device 2026-11-16 09:15:25 +01:00
artist_image_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
auth_test.go feat(auth): accounts are identified by an email address 2026-11-12 14:40:33 +01:00
catalog_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
contract_test.go feat: a password for each app or device 2026-11-16 09:15:25 +01:00
covers_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
description_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
devices_test.go feat: a password for each app or device 2026-11-16 09:15:25 +01:00
discover_busy_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
discover_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
docs.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
docs_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
duplicates_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
errors.go feat: add sondad server with config, storage, auth and listening API 2026-11-11 12:06:15 +01:00
federation_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
feedback_test.go feat(auth): accounts are identified by an email address 2026-11-12 14:40:33 +01:00
friend_waveform_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
friends_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_about.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_artist_image.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_auth.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_catalog.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_covers.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_devices.go feat: a password for each app or device 2026-11-16 09:15:25 +01:00
handlers_discover.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_duplicates.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_federation.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_feedback.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_friends.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_jobs.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_libraries.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_library.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_lidarr.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_listen.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_mastodon.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_mixes.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_naming.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_peer.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_playlists.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_providers.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_similar.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_smart.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_spotify_import.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_stats.go feat: how the genres I listen to changed over time 2026-11-15 18:17:33 +01:00
handlers_stats_test.go feat: how the genres I listen to changed over time 2026-11-15 18:17:33 +01:00
handlers_stream.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_suggestions.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_taste.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_users.go feat(auth): accounts are identified by an email address 2026-11-12 14:40:33 +01:00
handlers_usersettings.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
handlers_version_test.go feat: show the version of Sonda 2026-11-15 17:30:14 +01:00
handlers_waveform.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
health_log_test.go fix(docker): keep the secret, quiet health checks, and tighter files 2026-11-12 12:29:38 +01:00
jobs_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
libraries_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
library_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
lidarr_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
listens_test.go feat(history): browse my listening by year and month 2026-11-15 12:07:19 +01:00
mastodon_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
middleware.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
middleware_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
mixes_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
naming_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
peer_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
playlist_covers_test.go feat: playlists with a cover, a collage of the covers of their albums 2026-11-13 11:32:01 +01:00
playlists_test.go feat(playlists): a user keeps playlists of tracks 2026-11-12 16:55:25 +01:00
providers_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
router.go feat: a password for each app or device 2026-11-16 09:15:25 +01:00
router_test.go feat(lidarr): a page of the artists I sent to Lidarr, and whether they arrived 2026-11-15 12:32:29 +01:00
similar_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
smart_test.go feat(smart): smart playlists by the year a song came out 2026-11-14 10:19:39 +01:00
spotify_import_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
stream_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
suggestions_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
tags_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
taste_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
usersettings_test.go feat(auth): accounts are identified by an email address 2026-11-12 14:40:33 +01:00
waveform_test.go chore: move the module path to git.kmalloc.org/squid/sonda 2026-11-15 17:30:29 +01:00
web.go feat(web): the app can be installed and opens offline (PWA) 2026-11-13 12:22:00 +01:00
web_test.go feat(web): the app can be installed and opens offline (PWA) 2026-11-13 12:22:00 +01:00