Skip to content

0043. No email address in outbound requests

Source: docs/decisions/0043-no-email-in-outbound-requests.md. Generated at build time; edit the source file.

Date: 2026-11-21. Status: accepted.

The Rust platform client built its User-Agent as chess-improver/0.1 (+mailto:{CONTACT_EMAIL}), so the owner’s email went to chess.com and Lichess on every request.

  • No outbound request to a third party (chess.com, Lichess, or any other) may carry an email address, in any header, query string or body. The reason is the owner’s privacy: the project owner’s standing rule is never to send their email to external services.
  • Clients identify themselves by the project URL only. The fixed User-Agent is chess-improver/0.1 (+https://github.com/chess-improver).
  • ClientOptions.contact_email is removed; user_agent() takes no arguments. CONTACT_EMAIL is no longer read by the Rust backend or passed to rust-dev.
  • The same rule applies to the R2 lichess-db download and to the web app’s chess.com calls.
  • Regression test: backend/crates/platforms/tests/client.rs asserts the chess.com and Lichess clients send (with CONTACT_EMAIL set when run) exactly the fixed User-Agent, with no @.
  • chess.com may rate-limit or block an anonymous agent more readily; if so, revisit with a project-owned address, not a personal one.

The project is now Rematch, so every outbound client (the Rust platforms, ai and lichess-db crates, the web app, the TS worker, and the npm and crates.io age checks) sends one fixed User-Agent, rematch/0.1 (+https://github.com/Terkea/rematch). The rule is unchanged: no email address, in any request.