86 lines
5.5 KiB
Markdown
86 lines
5.5 KiB
Markdown
# Adaptive Music security — 0.6.0
|
|
|
|
## Private GM connection
|
|
|
|
MA endpoint, access token, receiver private identity, pairing records and provider
|
|
configuration stay in the GM tab's closure memory. They are never registered as
|
|
Foundry settings, saved to document flags/localStorage, sent in module sockets,
|
|
embedded in URLs, logged or shipped. Closing/reloading requires private re-entry.
|
|
The user supplies a local identity backup; development/private copies belong under
|
|
ignored `.local/` (directory 0700, regular secret files 0600). No private configuration
|
|
or deployment files are included in releases. No credential was used in this work.
|
|
|
|
GM browser users, debuggers and code executing in that origin can inspect the GM's
|
|
secrets. Trust Foundry and every enabled module. This architecture cannot hide tokens
|
|
from the GM, same-origin compromise or the host administrator. Players receive only
|
|
scoped encrypted audio invitations, never an MA credential, endpoint or SDK identity.
|
|
Use a restricted MA account scoped to the dedicated target and authorized music
|
|
providers; application-side filtering is defense in depth, not an account restriction.
|
|
|
|
MA 2.10.6's inspected WebSocket handler logs received raw frames at VERBOSE, including
|
|
authentication. Before token-bearing connections the GM must confirm raw-frame
|
|
logging is disabled. The wizard cannot verify or redact remote logs and does not
|
|
change logging configuration. No live WebSocket token test was performed here.
|
|
|
|
## Transport and authorization
|
|
|
|
Use trusted HTTPS for remote Foundry and trusted HTTPS/WSS for private GM-to-MA
|
|
access. HTTPS → HTTP/ws is rejected, including loopback downgrade. Plain remote
|
|
Foundry HTTP is rejected for GM MA access. CORS exceptions, encrypted Sendspin payloads
|
|
and browser local-network permissions do not replace TLS, CSP or Origin policy.
|
|
Never disable mixed-content protection, certificate validation, Web security or MA
|
|
authentication. No public/unrestricted MA HTTP/WS/Sendspin proxy is provided.
|
|
|
|
Private imported X25519 identity determines one existing receiver ID. Exact name,
|
|
Sendspin provider, enabled/available state, standalone topology and own active queue
|
|
are rechecked before each write. There is no household discovery/select list, queue
|
|
transfer, speaker grouping, global stop or automatic receiver registration. Setup
|
|
reads can inspect that known target while unavailable during handover; mutation
|
|
guards are not relaxed. Catalog playback requires explicit GM opt-in and uses only
|
|
registered static playlist media from approved music providers.
|
|
|
|
Automatic listeners use public ephemeral P-256 keys in User flags and private keys
|
|
in memory. User document permissions, enforced by Foundry's server, bind public keys
|
|
to accounts. Server/admin/GM and own-browser trust remain necessary. No MA secrets
|
|
or listener capabilities are stored in those flags. A fixed encrypted invitation
|
|
bootstrap authenticates both document keys, binds world/epochs/recipient and limits
|
|
size/concurrent decrypts/replay. Only one active GM and active non-GM participants
|
|
are eligible. Server User permission enforcement is a real-Foundry acceptance gate,
|
|
not proven by fixtures. Do not use this scheme with a modified server that permits
|
|
players to edit another account's User flags or GM role.
|
|
|
|
Capabilities are individual and expire after at most 30 minutes. SDP/ICE is protected
|
|
by the existing AES-GCM SignalCodec with session/peer/sequence/direction binding.
|
|
No raw continuous audio, token, upstream URL or queue data goes over module sockets.
|
|
Audio uses DTLS-SRTP. No microphone/video/control data channel. Role loss, disconnect,
|
|
revocation and expiry tear down peers. A recipient can forward its own capability
|
|
or record received audio; browser code cannot prevent that. Authorized direct peers
|
|
may learn each other's network addresses. Relay-only mode reduces direct candidate
|
|
exposure when a suitable existing TURN service is configured.
|
|
|
|
No silent public STUN/TURN. TURN credentials must expire within an hour; expired
|
|
credentials require renewed operator configuration. No service is provisioned.
|
|
Foundry socket flooding remains an availability concern even though bounded queues,
|
|
strict envelopes and decrypt limits prevent unbounded application work.
|
|
|
|
## Authority, recovery and distribution
|
|
|
|
Transitions remain serialized and generation checked with signed, campaign/session/
|
|
fence-scoped snapshots. Uncertain writes latch closed. Browser Web Locks and a
|
|
single active GM are not a server-side distributed fence. Crashes/offline browsers
|
|
cannot guarantee MA restore; no automatic split-brain handover or durable recovery.
|
|
Native fallback cannot silently resolve an uncertain active remote queue. Effects
|
|
and AmbientSound remain unowned. No production service/network version is changed.
|
|
|
|
The optional companion source and manual test transports remain advanced development
|
|
features. No additional service/container is mandatory or installed. Production routes,
|
|
logging changes or credential use require separate explicit authorization.
|
|
|
|
Release generation is offline and checks browser import closure, manifests, SDK hash,
|
|
notices/licenses, deterministic packaging and private-file patterns. Included source
|
|
archive represents this revision, including uncommitted edits; metadata names the base
|
|
Git revision and source archive digest. These checks supplement, rather than replace,
|
|
secret review. Official SDK 5.0.0, noble dependencies and notices remain pinned; no
|
|
new dependencies, runtime CDN, upstream install hooks or telemetry. PCM-only vendor
|
|
build omits optional Opus fallback binaries. No Git server was contacted or published to.
|