65 lines
4.1 KiB
Markdown
65 lines
4.1 KiB
Markdown
# Adaptive Music security — 0.7.0
|
||
|
||
## Credentials and browser trust
|
||
|
||
The MA access token remains in the trusted GM tab’s closure memory. It is excluded
|
||
from Foundry settings, flags, sockets, URLs, console logging, IndexedDB serialization
|
||
and release archives. Setup failures retain it in this tab; disconnect or reload
|
||
forgets it. Tokens are never reused after an origin change. Use a restricted MA
|
||
account with only the intended music providers and dedicated receiver permissions.
|
||
|
||
Receiver private identity and pairing material are encrypted in the GM browser’s
|
||
IndexedDB under a campaign/user/origin-derived scope. Encryption uses AES-GCM and
|
||
a non-extractable key stored in the same browser. It avoids plaintext receiver
|
||
storage; it cannot protect against same-origin scripts, a compromised enabled
|
||
module, the local profile owner or theft of a complete browser profile. Use separate
|
||
browser profiles for trusted GM and untrusted accounts. Forget remembered receiver
|
||
removes the local record only; it does not delete MA resources or touch queues.
|
||
|
||
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.
|
||
|
||
## 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. Server-enforced User permissions and role checks are essential; their
|
||
actual-world behavior remains an acceptance gate. SDP is encrypted, bounded and
|
||
replay protected, and validated for one audio direction with media-level SDP
|
||
inheritance. 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 a deliberate reconnect; the owned queue is not replaced during reattachment.
|
||
No blind mutation retry or automatic crash restoration is promised. 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.
|