Urgent.News

What's breaking now, across thousands of outlets.

Tech

Link Previews and You

Link previews are a convenient feature that show a snippet of information below a shared URL, allowing users to quickly understand the content behind the link without opening it. Programs like Discord use link previews to help share social media posts and blog content, but Signal, as a decentralized platform, approaches this problem differently.

Signal doesn't gather information about the websites linked by users to maintain user privacy. Instead, Signal generates link previews on the sender's device, which means the sender has the privacy burden of fetching data from the message.

Initially, there was a Client-Server API endpoint called /preview_url to fetch previews from a homeserver. However, privacy concerns made clients disable this behavior in encrypted rooms. To address this, Signal introduced Signal Message Service Bots - user accounts that generate preview messages. This approach, while separating the behavior from the homeserver, requires users to run their own bots, which is not an ideal solution.

In response to these issues, MSC4095: Bundled URL Previews was introduced, allowing clients to attach previews directly to messages. This method generates previews similar to Signal's approach, allowing the sender to generate the preview, thus maintaining user privacy. However, for web users who prefer to use web clients, CORS (Cross-Origin Resource Sharing) limits prevent direct network requests to random websites.

To overcome this, Signal created a separate server to generate link previews for web users, while also allowing clients to generate previews. This resulted in three different ways of generating link previews, complicating the system.

Signal has since moved link preview generation into a separate library, allowing more architectural flexibility and better handling of social media previews. They are experimenting with a privacy-preserving proxy server to generate link previews, which could benefit all clients, provided they can scale up infrastructure, harden the service, and handle potential abuse.

Signal aims to make the privacy implications of link previews more evident to users and explore further support for note previews. They also plan to investigate eliminating the homeserver for generating link previews entirely, but this would require careful consideration to avoid inconsistencies between previews generated by different systems.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at sable.moe →

More in Tech

More from Friday 13 November →