Element Server Suite Community (ESS Community) is Element’s open-source distribution of a Matrix deployment: a homeserver, sign-in, the web and admin clients and a backend for calls, installed on Kubernetes from one Helm chart. It’s released under the AGPLv3 and tailored to small and mid-sized, non-commercial deployments. Element only provides support for its commercial counterpart, ESS Pro.

This page describes it as installed from the ess-helm chart with its default values. Hostnames follow the README’s examples, with example.com as the server name.

ESS Community installs nine components by default

By default ESS Community installs the components below. Each can be turned off or replaced in the chart’s values (README, architecture):

ComponentWhat it does
SynapseThe homeserver: client API, federation and media, in one process, with all its worker types off
Matrix Authentication Service (MAS)Accounts, sign-in and sessions, over OAuth 2.0 and OpenID Connect
HAProxyRoutes Matrix traffic to Synapse, and serves the .well-known files that tell clients and other homeservers where Synapse and the call backend are
Element WebThe web client, as static files
Element AdminThe admin console, a single-page app
MatrixRTC authorisation serviceElement Call’s backend: checks a caller’s identity and room membership, then issues a LiveKit token
LiveKit SFUForwards call audio and video
PostgreSQLOne server, with a database each for Synapse and MAS
ValkeyIn-memory cache for the MatrixRTC components, and pub/sub for Synapse workers

Helm hook jobs run around each install and upgrade: they generate credentials, check Synapse’s configuration and refuse value changes that could corrupt data (installation state). Synapse workers, Hookshot and TURN over TLS for calls are off by default.

The chart includes no ingress controller and no certificates. It creates an Ingress per hostname for a controller you provide, such as K3s’s bundled Traefik, and asks cert-manager for certificates if you name an issuer (certificates).

Everything from outside arrives on port 443 except call media

Arrows point from the side that opens the connection; Valkey and the jobs aren’t shown:

ESS Community's components, with arrows from the side that opens each connectionClients and other homeservers connect to the ingress on TCP 443, and clients also send call media to the MatrixRTC backend directly. The ingress connects to the MatrixRTC backend, HAProxy, MAS and Element Web and Admin. HAProxy connects to Synapse, and Synapse connects both ways with the MatrixRTC backend and with MAS. Synapse connects to the media volume and PostgreSQL, and MAS to PostgreSQL.call mediaClientsOther homeserversIngressTCP 443MatrixRTCbackendHAProxyMASElement Weband AdminSynapseMedia volumePostgreSQL

Inside the cluster, Synapse checks every access token with MAS, and MAS provisions users through Synapse’s admin API with a shared secret. The MatrixRTC backend is two components: the authorisation service checks room membership with Synapse, which forwards call requests to it in turn, and the SFU, which carries the call media, tells the authorisation service when participants join and leave. MAS and the authorisation service reach Synapse through HAProxy; Synapse reaches them directly.

Each hostname needs a DNS record pointing to the ingress (ports):

HostnameWhat it servesReached by
example.com/.well-known/matrix/client, naming the Synapse and call hostnames, and /.well-known/matrix/server, which answers matrix.example.com:443Clients and other homeservers
matrix.example.comClient and federation APIs and media, through HAProxy to Synapse. Login, logout and token refresh go to MASClients and other homeservers
account.example.comMAS’s sign-in pages and OAuth 2.0 endpointsClients
chat.example.com, admin.example.comElement Web and Element AdminBrowsers
mrtc.example.comCall tokens, and WebSocket signalling to the SFUClients in a call, including users of other homeservers, who can join calls held here though not start them

Open the client hostnames on the internet or only on your network, depending on where your users are; federation needs example.com and matrix.example.com reachable from every homeserver you federate with. Call media goes straight to the SFU, on ports of its own.

Both admin APIs are reachable from outside. The Synapse hostname routes all of /_synapse to Synapse, admin API included, and MAS serves its admin API on its hostname, because Element Admin calls both from the browser. Synapse’s documentation recommends hiding its admin API, many of whose calls need a server administrator’s token. MAS’s documentation considers its admin API safe to expose, behind the urn:mas:admin scope.

By default, the deployment also reaches outside your infrastructure: Synapse federates with other homeservers, asks matrix.org for their signing keys, fetches URL previews and sends notifications to push gateways; the SFU asks Google’s STUN servers for its public IP address; Element Web, in users’ browsers, loads location-sharing maps and sends bug reports to Element; and the cluster pulls images from oci.element.io, docker.io and ghcr.io.

State lives in two databases, a media volume and one Secret

WhereWhat’s in it
Database synapseUser profiles, room state, messages and other metadata. Encrypted rooms hide content but not most metadata
Database matrixauthenticationserviceAll of MAS’s state, such as accounts and sessions (MAS)
Volume ess-postgres-data, 10 GiBBoth databases, with the bundled PostgreSQL
Volume ess-synapse-media, 10 GiBUploads, up to 100 MB each, and files cached from other homeservers
Secret ess-generatedEvery credential the values don’t provide: database passwords, Synapse’s signing key, MAS’s encryption secret and signing keys, and the secrets the components share (job arguments)
ConfigMap ess-deployment-markersInstallation markers

Valkey has no volume and its persistence is off. The volumes, the Secret and the ConfigMap all survive helm uninstall (installation state).

Sources