diff --git a/README.md b/README.md index 51b2f6e6..e17a6488 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Minstrel is not affiliated with or endorsed by ListenBrainz, MusicBrainz or Subs - **Image:** `docker build -t minstrel .` builds the web app and embeds it in the server binary. - **Branches:** work lands on `dev`; `main` changes through pull requests from `dev`. -How accounts and sessions are protected: [docs/security.md](docs/security.md). +How accounts and sessions are protected, and which outside services Minstrel contacts: [docs/security.md](docs/security.md). ## License diff --git a/docs/security.md b/docs/security.md index afbc436f..669fd9bd 100644 --- a/docs/security.md +++ b/docs/security.md @@ -110,6 +110,36 @@ across the internet exposes the session cookie in transit, which is why the On the phone, the session cookie is encrypted with a key held in the Android Keystore, so a copy of the app's files doesn't yield a usable session. +## What Minstrel contacts + +Minstrel runs with no internet access at all: every page, font and script is +served by the server itself, and each service below fails quietly when it +can't be reached. With internet access, a new server contacts these on its +own: + +| Service | What is sent | When | To turn it off | +| --- | --- | --- | --- | +| MusicBrainz (`musicbrainz.org`) | A song's or artist's MusicBrainz id | To fetch genre tags | **Admin › Metadata sources › Tags** | +| MusicBrainz (`musicbrainz.org`) | An album's MusicBrainz release-group id | When the duplicate resolver needs the album's track list | No switch | +| Cover Art Archive (`coverartarchive.org`) | An album's MusicBrainz id | To fetch a missing album cover | **Admin › Metadata sources › Cover art** | +| Deezer (`api.deezer.com`) | An artist's name, or an artist and album title | To fetch a missing cover or artist picture | **Admin › Metadata sources › Cover art** | +| TheAudioDB (`theaudiodb.com`) | An album's or artist's MusicBrainz id | To fetch a missing cover or artist picture | **Admin › Metadata sources › Cover art** | +| ListenBrainz Labs (`labs.api.listenbrainz.org`) | MusicBrainz ids of songs and artists people have played | Hourly, for radio's similar-song data | No switch | + +These are sent only once you set them up: +- **AcoustID** (`api.acoustid.org`) gets a song's audio fingerprint and length + when an admin adds an AcoustID key. +- **Last.fm** (`ws.audioscrobbler.com`) gets artist, album and song names when + an admin adds a Last.fm key and turns it on under **Metadata sources**. +- **ListenBrainz** (`api.listenbrainz.org`) gets each listen of a person who + adds their own ListenBrainz token in **Settings**. +- **Email** goes to the SMTP server an admin configures, and **backups** to + the S3 bucket an admin configures. + +Nothing sends audio files, usernames, email addresses or play counts to a +metadata service. Requests to each service are paced and back off when it +strains. + ## Build pipeline Nothing is published unless every check passes: the Go, integration, web and