2026-12-05 20:29:27 -05:00
# Adaptive Music security — 0.8.3
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
## Credentials and browser trust
2026-12-03 20:11:10 -05:00
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-03 20:11:10 -05:00
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-04 11:08:09 -05:00
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.
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
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.
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
## Network and authority
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
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.
2026-12-05 13:37:05 -05:00
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.
2026-12-04 08:58:47 -05:00
Browser APIs do not expose arbitrary HTTP/TLS errors and diagnostics do not invent
those causes.
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
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.
2026-12-03 20:11:10 -05:00
2026-12-05 20:29:27 -05:00
Player, Trusted Player and Assistant GM sessions receive scoped, expiring audio
capabilities. The module grants Music Assistant controller authority only to the
sole active full Gamemaster. The listener interface can change the current
Foundry user's local output settings. This uses a separate User Setting with
only volume and mute values. The GM's personal volume and mute use the local
monitor branch. The campaign pause uses the existing authorized queue commands
and the explicitly owned native fallback when active.
Foundry still enforces the world's document permissions. The Assistant GM role
can carry world administration privileges independently of Adaptive Music's
controller role.
2026-12-04 08:58:47 -05:00
Public ephemeral keys on permission-controlled User documents authenticate invitation
2026-12-04 11:08:09 -05:00
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.
2026-12-04 08:58:47 -05:00
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.
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
## Recovery and distribution
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
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
2026-12-04 08:58:47 -05:00
and interruption snapshots do not survive a reload. Native fallback cannot silently
resolve an uncertain remote queue.
2026-12-03 20:11:10 -05:00
2026-12-04 08:58:47 -05:00
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.