78 lines
5.0 KiB
Markdown
78 lines
5.0 KiB
Markdown
# Adaptive Music security — 0.8.1
|
||
|
||
## Credentials and browser trust
|
||
|
||
By default the MA access token remains in the GM tab’s memory. A GM can opt in
|
||
to an encrypted IndexedDB record for this trusted browser profile. A separate,
|
||
non-extractable AES-GCM key and random nonce protect the record, which is bound to
|
||
the Foundry origin, world and user. Use a dedicated, high-entropy, revocable token
|
||
from Music Assistant’s Profile settings. Tokens are excluded from Foundry
|
||
settings, flags, sockets, URLs, diagnostic output and release archives.
|
||
|
||
Local encryption protects against casual inspection of plaintext storage. Same-origin
|
||
scripts, enabled modules and the browser profile owner can use the retained key.
|
||
The device credential does not travel to another browser with a Foundry login.
|
||
Use a separate browser profile for accounts that should never share local trust.
|
||
Disconnect ends playback and disables automatic reconnect until the GM connects
|
||
again. Forget Credentials removes the device credential and ends the connection.
|
||
More extensive cleanup is available under Advanced → Forget saved connection.
|
||
|
||
Foundry’s user-scoped address record still holds only a version, nonce and
|
||
ciphertext. It can be unlocked on another device with the same token. Rotating the
|
||
token requires entering the MA address again. MA catalog references created with
|
||
the former token can need reassignment. Receiver private material has its own
|
||
encrypted browser record, paired to the dedicated target.
|
||
|
||
Private development endpoints, tokens, identities, account/catalog results and
|
||
snapshots remain under ignored .local/ (0700; secret files 0600). MA raw WebSocket
|
||
frames can include credentials at VERBOSE logging. Keep raw-frame logging disabled;
|
||
the module does not change production log settings. Expanded operator authorization
|
||
covers the dedicated live development tests; no production infrastructure was changed.
|
||
The release audit checks nested archives for private test inputs and keeps the
|
||
development-world account mapping in its ignored configuration file.
|
||
|
||
## Network and authority
|
||
|
||
Trusted HTTPS Foundry and private HTTPS/WSS MA are required. TLS validation, browser
|
||
security, Origin and private access controls remain enabled. No public MA endpoint,
|
||
Origin forgery, CORS wildcard change or unrestricted proxy is introduced. Both `/ws`
|
||
and `/sendspin` must reach their authenticated MA routes. Token-free diagnostics
|
||
send no explicit MA auth frame; browsers may still send their normal ambient cookies.
|
||
The copyable report adds route timing and an allowlisted setup failure code and
|
||
stage. Arbitrary error strings and connection inputs stay out of those fields.
|
||
Browser APIs do not expose arbitrary HTTP/TLS errors and diagnostics do not invent
|
||
those causes.
|
||
|
||
Only the SDK-generated and locally remembered campaign receiver is paired or
|
||
controlled. The account-bound pairing API is used after the API session is bound
|
||
by Sendspin authentication. Exact identity/name/provider, enabled/available state,
|
||
standalone topology and own active queue are checked before writes. No household
|
||
selection, grouping, transfer or global stop is offered. Unknown writes latch closed.
|
||
Queue snapshots are signed and campaign/session/fence/generation-bound; later
|
||
sessions reject them. Browser authority cannot replace a distributed server fence.
|
||
|
||
Players receive scoped expiring encrypted capabilities, not MA secrets or addresses.
|
||
Public ephemeral keys on permission-controlled User documents authenticate invitation
|
||
delivery. Both ordinary test players were denied a write to the GM’s User flags in
|
||
the installed development world. SDP is encrypted, bounded, replay protected and validated for a single audio
|
||
direction with media-level inheritance. Expiry ends the signaling capability.
|
||
An established media stream remains tied to the authorized listener and active
|
||
GM session. No microphone, video or data channel is requested. Audio uses DTLS-SRTP.
|
||
Recipients can record audio or disclose their own capability. Direct peers can
|
||
learn network addresses. No public STUN/TURN is silently configured. Optional existing ICE URLs and short-lived TURN credentials are entered in the GM interface, kept in tab memory, and delivered only inside the encrypted per-player invitation.
|
||
|
||
## Recovery and distribution
|
||
|
||
API/Sendspin loss stops automation and listener forwarding. Retained tab inputs
|
||
support deliberate reconnect. A trusted device can also reauthenticate after a
|
||
transport outage. Attachment preserves an owned nonempty queue. Unknown writes
|
||
and loss of dedicated queue permission require review before restoring automation. Logical pause
|
||
and interruption snapshots do not survive a reload. Native fallback cannot silently
|
||
resolve an uncertain remote queue.
|
||
|
||
The release builder is offline, preserves the existing Gitea update mechanism,
|
||
checks import/assets closure, SDK hash, licenses, privacy patterns and checksums,
|
||
and includes complete source. No new distributed dependency, runtime CDN, upstream
|
||
install hook, telemetry, core patch or mandatory companion service was added. The
|
||
pinned SDK and noble notices remain intact. No Git host was contacted.
|