Files
adaptive-music/SECURITY.md
T

75 lines
4.9 KiB
Markdown
Raw Permalink Normal View History

2026-12-05 09:40:14 -05:00
# Adaptive Music security — 0.8.0
## Credentials and browser trust
2026-12-05 09:40:14 -05:00
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.
2026-12-05 09:40:14 -05:00
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.
2026-12-05 09:40:14 -05:00
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.
2026-12-05 09:40:14 -05:00
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.
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
2026-12-05 09:40:14 -05:00
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
2026-12-05 09:40:14 -05:00
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.