Repository navigation
Fix/agent robustness - #5
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Store.add_channel. The agent skips a net Murmur refuses, with the nets under it, and the certificate sweep runs first, on its own.ponytail:).Logins. Murmur removes its authenticator when a call fails, and every login then fails until the agent registers again.
Rounds.
http.clienterrors, an oversized state, an OCSP response that cannot be decoded, and Murmur's undeclared "gone" errors no longer end a round.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/tokentakes{"browser": id}instead of{"slot": n}. The platform PR pins 1.0.5 with the matching test change.