Skip to content

Fix/agent robustness - #5

Merged
benjamsf merged 19 commits into
mainfrom
fix/agent-robustness
Nov 25, 2026
Merged

benjamsf merged 19 commits into
mainfrom
fix/agent-robustness

Conversation

@benjamsf

Copy link
Copy Markdown
Member

Description

Fixes #4, and defects of the same kind found while checking it: one failure or hostile input stopping every voice login, or a whole murmur-agent round.

#4

  • Nets nest at most 8 deep under Units/ (Murmur fits 9; one level is kept for temporary channels), checked in the plan parser and Store.add_channel. The agent skips a net Murmur refuses, with the nets under it, and the certificate sweep runs first, on its own.
  • mumblermapi assigns web slots: each browser sends a random id it keeps and gets its own slot. When all nine are taken, a new browser takes the one used longest ago (marked ponytail:).

Logins. Murmur removes its authenticator when a call fails, and every login then fails until the agent registers again.

  • The servant answers every call: a failing check is "try later" or "unknown", and is logged.
  • The agent's adapter takes about 25 MiB, up from 1 MiB: Murmur forwards a name and password from a message of up to 8 MiB and re-encodes each invalid UTF-8 byte as three. Before, anyone reaching port 64738 could remove the authenticator without a certificate.
  • Names over 512 characters are refused before parsing or logging. A user id is handed out only once saved.

Rounds.

  • No error ends the agent. Access rules too large to read are replaced instead of stalling every later net.
  • http.client errors, an oversized state, an OCSP response that cannot be decoded, and Murmur's undeclared "gone" errors no longer end a round.
  • A failed OCSP responder is left alone for 10 s, so an outage costs one timeout, not one per login and per connected user.
  • TAK: a mission that cannot be read keeps its last known subscribers.

Tested with unit and fake-Murmur tests (272, 99.4 % coverage); every commit passes prek on its own. Not run against a live Murmur.

User-Facing Changes

A person's browsers no longer drop each other from voice

One person can be in voice from a laptop and a phone, or from two browsers, at the same time. Before, about one pair in nine kept disconnecting each other.

Nets nest at most 8 deep

Adding or importing a net more than 8 levels deep is refused with a message. Before, such a net silently stopped access rules from being applied to every net.

Voice logins hold up against oversized login attempts

Anyone who could reach the voice port could stop every voice login with one oversized login. That no longer works, and an internal error during a login check now asks the client to try again instead of refusing everyone.

Anything Else You'd Like to Mention

  • POST /api/v1/voice/token takes {"browser": id} instead of {"slot": n}. The platform PR pins 1.0.5 with the matching test change.
  • Nets already stored deeper than 8 (test deployments only) are left out of Murmur, and an export containing them no longer imports.
  • Few issues to do.
    • Murmur does not cap the plugin data a client sends, so one enrolled client can still stop kicks and enforcement, including the kick for its own revocation.
    • No cap on slot names per callsign, and no size limit for nets and members.
    • Health stays green while the sweep fails or the policy is frozen.

A store may already hold nets deeper than 8. They are kept, but a plan
that holds them, an export of such a store included, no longer imports
or loads: move them up before upgrading.
Murmur drops an authenticator whose call raises, and every login then
fails until the agent registers it again.
Murmur checks its 512-character limit only after asking us, so anyone
could have a megabyte name parsed and logged.
Murmur forwards names and passwords from a message of up to 8 MiB, with
each invalid UTF-8 byte re-encoded as three, and a call over Ice's
1 MiB default made it drop the authenticator. Answers over the limit
are now logged as such, not as Murmur not being ready.
A failed save left the id in memory, and after a restart it could go
to another name.
http.client errors are no OSError, so they escaped the policy poll,
presence reports and OCSP checks. A state over the size limit is now
named as such instead of being cut short and read as garbage.
During an outage every login and every connected user in the sweep
waited out its own timeout, holding up the agent's whole round.
Murmur's slice declares no exceptions for getListeningUsers and
stopListening, so a channel or session gone meanwhile ended the round.
One mission's timeout or garbled answer froze every mission net, and an
unexpected shape or error ended the watcher. That mission now keeps its
last known subscribers, and no error ends the watcher.
An unknown signature algorithm, for example, raised past the checker,
and in the certificate sweep that ended the agent.
Only Ice errors were caught in a round, and only some in the policy
poll, so any other error ended the agent, and Murmur's authenticator
and every login with it.
A member can give their temporary channel rules over Ice's limit, and
reading them before writing ours stopped every later net's rules, the
moves and presence, every round.
A temporary channel that emptied between reading the tree and removing
it ended the round.
@benjamsf
benjamsf merged commit 593e56b into main Nov 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review the mumble voice integration

1 participant