A password for each app or device #11

Merged
squid merged 1 commit from feat/device-passwords into main 2026-11-16 08:15:39 +00:00
Owner

Closes #7

I can make a password for each app that connects to my server, in Settings, Apps and devices. The secret is shown once and can be taken back. It will open the OpenSubsonic API of other apps and nothing else.

  • Secrets are stored sealed (AES-256-GCM, key from the jwt secret), because Subsonic token login needs them in clear. A hash finds a device by its API key.
  • Migration 0034, internal/devices, GET/POST /me/devices, DELETE /me/devices/{id}, OpenAPI.
  • Checked: Go tests with -race on SQLite, storage/api on PostgreSQL, web tsc, oxlint, 1140 tests, build, and the real binary in Chromium.
Closes #7 I can make a password for each app that connects to my server, in Settings, Apps and devices. The secret is shown once and can be taken back. It will open the OpenSubsonic API of other apps and nothing else. - Secrets are stored sealed (AES-256-GCM, key from the jwt secret), because Subsonic token login needs them in clear. A hash finds a device by its API key. - Migration 0034, `internal/devices`, `GET/POST /me/devices`, `DELETE /me/devices/{id}`, OpenAPI. - Checked: Go tests with -race on SQLite, storage/api on PostgreSQL, web tsc, oxlint, 1140 tests, build, and the real binary in Chromium.
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
squid merged commit 32214127c9 into main 2026-11-16 08:15:39 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
squid/sonda!11
No description provided.