Which ISO 27001 controls a self-hosted Matrix server can support
Synapse and Matrix Authentication Service (MAS) produce configuration, access records and logs that support specific ISO/IEC 27001:2022 Annex A controls, but running the software does not make an organization certified. Certification is issued only by an accredited certification body after audit. DeployOpen and the Matrix software vendors cannot issue it. Annex A lists 93 controls in four themes: organizational (37), people (8), physical (14) and technological (34). A self-hosted homeserver mainly touches the technological theme and a handful of organizational controls, so most of your evidence will come from configuration, logs and records the platform generates. Confirm the current control wording against the standard itself before you map anything.
The strongest mappings are technological. Secure authentication (control 8.5) is served by routing sign-in through MAS to your upstream OpenID Connect provider, so that provider's password, MFA and session policies become part of your evidence. Privileged access (8.2) and access rights (5.18) map to who holds Synapse admin API tokens and server administrator accounts, which you should inventory and review on a fixed schedule. Logging (8.15) and monitoring (8.16) draw on Synapse and MAS logs shipped to a central store. Information backup (8.13) depends on restores of PostgreSQL and media storage that you have tested, not just taken. Settings such as federation_domain_whitelist and a firewalled federation listener support network security (8.20) and segregation (8.22).
Several requirements stay with your organization whatever software you run. The information security policy, the scope of the ISMS, risk assessment and treatment, and the Statement of Applicability are management work covered by the standard's clauses on context, leadership and planning, with control 5.1 covering policy. Roles, awareness training and staff onboarding sit in the people theme. Physical controls, such as server room access and equipment disposal, belong to whoever runs the data center or cloud account. Use this mapping as the starting point for your Statement of Applicability, and ask your certification body early which evidence it expects for each control.
Mapping Annex A requirements to Synapse and MAS settings
This table maps each Annex A theme to the Matrix capability, the Synapse or MAS setting involved, and the team that usually owns it. Read it as a starting point for your Statement of Applicability, not as a list of certified controls. Confirm every control ID against your own SoA and your auditor's reading of it.
| Annex A theme | Matrix capability and setting | Owner and evidence to keep |
|---|---|---|
| Organizational controls: access and identity | SSO through MAS using an upstream OpenID Connect provider; SAML only through a bridge such as Dex; disable local registration in the Synapse and MAS configuration | Identity team owns the upstream provider; keep the MAS configuration, provider list and registration settings as evidence |
| Organizational controls: supplier and third-party services | Bridges and identity providers are third-party components; document which bridges are enabled and what data they receive | Service owner keeps a register of bridges, versions and data flows reviewed before each change |
| People controls: user lifecycle and awareness | Deprovisioning through the upstream identity provider and MAS account deactivation; user guidance on rooms and retention | HR and IT operations share the joiner and leaver process; keep deactivation logs and training records |
| Physical controls: infrastructure location | Homeserver and PostgreSQL hosts placed in facilities you control; isolated networks for the database and Redis | Infrastructure team documents hosting location and access; keep network diagrams and access lists |
| Technological controls: information retention and deletion | message_retention policies and erasure on account deactivation; history in federated rooms may persist on remote servers | Data protection owner sets retention periods; keep the configured policy and deletion test results |
| Technological controls: network and federation restriction | federation_domain_whitelist (an empty list disables federation), a firewall on the federation listener, and outbound request controls | Network security owns firewall rules; keep the configuration file and periodic rule reviews |
| Technological controls: privileged access and admin API | Admin API restricted to trusted hosts or accounts; admin accounts behind SSO; replication listener kept off public networks | Platform admins own access; keep admin account lists and access logs for review |
| Technological controls: backup and recovery | Back up PostgreSQL, media store and configuration together; test restores before upgrades, since rollback can be difficult after schema changes | Operations owns backups; keep restore test records and the schedule of tested recovery points |
Evidence auditors can review from a Matrix deployment
An ISO/IEC 27001 assessor will ask whether your messaging controls work as described and whether you can show it over time. The items below are the records a Synapse and MAS deployment can generate or hold, and each one needs an owner and a refresh routine. Most of them are only useful if they are kept current alongside the running system.
Configuration under version control
Keep homeserver.yaml, MAS configuration and reverse proxy settings in a Git repository with reviewed changes and tagged releases. Auditors typically ask who approved a change to registration, federation or retention settings, and when. Check that secrets are excluded from the repository and that the deployed configuration matches the committed version. A diff between the two is a useful spot check.
Identity provider configuration exports
Export the upstream OpenID Connect provider settings that MAS uses, along with the Synapse SSO settings, and store them with dated snapshots. Auditors usually want to see that user sign-in is delegated to the corporate identity provider and that local password login is disabled or restricted. Record which provider, client and claim mappings were in force on each date.
MAS upstream provider docsAdmin activity logs
Retain logs of administrative API calls, account deactivations, room changes and server configuration reloads, and forward them to a store that administrators cannot edit. Auditors ask who could perform privileged actions, who did, and whether the log can show it. Test the log by performing a known admin action and confirming it appears with the operator identity attached.
Retention and federation settings records
Keep a record of the message retention policy, the purge jobs that enforce it, and the federation_domain_whitelist value with each change. Auditors check that retention matches the stated data classification and that federation scope matches the approved partner list. Note the date each partner was allowed or removed, and attach the approval reference.
Backup and restore test records
Record each restore test of the PostgreSQL database and media store, including the backup timestamp, the restore target, the person who ran it and the outcome. Auditors ask whether backups are taken on a schedule and whether restores have ever been proven to work. A backup that has never been restored is not evidence of recovery, so schedule tests and keep their results.
Upgrade records against release notes
For each Synapse upgrade, keep a record that links the target version to the upgrade notes read, the database migration output, the platform floors checked and any rollback decision. Auditors look for change management evidence and for a pattern of timely patching rather than occasional catch-up. Compare the release in use against the current stable release on the Synapse releases page at each review.
Synapse upgrade notesHow identity, federation and retention controls fit together
The first control decision is where trust starts and stops. Users authenticate at the upstream identity provider, such as Keycloak, Microsoft Entra ID or Authentik. Matrix Authentication Service (MAS) sits between that provider and the homeserver as the OAuth 2.0 and OpenID provider, so Synapse receives authenticated sessions from MAS rather than handling passwords itself. Synapse is the homeserver that stores rooms, events and user state. Each of these components holds different evidence for an assessor: the identity provider holds the joiner and leaver record, MAS holds session and device issuance, and Synapse holds room and message data. Map each one to the access control and logging evidence you will present, and confirm with the vendor documentation which settings each component exposes for audit output in your version.
The network boundary has two entry points that need separate treatment. Federation traffic uses the listener on port 8448 by default, while delegation lets clients and remote servers reach a user identity such as @user:example.com through the host on port 443. The server_name value fixes how users and rooms are identified, so choose it before any accounts or rooms exist, because changing it later effectively creates a new namespace. The federation_domain_whitelist setting determines the risk picture: an empty list disables federation entirely, while a list of domains limits which servers can exchange events with yours. The Synapse documentation also recommends firewalling the federation listener, so the ISO 27001 evidence for network control should show both the setting and the firewall rule.
Retention and erasure controls depend on where the data physically sits. Messages, state and media live in PostgreSQL and the media store, and a room's history is copied to every federated server that joins it, which means deleting data locally does not delete copies held elsewhere. Before you write a retention policy into your control set, confirm with your assessor and your legal team which records are in scope, and confirm which retention settings apply to local data and which are limited by federation. Backups of the database and media store must follow the same retention rules, so include them in the same change record. Treat the restore test as the proof that your retention and backup controls operate together.
Where controls sit in a self-hosted Matrix service
The flow starts at the upstream identity provider, which handles the user login and passes identity to MAS, the Matrix Authentication Service. MAS issues the tokens that Synapse accepts, so access decisions for the homeserver sit outside Synapse itself. Synapse's main process and workers share replication through Redis, and the federation listener should sit behind a firewall, outside the organization's own trust boundary. Check that each hand-off, the federation_domain_whitelist setting, the database and backup copies, and the evidence store all sit inside the boundary you intend to assess.
Control points for identity, access, data, backups and evidence in one Matrix deployment.
What the platform does not cover for ISO 27001
Does the Matrix platform produce our risk assessment and Statement of Applicability?
No. The risk assessment and the Statement of Applicability are management system documents that the organization must write and own. The Statement of Applicability lists each Annex A control, states whether it applies, and gives the reason for inclusion or exclusion, so it depends on your business context, your risk criteria and your decisions about which controls are in scope. Synapse and MAS settings can be cited as implemented controls, but they cannot tell you which risks matter. Evidence to create includes the risk methodology, the risk register, the risk treatment plan, sign-off by top management, and a dated record of each review. Confirm with your certification body which format of Statement of Applicability it expects before the first audit.
Who writes the information security policies for the chat service?
Your organization writes them. Policies such as access control, acceptable use of messaging, retention, and incident reporting set the rules that the Synapse and MAS configuration then implements, and an auditor will check that the configuration matches what the policy says. Policies should name owners, approval dates and review intervals. Evidence to create includes approved policy documents, a record that staff acknowledged them, and a trace from each policy statement to the technical setting that enforces it, such as the room retention period or the federation allowlist. Ask your certification body how it expects policy-to-control traceability to be shown.
How do supplier and hosting controls apply to a self-hosted homeserver?
The organization still owns supplier and hosting controls for everything the service depends on. Self-hosting removes some third-party dependencies, but not all of them: the cloud or data center operator, the database and Redis hosting, email relays, identity providers, TURN or call infrastructure, and any bridge or support contractor are all suppliers. For each, you need a register, due diligence records, contract terms covering security and data location, and periodic review. For a DeployOpen engagement, the written scope should name which parts DeployOpen touches and which parts remain your suppliers. Ask any implementation partner for its own supplier and access controls as part of the quote.
Who is responsible for personnel screening and security training?
Your HR and security functions are responsible, and the platform has no role in them. Control coverage for people topics includes screening before employment, terms of employment that reference security responsibilities, awareness training, and the process for removing access when someone leaves or changes role. For Matrix, the operational link is the user lifecycle: deactivating accounts in MAS or the identity provider, and handling admin accounts with named owners. Evidence to create includes training completion records, signed responsibility statements, joiner and leaver tickets, and a list of people holding homeserver admin rights, reviewed on a set schedule.
Is physical security of the data center covered by our Matrix deployment?
No. Physical security of the facility that runs the Synapse, PostgreSQL, Redis and media storage hosts belongs to whoever operates that facility, which may be your own data center, a colocation provider, or a cloud provider. Your obligations are to confirm those controls and keep evidence of them: access logs, visitor procedures, environmental monitoring, and the contractual right to audit or receive reports. If you run in a cloud account, review the provider's independent assurance reports and document how they are mapped to your Statement of Applicability. An air-gapped or on-premises deployment still needs documented physical controls over the servers, backups and admin workstations.
What incident management procedures must we write for a chat service?
You must write and test them. The platform can produce logs and admin actions, but it cannot decide who is notified, how severity is assessed, or when an incident is reported to regulators or customers. A usable procedure names the on-call roles, defines severity levels, sets evidence preservation steps such as keeping Synapse logs and database snapshots before cleanup, and records decisions and lessons learned. Include scenarios specific to Matrix, such as a compromised admin account, abuse through an open federation listener, or a leaked access token. Evidence to create includes the procedure, incident records, tabletop exercise reports and post-incident reviews.
Can we give auditors compliance access to end-to-end encrypted chat?
Not through the homeserver alone. In encrypted rooms, the server stores ciphertext and the message content is readable only on client devices that hold the keys, so the operator cannot produce plaintext for an audit or investigation without a defined key and device process. The organization must decide its policy on encryption, whether key backup is enforced, how legal or compliance access is granted to specific accounts, and how that access is logged and approved. Document the trade-off between confidentiality and lawful access, and record each access request. Confirm the exact behavior of your chosen clients and Synapse version before writing the policy.
Configuring the controls before the audit starts
This sequence sets the identity, access, federation, retention, backup and upgrade controls in a deliberate order, so that each control has a configuration you can show and a test result that proves it works. The outcome is a Matrix homeserver whose settings match a written control design before an auditor samples any evidence.
Fix the server name and identity design
Your team decides the server_name before any user or room exists, because it becomes part of every Matrix user ID and room ID and is difficult to change later. The platform owner records the chosen name, the delegation approach for serving it on port 443, and the owner of the DNS and certificate records. The step is done when the decision record names the server_name, the federation endpoint and the change owner, and when a test account resolves to the expected identity.
Enable SSO through MAS and disable local registration
The identity team connects Matrix Authentication Service to your upstream OpenID Connect provider, such as Keycloak, Microsoft Entra ID, Google or Authentik, so that accounts are created and disabled in one place. If your identity provider speaks only SAML or LDAP, plan a bridge, since MAS does not support SAML directly. The platform team then turns off local account registration in the homeserver configuration. The step is done when a new user can sign in only through the provider and a self-registration attempt is refused.
Set the federation policy
The security and data owners choose whether the server federates openly, federates only with a named list of domains, or does not federate at all. The platform team applies that choice with the federation_domain_whitelist setting, where an empty list disables federation, and firewalls the federation listener to match. The step is done when the written policy, the configuration value and a firewall test from an unlisted host all agree.
Configure retention and admin access
The data owner sets message retention periods in the Synapse configuration and records which rooms, if any, are exempt. The platform team then assigns administrator rights to named individuals only and removes shared administrator accounts. Retention settings do not reach copies already held by remote servers, so the record should say so. The step is done when the retention configuration is in version control and an admin account list exists that matches the access register.
Lock down the admin API and replication listeners
The platform team confirms that the admin API and the replication listeners are reachable only from the management network or from the worker hosts that need them, and not from the public internet or the client listener. Access to these paths is tested from an outside host and from an allowed internal host. The step is done when the scan results and the firewall rules show the restriction, and the test output is stored with the change record.
Version the configuration and prove backups restore
The platform team stores the homeserver configuration, the MAS configuration and the reverse proxy settings in a version control system, with secrets kept in a separate vault. Backups of the PostgreSQL database, the media store and the signing keys run on a schedule, and the team performs a restore into an isolated environment to confirm the data is usable. The step is done when a restore test report records the date, the operator, the restored data and any gaps found.
Record the upgrade cadence against the upgrade notes
The platform owner sets a regular review of the Synapse releases page and reads the published upgrade notes for every version between the current and target release, since skipped notes are a common cause of failed upgrades. Before each upgrade, the owner checks the platform floor, which for Synapse 1.143.0 and later means PostgreSQL 14 or newer, and the Python floor that applies to 1.142.0 and later. The step is done when the upgrade calendar, the checklist and the floor check are signed off and attached to the control record.
How the certification cycle affects Matrix evidence
Evidence for a Matrix messaging service has to be kept continuously, because the certification cycle does not wait for you to prepare. Under ISO/IEC 17021-1, which accredited certification bodies apply, a management system certification cycle lasts three years and includes at least one audit in every calendar year, either surveillance or recertification. That means the certification body will sample evidence from your Synapse and MAS deployment in most years, not only at the initial audit. Configuration exports for retention settings, the federation allowlist, SSO provider definitions, admin API access lists and backup job logs should be captured on a schedule and stored under your document control, so that the record of how the service ran over time exists without a last-minute rebuild.
The transition dates for the standard and for certification bodies have already passed or are now in force. ISO/IEC 27001:2022 is the current edition, and IAF MD 26:2023 set 31 October 2025 as the date by which certificates to the 2013 edition had to expire or be withdrawn. IAF MD 29:2024 required accredited bodies to apply ISO/IEC 27006-1:2024 to all clients by 31 March 2026. Ask your certification body which edition and auditing rules will apply to your next audit, and whether they expect the Annex A control mapping in this guide to be presented against the 2022 control numbering.
Before your first assessment, confirm three points in writing with the certification body: the audit plan for each calendar year of the cycle, the sampling approach they will use for Matrix configuration and logs, and the evidence format they accept, such as exported files, screenshots or read-only admin views. Treat these answers as inputs to your own evidence calendar. The certification body decides conformity, and this section does not describe their requirements beyond what the supplied sources state.
Questions buyers ask about ISO 27001 for Matrix
How much effort does an ISO 27001 control mapping for Matrix take?
The effort depends mostly on how many Matrix components are in scope and how much evidence already exists. A mapping covers the Synapse homeserver, Matrix Authentication Service if you use it, the database, Redis if workers run, the reverse proxy, backup storage, and the admin accounts that can reach the admin API. Each component needs its configuration recorded, its owner named, and its evidence (configuration files, access reviews, backup restore tests, logs) tied to the Annex A controls it supports. Costs come from the number of components, the number of controls you want to evidence, and whether your ISMS already has a risk register and control owners to plug into. Ask any partner for a quote that lists the components, the controls in scope, and the evidence items they will produce, with the work split between their team and yours.
Can our team map Matrix controls to ISO 27001 without outside help?
Yes, many teams do the mapping internally, provided someone understands both the ISO/IEC 27001:2022 Annex A control set and how Synapse and MAS are configured. The harder part is usually the Matrix side: knowing which setting enforces a control, where it is logged, and how to show it works. Internal teams often underestimate the time needed to test restores, review admin API access and confirm that federation settings match the documented policy. If your team has no one who has operated a Synapse homeserver, plan for a review of the configuration by someone who has. Independent certification is a separate step handled by an accredited certification body.
What do identity and security staff need to provide for the mapping?
Identity staff provide the source of truth for users and groups, the upstream identity provider configuration, and the process for joiners, movers and leavers. For Synapse, this means confirming how SSO through OpenID Connect, SAML2 or CAS is set up, whether password login is disabled, and who can create or deactivate accounts. Security staff provide the policy on retention, federation, admin access and backups, plus the logging and alerting they expect. They also need to agree who approves changes to federation_domain_whitelist, who holds admin API tokens, and how those tokens are rotated. Without these decisions written down, the evidence will show configuration without any owner, which auditors commonly question.
How long does ISO 27001 preparation for a Matrix service take?
Preparation time depends on the scope of the service and how mature your information security management system already is. A small, single-homeserver deployment with a documented ISMS and existing control owners needs far less preparation than a multi-site service with worker processes, several identity sources and no current risk register. The main variables are the number of Annex A controls you map, how many environments need evidence, and how many decisions (retention periods, federation policy, backup frequency) must be agreed with the business first. No duration is given here because it should come from a written scope in your own environment. Ask any partner to split the timeline into decisions, build or configuration changes, evidence collection, and internal review.
Can DeployOpen get our Matrix service ISO 27001 certified?
No. DeployOpen does not issue audit reports, attestations or certifications. ISO does not certify organizations either; accredited certification bodies do that work against ISO/IEC 27001 and the related audit requirements. DeployOpen can plan and configure a self-hosted Matrix deployment in your infrastructure, prepare the systems, controls and evidence that an assessment will look at, and document how each control is operated. The certification decision stays with your chosen certification body. Ask any certification body whether they accept the evidence you plan to produce before you commit to a build, because accreditation rules and scope statements differ between bodies.
Does federation have to be disabled for ISO 27001 compliance?
No. ISO/IEC 27001 does not require a messaging service to be closed. It requires you to decide, document and control which external connections are allowed, based on your risk assessment. Synapse offers federation_domain_whitelist for allowlisting specific domains, and an empty list disables federation entirely. The Synapse documentation also recommends firewalling the federation listener. An allowlist is usually easier to justify than a full disable when partners need to reach you, but either choice must be recorded as a risk treatment decision, reviewed on a set schedule, and backed by configuration evidence. Confirm the exact settings and their behavior against the Synapse configuration manual for the version you run.
How do we ask for a fixed-scope quote for this work?
Send a written description of the Matrix components in scope, the Annex A controls you want evidenced, the environments involved, and the identity providers that must integrate. Also state whether you have an existing ISMS, risk register and control owners, and whether you need help with the Synapse and MAS configuration, the evidence, or both. DeployOpen works to a fixed scope agreed in writing before work starts, so the quote follows from that scope rather than a price list, which DeployOpen does not publish. Ask for the deliverables listed item by item, the client responsibilities, the assumptions about existing documentation, and what is excluded. Ongoing support or continuous testing can be quoted separately as a retainer.
How DeployOpen prepares Matrix systems and evidence for ISO 27001
DeployOpen plans, implements and hardens self-hosted Matrix services inside your own infrastructure, then prepares the configuration, controls and evidence that your compliance team can review against ISO/IEC 27001 Annex A. We do not issue audit reports or certifications; your accredited certification body does that.
How we scope
- Engagements are fixed-scope, with the Synapse, MAS and admin components agreed in writing before work starts.
- We map which Annex A controls your Matrix service will be assessed against and record the owner of each control.
- The written scope names the identity provider, retention rules, federation policy and backup targets covered by the work.
How we build
- We configure SSO through MAS and your upstream identity provider, with registration and admin access restricted to approved roles.
- We set retention, federation allowlists, admin API exposure and outbound request controls, then test each setting against its intended behavior.
- We document the configuration in version-controlled files so changes leave a reviewable history.
How we hand over
- You receive a control-by-control evidence pack showing configuration, test results and the owner responsible for each control.
- Restore tests for PostgreSQL and media storage are run and recorded, with the results handed over for your audit file.
- Runbooks cover upgrades, rollback limits and access reviews so your own team can operate the service after handover.
How we support
- Ongoing support, Synapse upgrades and continuous testing are available as retainers after handover.
- We can retest controls after each Synapse or MAS upgrade and update the evidence pack to match the new configuration.
- Before your certification audit, we can help your team answer the auditor's questions about the Matrix service, without making the audit decision.

