Relays, and what they can see

Mirall connects two devices directly, which works on most networks because both ends cooperate to punch a path through their routers. Some networks refuse to let that happen at all — a corporate firewall that drops the traffic, a carrier that hands out a different port for every connection, a hotel network that isolates its guests from one another. On those there is no direct path to find, and a space simply never syncs.

A relay is a third machine with an address both sides can reach. When the direct path cannot be made, each device connects out to the relay instead and the relay forwards the bytes between them. The connection is slower and it costs somebody bandwidth, but it exists.

Blind, and what that does and doesn't mean

The relays Mirall uses are blind. The two devices run their own end-to-end encryption over the relayed connection, so the relay never holds a session key and has nothing to decrypt with. It cannot see your files, their names, the folders they sit in, which spaces you are in, or who the people on either end are in Mirall's terms.

What it can see is what any machine in the middle sees: the addresses of both ends, the key each end presents to the relay, when they talk, and how much crosses. Blind to content is not blind to metadata. That is not a flaw waiting to be fixed — it is what forwarding traffic means — so the question worth asking is not whether a relay can be trusted with your files, but whose machine it is.

Which is why Mirall runs no relay for its users and ships no default. There is no relay you fall back to without having chosen it. A relay is something you run, or something someone you know runs and lets you into.

Open and private

An open relay admits anyone holding its key, and that key can be passed on. It is the shape of a relay run for a group whose membership nobody needs to police.

A private relay admits only the people its operator has minted an invite for, and that invite can be revoked. The invite also carries a lasting identity for your device on that relay, which is the difference that matters: an open relay sees a key that changes every time Mirall starts, a private one sees the same member every time.

Why your relay can end up carrying other people

Only one of the two ends needs a relay for a relayed connection to be made. So Mirall offers an open relay you have configured to the people you connect with: if the person on the other end has none, they are carried by yours without configuring anything. It is the quickest way to unblock a group — one person runs a relay and everyone benefits.

The same rule works in the other direction. Turning your relay off doesn't stop another member's open relay from carrying their connection to you, because either end offering one is enough. That is their choice, not yours to overrule, so Mirall names those members in your relay settings rather than pretending the connection is direct.

A private relay is never offered that way. Somebody who adopted its key would be refused at the door, and that refusal is deliberately indistinguishable from the relay being down — so they would see a connection that silently never works, and the operator would see unexplained refusals. Offering a path guaranteed to fail is worse than offering nothing. The consequence is worth planning around: a private relay helps its own members reach each other, so both ends of any pair that needs it have to be enrolled.

It stays out of the way

Configuring a relay changes nothing on a network that already works. Mirall reaches for it when a direct connection cannot be made, or when it can already see that this network hands out a different port every time and a direct attempt is unlikely to land. Everything else goes straight between the two devices, as it did before. The one exception is the setting that prefers the relay for every connection, which exists so you can prove a relay works — not so you can run on it day to day. Even then a direct path can still win.

A relay does not keep a file available while the person who shared it is offline. Nothing in Mirall stores your files but the devices that hold them, so an offline member is still an offline member. A relay only makes the connection possible while they are there.

Mirall news

Know when the next release ships.

An email when a new version of Mirall is out, and now and then an offer. Nothing else, and never from anyone but us.

  • Release notes, in plain words
  • One click to unsubscribe

By subscribing you agree to receive release news and occasional offers from Mirall by email, sent with CleverReach. We send a confirmation link first, and you can unsubscribe at any time. See the Privacy Policy.