Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

619 строки
39 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2026, Slavi Pantaleev, Aine Etke, MDAD community members
  3. # This file is distributed under the same license as the matrix-docker-ansible-deploy package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  10. "Report-Msgid-Bugs-To: \n"
  11. "POT-Creation-Date: 2026-02-13 10:32+0000\n"
  12. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  13. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  14. "Language-Team: LANGUAGE <LL@li.org>\n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:8
  19. msgid "Setting up Matrix Authentication Service (optional)"
  20. msgstr ""
  21. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:10
  22. msgid "The playbook can install and configure [Matrix Authentication Service](https://github.com/element-hq/matrix-authentication-service/) (MAS) — a service operating alongside your existing [Synapse](./configuring-playbook-synapse.md) homeserver and providing [better authentication, session management and permissions in Matrix](https://matrix.org/blog/2023/09/better-auth/)."
  23. msgstr ""
  24. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:12
  25. msgid "Matrix Authentication Service is an implementation of [MSC3861: Next-generation auth for Matrix, based on OAuth 2.0/OIDC](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) and still work in progress, tracked at the [areweoidcyet.com](https://areweoidcyet.com/) website."
  26. msgstr ""
  27. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:14
  28. msgid "**Before going through with starting to use Matrix Authentication Service**, make sure to read:"
  29. msgstr ""
  30. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:16
  31. msgid "the [Reasons to use Matrix Authentication Service](#reasons-to-use-matrix-authentication-service) section below"
  32. msgstr ""
  33. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:17
  34. msgid "the [Expectations](#expectations) section below"
  35. msgstr ""
  36. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:18
  37. msgid "the [FAQ section on areweoidcyet.com](https://areweoidcyet.com/#faqs)"
  38. msgstr ""
  39. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:20
  40. msgid "**If you've already been using Synapse** and have user accounts in its database, you can [migrate to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service)."
  41. msgstr ""
  42. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:22
  43. msgid "Reasons to use Matrix Authentication Service"
  44. msgstr ""
  45. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:24
  46. msgid "You may be wondering whether you should make the switch to Matrix Authentication Service (MAS) or keep using your existing authentication flow via Synapse (password-based or [OIDC](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on)-enabled)."
  47. msgstr ""
  48. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:26
  49. msgid "Matrix Authentication Service is **still an experimental service** and **not a default** for this Ansible playbook."
  50. msgstr ""
  51. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:28
  52. msgid "The [Expectations](#expectations) section contains a list of what works and what doesn't (**some services don't work with MAS yet**), as well as the **relative irreversability** of the migration process."
  53. msgstr ""
  54. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:30
  55. msgid "Below, we'll try to **highlight some potential reasons for switching** to Matrix Authentication Service:"
  56. msgstr ""
  57. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:32
  58. msgid "To use SSO in [Element X](https://element.io/blog/element-x-ignition/). The old [Synapse OIDC](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on) login flow is only supported in old Element clients and will not be supported in Element X. Element X will only support the new SSO-based login flow provided by MAS, so if you want to use SSO with Element X, you will need to switch to MAS."
  59. msgstr ""
  60. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:34
  61. msgid "To help drive adoption of the \"Next-generation auth for Matrix\" by switching to what's ultimately coming anyway"
  62. msgstr ""
  63. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:36
  64. msgid "To help discover (and potentially fix) MAS integration issues with this Ansible playbook"
  65. msgstr ""
  66. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:38
  67. msgid "To help discover (and potentially fix) MAS integration issues with various other Matrix components (bridges, bots, clients, etc.)"
  68. msgstr ""
  69. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:40
  70. msgid "To reap some of the security benefits that Matrix Authentication Service offers, as outlined in the [Better authentication, session management and permissions in Matrix](https://matrix.org/blog/2023/09/better-auth/) article."
  71. msgstr ""
  72. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:42
  73. msgid "Prerequisites"
  74. msgstr ""
  75. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:44
  76. msgid "⚠️ the [Synapse](configuring-playbook-synapse.md) homeserver implementation (which is the default for this playbook). Other homeserver implementations ([Dendrite](./configuring-playbook-dendrite.md), [Conduit](./configuring-playbook-conduit.md), etc.) do not support integrating with Matrix Authentication Service yet."
  77. msgstr ""
  78. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:46
  79. msgid "❌ **disabling all password providers** for Synapse (things like [shared-secret-auth](./configuring-playbook-shared-secret-auth.md), [rest-auth](./configuring-playbook-rest-auth.md), [LDAP auth](./configuring-playbook-ldap-auth.md), etc.) More details about this are available in the [Expectations](#expectations) section below."
  80. msgstr ""
  81. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:48
  82. msgid "Expectations"
  83. msgstr ""
  84. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:50
  85. msgid "This section details what you can expect when switching to the Matrix Authentication Service (MAS)."
  86. msgstr ""
  87. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:52
  88. msgid "❌ **Synapse password providers will need to be disabled**. You can no longer use [shared-secret-auth](./configuring-playbook-shared-secret-auth.md), [rest-auth](./configuring-playbook-rest-auth.md), [LDAP auth](./configuring-playbook-ldap-auth.md), etc. When the authentication flow is handled by MAS (not by Synapse anymore), it doesn't make sense to extend the Synapse authentication flow with additional modules. Many bridges used to rely on shared-secret-auth for doing double-puppeting (impersonating other users), but most (at least the mautrix bridges) nowadays use [Appservice Double Puppet](./configuring-playbook-appservice-double-puppet.md) as a better alternative. Older/maintained bridges may still rely on shared-secret-auth, as do other services like [matrix-corporal](./configuring-playbook-matrix-corporal.md)."
  89. msgstr ""
  90. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:54
  91. msgid "❌ Certain **tools like [Synapse Admin](./configuring-playbook-synapse-admin.md) do not have full compatibility with MAS yet**. Synapse Admin already supports OIDC auth, browsing users (which Synapse will internally fetch from MAS) and updating user avatars. However, editing users (passwords, etc.) now needs to happen directly against MAS using the [MAS Admin API](https://element-hq.github.io/matrix-authentication-service/api/index.html), which Synapse Admin cannot interact with yet. You may be interested in using [Element Admin](./configuring-playbook-element-admin.md) for these purposes."
  92. msgstr ""
  93. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:56
  94. msgid "❌ **Some services experience issues when authenticating via MAS**:"
  95. msgstr ""
  96. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:58
  97. msgid "[Reminder bot](configuring-playbook-bot-matrix-reminder-bot.md) seems to be losing some of its state on each restart and may reschedule old reminders once again"
  98. msgstr ""
  99. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:60
  100. msgid "[Postmoogle](./configuring-playbook-bridge-postmoogle.md) works the first time around, but it consistently fails after restarting:"
  101. msgstr ""
  102. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:62
  103. msgid "cannot initialize matrix bot error=\"olm account is marked as shared, keys seem to have disappeared from the server\""
  104. msgstr ""
  105. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:64
  106. msgid "❌ **Encrypted appservices** do not work yet (related to [MSC4190](https://github.com/matrix-org/matrix-spec-proposals/pull/4190) and [PR 17705 for Synapse](https://github.com/element-hq/synapse/pull/17705)), so all bridges/bots that rely on encryption will fail to start (see [this issue](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3658) for Hookshot). You can use these bridges/bots only if you **keep end-to-bridge encryption disabled** (which is the default setting)."
  107. msgstr ""
  108. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:66
  109. msgid "⚠️ [Migrating an existing Synapse homeserver to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) is **possible**, but requires **some playbook-assisted manual work**. Migration is **reversible with no or minor issues if done quickly enough**, but as users start logging in (creating new login sessions) via the new MAS setup, disabling MAS and reverting back to the Synapse user database will cause these new sessions to break."
  110. msgstr ""
  111. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:68
  112. msgid "⚠️ Delegating user authentication to MAS causes **your Synapse server to be completely dependent on one more service** for its operations. MAS is quick & lightweight and should be stable enough already, but this is something to keep in mind when making the switch."
  113. msgstr ""
  114. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:70
  115. msgid "⚠️ If you've got [OIDC configured in Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on), you will need to migrate your OIDC configuration to MAS by adding an [Upstream OAuth2 configuration](#upstream-oauth2-configuration)."
  116. msgstr ""
  117. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:72
  118. msgid "⚠️ A [compatibility layer](https://element-hq.github.io/matrix-authentication-service/setup/homeserver.html#set-up-the-compatibility-layer) is installed — all `/_matrix/client/*/login` (etc.) requests will be routed to MAS instead of going to the homeserver. This is done both publicly (e.g. `https://matrix.example.com/_matrix/client/*/login`) and on the internal Traefik entrypoint (e.g. `https://matrix-traefik:8008/_matrix/client/*/login`) which helps addon services reach the homeserver's Client-Server API. You typically don't need to do anything to make this work, but it's good to be aware of it, especially if you have a [custom webserver setup](./configuring-playbook-own-webserver.md)."
  119. msgstr ""
  120. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:74
  121. msgid "✅ Your **existing login sessions will continue to work** (you won't get logged out). Migration will require a bit of manual work and minutes of downtime, but it's not too bad."
  122. msgstr ""
  123. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:76
  124. msgid "✅ Various clients ([Cinny](./configuring-playbook-client-cinny.md), [Element Web](./configuring-playbook-client-element-web.md), Element X, FluffyChat) will be able to use the **new SSO-based login flow** provided by Matrix Authentication Service"
  125. msgstr ""
  126. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:78
  127. msgid "✅ The **old login flow** (called `m.login.password`) **will still continue to work**, so clients (old Element Web, etc.) and bridges/bots that don't support the new OIDC-based login flow will still work"
  128. msgstr ""
  129. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:80
  130. msgid "✅ [Registering users](./registering-users.md) via **the playbook's `register-user` tag remains unchanged**. The playbook automatically does the right thing regardless of homeserver implementation (Synapse, Dendrite, etc.) and whether MAS is enabled or not. When MAS is enabled, the playbook will forward user-registration requests to MAS. Registering users via the command-line is no longer done via the `/matrix/synapse/bin/register` script, but via `/matrix/matrix-authentication-service/bin/register-user`."
  131. msgstr ""
  132. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:82
  133. msgid "✅ Users that are prepared by the playbook (for bots, bridges, etc.) will continue to be registered automatically as expected. The playbook automatically does the right thing regardless of homeserver implementation (Synapse, Dendrite, etc.) and whether MAS is enabled or not. When MAS is enabled, the playbook will forward user-registration requests to MAS."
  134. msgstr ""
  135. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:84
  136. msgid "Installation flows"
  137. msgstr ""
  138. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:86
  139. msgid "New homeserver"
  140. msgstr ""
  141. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:88
  142. msgid "For new homeservers (which don't have any users in their Synapse database yet), follow the [Adjusting the playbook configuration](#adjusting-the-playbook-configuration) instructions and then proceed with [Installing](#installing)."
  143. msgstr ""
  144. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:90
  145. msgid "Existing homeserver"
  146. msgstr ""
  147. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:92
  148. msgid "Other homeserver implementations ([Dendrite](./configuring-playbook-dendrite.md), [Conduit](./configuring-playbook-conduit.md), etc.) do not support integrating with Matrix Authentication Service yet."
  149. msgstr ""
  150. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:94
  151. msgid "For existing Synapse homeservers:"
  152. msgstr ""
  153. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:96
  154. msgid "when following the [Adjusting the playbook configuration](#adjusting-the-playbook-configuration) instructions, make sure to **disable the integration between Synapse and MAS** by **uncommenting** the `matrix_authentication_service_migration_in_progress: true` line as described in the [Marking an existing homeserver for migration](#marking-an-existing-homeserver-for-migration) section below."
  155. msgstr ""
  156. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:98
  157. msgid "then follow the [Migrating an existing Synapse homeserver to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) instructions to perform the installation and migration"
  158. msgstr ""
  159. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:100
  160. msgid "Adjusting DNS records (optional)"
  161. msgstr ""
  162. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:102
  163. msgid "By default, this playbook installs the Matrix Authentication Service on the `matrix.` subdomain, at the `/auth` path (https://matrix.example.com/auth). This makes it easy to install it, because it **doesn't require additional DNS records to be set up**. If that's okay, you can skip this section."
  164. msgstr ""
  165. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:104
  166. msgid "If you wish to adjust it, see the section [below](#adjusting-the-matrix-authentication-service-url-optional) for details about DNS configuration."
  167. msgstr ""
  168. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:106
  169. msgid "Adjusting the playbook configuration"
  170. msgstr ""
  171. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:108
  172. msgid "To enable Matrix Authentication Service, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:"
  173. msgstr ""
  174. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:122
  175. msgid "In the sub-sections that follow, we'll cover some additional configuration options that you may wish to adjust."
  176. msgstr ""
  177. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:124
  178. msgid "There are many other configuration options available. Consult the [`defaults/main.yml` file](../roles/custom/matrix-authentication-service/defaults/main.yml) in the [matrix-authentication-service role](../roles/custom/matrix-authentication-service/) to discover them."
  179. msgstr ""
  180. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:126
  181. msgid "Adjusting the Matrix Authentication Service URL (optional)"
  182. msgstr ""
  183. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:128
  184. msgid "By tweaking the `matrix_authentication_service_hostname` and `matrix_authentication_service_path_prefix` variables, you can easily make the service available at a **different hostname and/or path** than the default one."
  185. msgstr ""
  186. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:130
  187. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:157
  188. msgid "Example additional configuration for your `vars.yml` file:"
  189. msgstr ""
  190. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:138
  191. msgid "If you've changed the default hostname, you may need to create a CNAME record for the Matrix Authentication Service domain (`auth.example.com`), which targets `matrix.example.com`."
  192. msgstr ""
  193. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:140
  194. msgid "When setting, replace `example.com` with your own."
  195. msgstr ""
  196. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:142
  197. msgid "Marking an existing homeserver for migration"
  198. msgstr ""
  199. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:144
  200. msgid "The [configuration above](#adjusting-the-playbook-configuration) instructs existing users wishing to migrate to add `matrix_authentication_service_migration_in_progress: true` to their configuration."
  201. msgstr ""
  202. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:146
  203. msgid "This is done temporarily. The migration steps are described in more detail in the [Migrating an existing Synapse homeserver to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) section below."
  204. msgstr ""
  205. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:148
  206. msgid "Upstream OAuth2 configuration"
  207. msgstr ""
  208. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:150
  209. msgid "To make Matrix Authentication Service delegate to an existing upstream OAuth 2.0/OIDC provider, you can use its [`upstream_oauth2.providers` setting](https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#upstream_oauth2providers)."
  210. msgstr ""
  211. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:152
  212. msgid "The playbook exposes a `matrix_authentication_service_config_upstream_oauth2_providers` variable for controlling this setting."
  213. msgstr ""
  214. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:273
  215. msgid "💡 Refer to the [`upstream_oauth2.providers` setting](https://element-hq.github.io/matrix-authentication-service/reference/configuration.html#upstream_oauth2providers) for the most up-to-date schema and example for providers. The value shown above here may be out of date."
  216. msgstr ""
  217. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:275
  218. msgid "⚠️ The syntax for existing [OIDC providers configured in Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on) is slightly different, so you will need to adjust your configuration when switching from Synapse OIDC to MAS upstream OAuth2."
  219. msgstr ""
  220. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:277
  221. msgid "⚠️ When [migrating an existing homeserver](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) which contains OIDC-sourced users, you will need to:"
  222. msgstr ""
  223. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:279
  224. msgid "[Configure upstream OIDC provider mapping for syn2mas](#configuring-upstream-oidc-provider-mapping-for-syn2mas)"
  225. msgstr ""
  226. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:280
  227. msgid "go through the [migrating an existing homeserver](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) process"
  228. msgstr ""
  229. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:281
  230. msgid "remove all Synapse OIDC-related configuration (`matrix_synapse_oidc_*`) to prevent it being in conflict with the MAS OIDC configuration"
  231. msgstr ""
  232. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:283
  233. msgid "Extending the configuration"
  234. msgstr ""
  235. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:285
  236. msgid "There are some additional things you may wish to configure about the component."
  237. msgstr ""
  238. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:287
  239. msgid "Take a look at:"
  240. msgstr ""
  241. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:289
  242. msgid "`roles/custom/matrix-authentication-service/defaults/main.yml` for some variables that you can customize via your `vars.yml` file"
  243. msgstr ""
  244. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:290
  245. msgid "`roles/custom/matrix-authentication-service/templates/config.yaml.j2` for the component's default configuration. You can override settings (even those that don't have dedicated playbook variables) using the `matrix_authentication_service_configuration_extension_yaml` variable"
  246. msgstr ""
  247. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:292
  248. msgid "Installing"
  249. msgstr ""
  250. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:294
  251. msgid "Now that you've [adjusted the playbook configuration](#adjusting-the-playbook-configuration) and [your DNS records](#adjusting-dns-records), you can run the playbook with [playbook tags](playbook-tags.md) as below:"
  252. msgstr ""
  253. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:301
  254. msgid "**Notes**:"
  255. msgstr ""
  256. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:303
  257. msgid "The shortcut commands with the [`just` program](just.md) are also available: `just install-all` or `just setup-all`"
  258. msgstr ""
  259. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:305
  260. msgid "`just install-all` is useful for maintaining your setup quickly ([2x-5x faster](../CHANGELOG.md#2x-5x-performance-improvements-in-playbook-runtime) than `just setup-all`) when its components remain unchanged. If you adjust your `vars.yml` to remove other components, you'd need to run `just setup-all`, or these components will still remain installed. Note these shortcuts run the `ensure-matrix-users-created` tag too."
  261. msgstr ""
  262. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:307
  263. msgid "If you're in the process of migrating an existing Synapse homeserver to MAS, you should now follow the rest of the steps in the [Migrating an existing Synapse homeserver to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) guide."
  264. msgstr ""
  265. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:309
  266. msgid "💡 After installation, you should [verify that Matrix Authentication Service is installed correctly](#verify-that-matrix-authentication-service-is-installed-correctly)."
  267. msgstr ""
  268. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:311
  269. msgid "Migrating an existing Synapse homeserver to Matrix Authentication Service"
  270. msgstr ""
  271. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:313
  272. msgid "Our migration guide is loosely based on the upstream [Migrating an existing homeserver](https://element-hq.github.io/matrix-authentication-service/setup/migration.html) guide."
  273. msgstr ""
  274. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:315
  275. msgid "Migration is done via a sub-command called `syn2mas`, which the playbook could run for you (in a container)."
  276. msgstr ""
  277. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:317
  278. msgid "The installation + migration steps are like this:"
  279. msgstr ""
  280. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:319
  281. msgid "[Adjust your configuration](#adjusting-the-playbook-configuration) to **disable the integration between the homeserver and MAS**. This is done by **uncommenting** the `matrix_authentication_service_migration_in_progress: true` line."
  282. msgstr ""
  283. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:321
  284. msgid "Perform the initial [installation](#installing). At this point:"
  285. msgstr ""
  286. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:323
  287. msgid "Matrix Authentication Service will be installed. Its database will be empty, so it cannot validate existing access tokens or authentication users yet."
  288. msgstr ""
  289. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:325
  290. msgid "The homeserver will still continue to use its local database for validating existing access tokens."
  291. msgstr ""
  292. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:327
  293. msgid "Various [compatibility layer URLs](https://element-hq.github.io/matrix-authentication-service/setup/homeserver.html#set-up-the-compatibility-layer) are not yet installed. New login sessions will still be forwarded to the homeserver, which is capable of completing them."
  294. msgstr ""
  295. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:329
  296. msgid "The `matrix-user-creator` role would be suppressed, so that it doesn't automatically attempt to create users (for bots, etc.) in the MAS database. These user accounts likely already exist in Synapse's user database and could be migrated over (via syn2mas, as per the steps below), so creating them in the MAS database would have been unnecessary and potentially problematic (conflicts during the syn2mas migration)."
  297. msgstr ""
  298. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:331
  299. msgid "Consider taking a full [backup of your Postgres database](./maintenance-postgres.md#backing-up-postgresql). This is done just in case. The **syn2mas migration command does not delete any data**, so it should be possible to revert to your previous setup by merely disabling MAS and re-running the playbook (no need to restore a Postgres backup). However, do note that as users start logging in (creating new login sessions) via the new MAS setup, disabling MAS and reverting back to the Synapse user database will cause these new sessions to break."
  300. msgstr ""
  301. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:333
  302. msgid "[Migrate your data from Synapse to Matrix Authentication Service using syn2mas](#migrate-your-data-from-synapse-to-matrix-authentication-service-using-syn2mas)"
  303. msgstr ""
  304. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:335
  305. msgid "[Adjust your configuration](#adjusting-the-playbook-configuration) again, to:"
  306. msgstr ""
  307. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:337
  308. msgid "remove the `matrix_authentication_service_migration_in_progress: false` line"
  309. msgstr ""
  310. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:339
  311. msgid "if you had been using [OIDC providers configured in Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on), remove all Synapse OIDC-related configuration (`matrix_synapse_oidc_*`) to prevent it being in conflict with the MAS OIDC configuration"
  312. msgstr ""
  313. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:341
  314. msgid "Perform the [installation](#installing) again. At this point:"
  315. msgstr ""
  316. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:343
  317. msgid "The homeserver will start delegating authentication to MAS."
  318. msgstr ""
  319. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:345
  320. msgid "The compatibility layer URLs will be installed. New login sessions will be completed by MAS."
  321. msgstr ""
  322. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:347
  323. msgid "[Verify that Matrix Authentication Service is installed correctly](#verify-that-matrix-authentication-service-is-installed-correctly)"
  324. msgstr ""
  325. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:349
  326. msgid "Migrate your data from Synapse to Matrix Authentication Service using syn2mas"
  327. msgstr ""
  328. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:351
  329. msgid "You can invoke the `syn2mas` tool via the playbook by running the playbook's `matrix-authentication-service-mas-cli-syn2mas` tag. We recommend first doing a [dry-run](#performing-a-syn2mas-dry-run) and then a [real migration](#performing-a-real-syn2mas-migration)."
  330. msgstr ""
  331. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:353
  332. msgid "Configuring syn2mas"
  333. msgstr ""
  334. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:355
  335. msgid "If you're using [OIDC with Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on), you will need to [Configuring upstream OIDC provider mapping for syn2mas](#configuring-upstream-oidc-provider-mapping-for-syn2mas)."
  336. msgstr ""
  337. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:357
  338. msgid "If you only have local (non-OIDC) users in your Synapse database, you can likely run `syn2mas` as-is (without doing additional configuration changes)."
  339. msgstr ""
  340. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:359
  341. msgid "When you're done with potentially configuring `syn2mas`, proceed to doing a [dry-run](#performing-a-syn2mas-dry-run) and then a [real migration](#performing-a-real-syn2mas-migration)."
  342. msgstr ""
  343. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:361
  344. msgid "Configuring upstream OIDC provider mapping for syn2mas"
  345. msgstr ""
  346. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:363
  347. msgid "Since Matrix Authentication Service v0.16.0 (which replaced the standalone `syn2mas` tool with a `mas-cli syn2mas` sub-command), OIDC configuration (mapping from your old OIDC configuration to your new one, etc) is meant to be configured in the Matrix Authentication Service configuration (via `matrix_authentication_service_config_upstream_oauth2_providers`) as a `synapse_idp_id` property for each provider."
  348. msgstr ""
  349. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:365
  350. msgid "You can refer to the [Map any upstream SSO providers](https://element-hq.github.io/matrix-authentication-service/setup/migration.html#map-any-upstream-sso-providers) section of the MAS documentation for figuring out how to set the `synapse_idp_id` value in `matrix_authentication_service_config_upstream_oauth2_providers` correctly."
  351. msgstr ""
  352. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:367
  353. msgid "Performing a syn2mas dry-run"
  354. msgstr ""
  355. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:369
  356. msgid "Having [configured syn2mas](#configuring-syn2mas), we recommend doing a [dry-run](https://en.wikipedia.org/wiki/Dry_run_(testing)) first to verify that everything will work out as expected."
  357. msgstr ""
  358. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:371
  359. msgid "A dry-run would not cause downtime, because it avoids stopping Synapse."
  360. msgstr ""
  361. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:373
  362. msgid "To perform a dry-run, run:"
  363. msgstr ""
  364. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:379
  365. msgid "Observe the command output (especially the last line of the the syn2mas output). If you are confident that the migration will work out as expected, you can proceed with a [real migration](#performing-a-real-syn2mas-migration)."
  366. msgstr ""
  367. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:381
  368. msgid "Performing a real syn2mas migration"
  369. msgstr ""
  370. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:383
  371. msgid "Before performing a real migration make sure:"
  372. msgstr ""
  373. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:385
  374. msgid "you've familiarized yourself with the [expectations](#expectations)"
  375. msgstr ""
  376. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:387
  377. msgid "you've performed a Postgres backup, just in case"
  378. msgstr ""
  379. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:389
  380. msgid "you're aware of the irreversibility of the migration process without disruption after users have created new login sessions via the new MAS setup"
  381. msgstr ""
  382. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:391
  383. msgid "you've [configured syn2mas](#configuring-syn2mas), especially if you've used [OIDC with Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on)"
  384. msgstr ""
  385. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:393
  386. msgid "you've performed a [syn2mas dry-run](#performing-a-syn2mas-dry-run) and don't see any issues in its output"
  387. msgstr ""
  388. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:395
  389. msgid "To perform a real migration, run the `matrix-authentication-service-mas-cli-syn2mas` tag **without** the `matrix_authentication_service_syn2mas_migrate_dry_run` variable:"
  390. msgstr ""
  391. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:401
  392. msgid "Having performed a `syn2mas` migration once, trying to do it again will report errors (e.g. \"Error: The MAS database is not empty: rows found in at least `users`. Please drop and recreate the database, then try again.\")."
  393. msgstr ""
  394. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:403
  395. msgid "Verify that Matrix Authentication Service is installed correctly"
  396. msgstr ""
  397. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:405
  398. msgid "After [installation](#installing), run the `doctor` subcommand of the [`mas-cli` command-line tool](https://element-hq.github.io/matrix-authentication-service/reference/cli/index.html) to verify that MAS is installed correctly."
  399. msgstr ""
  400. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:407
  401. msgid "You can do it:"
  402. msgstr ""
  403. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:409
  404. msgid "either via the Ansible playbook's `matrix-authentication-service-mas-cli-doctor` tag: `just run-tags matrix-authentication-service-mas-cli-doctor`"
  405. msgstr ""
  406. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:411
  407. msgid "or by running the `mas-cli` script on the server (which invokes the `mas-cli` tool inside a container): `/matrix/matrix-authentication-service/bin/mas-cli doctor`"
  408. msgstr ""
  409. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:413
  410. msgid "If successful, you should see some output that looks like this:"
  411. msgstr ""
  412. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:425
  413. msgid "Usage"
  414. msgstr ""
  415. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:427
  416. msgid "Management"
  417. msgstr ""
  418. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:429
  419. msgid "You can use the [`mas-cli` command-line tool](https://element-hq.github.io/matrix-authentication-service/reference/cli/index.html) (exposed via the `/matrix/matrix-authentication-service/bin/mas-cli` script) to perform administrative tasks against MAS."
  420. msgstr ""
  421. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:431
  422. msgid "This documentation page already mentions:"
  423. msgstr ""
  424. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:433
  425. msgid "the `mas-cli doctor` sub-command in the [Verify that Matrix Authentication Service is installed correctly](#verify-that-matrix-authentication-service-is-installed-correctly) section, which you can run via the CLI and via the Ansible playbook's `matrix-authentication-service-mas-cli-doctor` tag"
  426. msgstr ""
  427. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:435
  428. msgid "the `mas-cli manage register-user` sub-command in the [Registering users](./registering-users.md) documentation"
  429. msgstr ""
  430. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:437
  431. msgid "There are other sub-commands available. Run `/matrix/matrix-authentication-service/bin/mas-cli` to get an overview."
  432. msgstr ""
  433. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:439
  434. msgid "User registration"
  435. msgstr ""
  436. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:441
  437. msgid "After Matrix Authentication Service is [installed](#installing), users need to be managed there (unless you're managing them in an [upstream OAuth2 provider](#upstream-oauth2-configuration))."
  438. msgstr ""
  439. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:443
  440. msgid "You can register users new users as described in the [Registering users](./registering-users.md) documentation (via `mas-cli manage register-user` or the Ansible playbook's `register-user` tag)."
  441. msgstr ""
  442. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:445
  443. msgid "Working around email deliverability issues"
  444. msgstr ""
  445. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:447
  446. msgid "Matrix Authentication Service only sends emails when:"
  447. msgstr ""
  448. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:449
  449. msgid "it verifies email addresses for users who are self-registering with a password"
  450. msgstr ""
  451. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:451
  452. msgid "a user tries to add an email to their account"
  453. msgstr ""
  454. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:453
  455. msgid "If Matrix Authentication Service tries to send an email and it fails because [your email-sending configuration](./configuring-playbook-email.md) is not working, you may need to work around email deliverability."
  456. msgstr ""
  457. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:455
  458. msgid "If email delivery is not working, **you can retrieve the email verification code from the Matrix Authentication Service's logs** (`journalctl -fu matrix-authentication-service`)."
  459. msgstr ""
  460. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:457
  461. msgid "Alternatively, you can use the [`mas-cli` management tool](#management) to manually verify email addresses for users. Example: `/matrix/matrix-authentication-service/bin/mas-cli manage verify-email some.username email@example.com`"
  462. msgstr ""
  463. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:459
  464. msgid "Troubleshooting"
  465. msgstr ""
  466. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:461
  467. msgid "As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-authentication-service`."
  468. msgstr ""