Technical Field NotesBack to articles
Federated messaging operations ยท Updated October 10, 2026

Synapse 1.162.0: One-Time Key Limits and Profile Lookup Rate Limiting

Synapse 1.162.0 caps stored end-to-end-encryption one-time keys at 500 per algorithm and adds configurable rate limiting on profile lookups. What both changes mean for operators.

Short answer: Synapse 1.162.0 rejects uploads that would exceed 500 one-time keys per algorithm per device with a 400 Bad Request, and adds a rate limit on client profile lookup endpoints configurable via rc_profile, two changes aimed at resource abuse rather than features. This is an independent technical field note. It separates what the project documentation and release records say from what an operator still has to test. The goal is a useful decision record, not a promise about performance, security, compatibility, or operating cost.

One-time keys, bounded

In Matrix end-to-end encryption, a client uploads one-time keys so other users can establish encrypted sessions even when the device is offline. The Synapse changelog for 1.162.0 describes a new limit: at most 500 one-time keys stored per device per algorithm, with uploads that would exceed it rejected as 400 Bad Request. For well-behaved clients the limit is invisible; for a client that uploads aggressively or a bug that loops uploads, the server now stops the growth instead of storing it. Operators should watch for client error reports after upgrading, since the rejection is the correct behavior but may surface latent client bugs.

Profile lookups join the rate-limited paths

The same release adds a rate limit on the client profile lookup endpoints, configurable through rc_profile. Profile lookups are a cheap query individually and an expensive one at scale, particularly for deployments reachable from the public internet where a scraper can enumerate user profiles. Rate limiting the endpoint bounds that path, and because Synapse's rate limit configuration is per-endpoint-class, an operator can tune it without touching message-send or login limits.

Both changes are about the abuse budget

Neither change adds user-facing features; both bound what a misbehaving client or outsider can make the server do. That is the quiet maintenance work that keeps a federated server affordable to run: key storage per device is capped, profile enumeration is throttled, and Redis connections gain username support for ACL authentication, which lets operators segment what the Synapse process may touch in a shared Redis. An operator upgrading for room version 12 gets these boundary fixes in the same deployment window.

Verification steps

On staging: confirm a normal encrypted client signs and syncs without key-upload errors after the upgrade; deliberately flood profile lookups from a test client and confirm the rate limit responds and recovers; and if Redis ACLs are in use, configure the new username option and confirm the server starts and serves federation traffic. Record the settings alongside the version, because rate-limit tuning is deployment-specific and worth a written record.

How the key limit interacts with encrypted room churn

One-time key queues grow with how many encrypted sessions a device expects to establish while offline. A user signed into many encrypted rooms across many devices generates more key uploads than a single-room user, and the 500-per-algorithm cap bounds the queue per device regardless. Well-behaved clients keep their queues topped up below the limit; the cap exists for the pathological cases. Operators should watch for two signals after upgrading: client-side errors mentioning key upload failures, which suggest a client whose upload logic needs updating, and any pattern where a device repeatedly hits the cap, which suggests a client bug worth reporting upstream. Neither indicates a server problem; both are now visible instead of silent.

Using rc_profile as part of an abuse-resistance baseline

Synapse has long supported rate limiting for messaging and authentication paths; profile lookups were a gap that scrapers used to enumerate users on public deployments. Setting rc_profile closes that gap, and it works best as part of a coherent baseline: review the existing rc_message, rc_login, and federation timeout settings alongside the new key, confirm they reflect current traffic rather than a deployment that has since grown, and document the chosen values. The changelog's Redis ACL username support belongs in the same review: segmenting what the Synapse process may access in a shared Redis limits the blast radius of an application-level compromise, and takes minutes to configure during an upgrade window that already has Redis on the checklist.

Questions this field note answers

The questions below restate the acceptance checks an operator should be able to answer before relying on the behavior described above.

Limitations

Related infrastructure context

For the physical layer around a systems deployment, TismTek provides fiber and network infrastructure work near Aurora. The team also documents on-premises compute and private AI systems. For a site discussion, call (720) 694-1976. See the 3-2-1 backup guide for recovery planning and the private AI systems overview for the broader on-premises context.

Sources