mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 15:37:49 +00:00
Extend the Rust view of the homeserver config with what the federation request layer and agent need: - `config.federation`: timeouts, retry counts and delays, destination backoff, the domain whitelist and the metrics domains. - `config.tls`: certificate verification, the per-host verification whitelist, the minimum TLS version, and the custom CA list. Python now keeps the PEM text of that list too, so Rust never reads the files. - `config.server`: the federation IP range block and allow lists (taken from `netaddr.IPSet`s), the user agent suffix and the proxy config. The verification whitelist holds Python regexes made by `glob_to_regex`. They translate to Rust's syntax with two changes: `\Z` becomes `\z` and `re.IGNORECASE` becomes `(?i)`. The changelog entry needs renaming to the PR number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R5b7Ruy4cgt27Mjq6Ptxbb