Release v0.7.0 - Automatic pairing and validated MA audio playback
Validate and generate manual release / package (push) Waiting to run
Validate and generate manual release / package (push) Waiting to run
This commit is contained in:
1 parent
83d168f5a1
commit
1ed30567fb
48 files changed
+2717
-742
No files matched your search
+53
-74
@@ -1,85 +1,64 @@
|
||||
# Adaptive Music security — 0.6.0
|
||||
# Adaptive Music security — 0.7.0
|
||||
|
||||
## Private GM connection
|
||||
## Credentials and browser trust
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Transport and authorization
|
||||
## Network and authority
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
## Recovery and distribution
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## 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.
|
||||
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.
|
||||
Reference in new issue
Block a user