Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

623 行
42 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2025-01-27 09:54+0200\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: jp\n"
  17. "Language-Team: jp <LL@li.org>\n"
  18. "MIME-Version: 1.0\n"
  19. "Content-Type: text/plain; charset=utf-8\n"
  20. "Content-Transfer-Encoding: 8bit\n"
  21. "Generated-By: Babel 2.16.0\n"
  22. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:1
  23. msgid "Setting up Matrix Authentication Service (optional)"
  24. msgstr ""
  25. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:3
  26. 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/)."
  27. msgstr ""
  28. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:5
  29. 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."
  30. msgstr ""
  31. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:7
  32. msgid "**Before going through with starting to use Matrix Authentication Service**, make sure to read:"
  33. msgstr ""
  34. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:9
  35. msgid "the [Reasons to use Matrix Authentication Service](#reasons-to-use-matrix-authentication-service) section below"
  36. msgstr ""
  37. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:10
  38. msgid "the [Expectations](#expectations) section below"
  39. msgstr ""
  40. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:11
  41. msgid "the [FAQ section on areweoidcyet.com](https://areweoidcyet.com/#faqs)"
  42. msgstr ""
  43. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:13
  44. 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)."
  45. msgstr ""
  46. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:15
  47. msgid "Reasons to use Matrix Authentication Service"
  48. msgstr ""
  49. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:17
  50. 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)."
  51. msgstr ""
  52. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:19
  53. msgid "Matrix Authentication Service is **still an experimental service** and **not a default** for this Ansible playbook."
  54. msgstr ""
  55. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:21
  56. 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."
  57. msgstr ""
  58. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:23
  59. msgid "Below, we'll try to **highlight some potential reasons for switching** to Matrix Authentication Service:"
  60. msgstr ""
  61. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:25
  62. 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."
  63. msgstr ""
  64. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:27
  65. msgid "To help drive adoption of the \"Next-generation auth for Matrix\" by switching to what's ultimately coming anyway"
  66. msgstr ""
  67. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:29
  68. msgid "To help discover (and potentially fix) MAS integration issues with this Ansible playbook"
  69. msgstr ""
  70. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:31
  71. msgid "To help discover (and potentially fix) MAS integration issues with various other Matrix components (bridges, bots, clients, etc.)"
  72. msgstr ""
  73. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:33
  74. 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."
  75. msgstr ""
  76. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:35
  77. msgid "Prerequisites"
  78. msgstr ""
  79. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:37
  80. 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 wtih Matrix Authentication Service yet."
  81. msgstr ""
  82. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:39
  83. msgid "⚠️ **email sending** configured (see [Adjusting email-sending settings](./configuring-playbook-email.md)), because **Matrix Authentication Service [still insists](https://github.com/element-hq/matrix-authentication-service/issues/1505) on having a verified email address for each user** going through the new SSO-based login flow. It's also possible to [work around email deliverability issues](#working-around-email-deliverability-issues) if your email configuration is not working."
  84. msgstr ""
  85. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:41
  86. 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."
  87. msgstr ""
  88. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:43
  89. msgid "Expectations"
  90. msgstr ""
  91. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:45
  92. msgid "This section details what you can expect when switching to the Matrix Authentication Service (MAS)."
  93. msgstr ""
  94. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:47
  95. 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)."
  96. msgstr ""
  97. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:49
  98. msgid "❌ Certain **tools like [synapse-admin](./configuring-playbook-synapse-admin.md) do not have full compatibility with MAS yet**. synapse-admin already supports [login with access token](https://github.com/etkecc/synapse-admin/pull/58), 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."
  99. msgstr ""
  100. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:51
  101. msgid "❌ **Some services experience issues when authenticating via MAS**:"
  102. msgstr ""
  103. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:53
  104. msgid "[Postmoogle](./configuring-playbook-bridge-postmoogle.md) works the first time around, but it consistently fails after restarting:"
  105. msgstr ""
  106. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:55
  107. msgid "cannot initialize matrix bot error=\"olm account is marked as shared, keys seem to have disappeared from the server\""
  108. msgstr ""
  109. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:57
  110. msgid "[matrix-reminder-bot](./configuring-playbook-bot-matrix-reminder-bot.md) fails to start (see [element-hq/matrix-authentication-service#3439](https://github.com/element-hq/matrix-authentication-service/issues/3439))"
  111. msgstr ""
  112. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:58
  113. msgid "Other services may be similarly affected. This list is not exhaustive."
  114. msgstr ""
  115. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:60
  116. 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)."
  117. msgstr ""
  118. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:62
  119. msgid "⚠️ **You will need to have email sending configured** (see [Adjusting email-sending settings](./configuring-playbook-email.md)), because **Matrix Authentication Service [still insists](https://github.com/element-hq/matrix-authentication-service/issues/1505) on having a verified email address for each user** going through the new SSO-based login flow. It's also possible to [work around email deliverability issues](#working-around-email-deliverability-issues) if your email configuration is not working."
  120. msgstr ""
  121. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:64
  122. 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."
  123. msgstr ""
  124. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:66
  125. msgid "⚠️ [Migrating an existing Synapse homeserver to Matrix Authentication Service](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) does not currently seem to preserve the \"admin\" flag for users (as found in the Synapse database). All users are imported as non-admin — see [element-hq/matrix-authentication-service#3440](https://github.com/element-hq/matrix-authentication-service/issues/3440). You may need update the Matrix Authentication Service's database manually and adjust the `can_request_admin` column in the `users` table to `true` for users that need to be administrators (e.g. `UPDATE users SET can_request_admin = true WHERE username = 'someone';`)"
  126. msgstr ""
  127. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:68
  128. msgid "⚠️ Delegating user authentication to MAS causes **your Synapse server to be completely dependant 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."
  129. msgstr ""
  130. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:70
  131. 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)."
  132. msgstr ""
  133. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:72
  134. 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)."
  135. msgstr ""
  136. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:74
  137. 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."
  138. msgstr ""
  139. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:76
  140. 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"
  141. msgstr ""
  142. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:78
  143. 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. Going through the old login flow does not require users to have a verified email address, as [is the case](https://github.com/element-hq/matrix-authentication-service/issues/1505) for the new SSO-based login flow."
  144. msgstr ""
  145. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:80
  146. 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`."
  147. msgstr ""
  148. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:82
  149. 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."
  150. msgstr ""
  151. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:84
  152. msgid "Installation flows"
  153. msgstr ""
  154. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:86
  155. msgid "New homeserver"
  156. msgstr ""
  157. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:88
  158. 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)."
  159. msgstr ""
  160. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:90
  161. msgid "Existing homeserver"
  162. msgstr ""
  163. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:92
  164. msgid "Other homeserver implementations ([Dendrite](./configuring-playbook-dendrite.md), [Conduit](./configuring-playbook-conduit.md), etc.) do not support integrating wtih Matrix Authentication Service yet."
  165. msgstr ""
  166. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:94
  167. msgid "For existing Synapse homeservers:"
  168. msgstr ""
  169. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:96
  170. 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."
  171. msgstr ""
  172. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:98
  173. 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"
  174. msgstr ""
  175. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:100
  176. msgid "Adjusting DNS records (optional)"
  177. msgstr ""
  178. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:102
  179. 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."
  180. msgstr ""
  181. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:104
  182. msgid "If you wish to adjust it, see the section [below](#adjusting-the-matrix-authentication-service-url-optional) for details about DNS configuration."
  183. msgstr ""
  184. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:106
  185. msgid "Adjusting the playbook configuration"
  186. msgstr ""
  187. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:108
  188. msgid "To enable Matrix Authentication Service, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:"
  189. msgstr ""
  190. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:122
  191. msgid "In the sub-sections that follow, we'll cover some additional configuration options that you may wish to adjust."
  192. msgstr ""
  193. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:124
  194. 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."
  195. msgstr ""
  196. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:126
  197. msgid "Adjusting the Matrix Authentication Service URL (optional)"
  198. msgstr ""
  199. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:128
  200. 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."
  201. msgstr ""
  202. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:130
  203. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:157
  204. msgid "Example additional configuration for your `vars.yml` file:"
  205. msgstr ""
  206. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:138
  207. 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`."
  208. msgstr ""
  209. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:140
  210. msgid "When setting, replace `example.com` with your own."
  211. msgstr ""
  212. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:142
  213. msgid "Marking an existing homeserver for migration"
  214. msgstr ""
  215. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:144
  216. 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."
  217. msgstr ""
  218. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:146
  219. 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."
  220. msgstr ""
  221. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:148
  222. msgid "Upstream OAuth2 configuration"
  223. msgstr ""
  224. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:150
  225. 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)."
  226. msgstr ""
  227. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:152
  228. msgid "The playbook exposes a `matrix_authentication_service_config_upstream_oauth2_providers` variable for controlling this setting."
  229. msgstr ""
  230. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:269
  231. 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."
  232. msgstr ""
  233. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:271
  234. 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."
  235. msgstr ""
  236. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:273
  237. msgid "⚠️ When [migrating an existing homeserver](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) which contains OIDC-sourced users, you will need to:"
  238. msgstr ""
  239. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:275
  240. msgid "[Configure upstream OIDC provider mapping for syn2mas](#configuring-upstream-oidc-provider-mapping-for-syn2mas)"
  241. msgstr ""
  242. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:276
  243. msgid "go through the [migrating an existing homeserver](#migrating-an-existing-synapse-homeserver-to-matrix-authentication-service) process"
  244. msgstr ""
  245. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:277
  246. msgid "remove all Synapse OIDC-related configuration (`matrix_synapse_oidc_*`) to prevent it being in conflict with the MAS OIDC configuration"
  247. msgstr ""
  248. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:279
  249. msgid "Installing"
  250. msgstr ""
  251. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:281
  252. 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:"
  253. msgstr ""
  254. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:288
  255. msgid "**Notes**:"
  256. msgstr ""
  257. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:290
  258. msgid "The shortcut commands with the [`just` program](just.md) are also available: `just install-all` or `just setup-all`"
  259. msgstr ""
  260. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:292
  261. 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."
  262. msgstr ""
  263. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:294
  264. 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."
  265. msgstr ""
  266. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:296
  267. msgid "💡 After installation, you should [verify that Matrix Authentication Service is installed correctly](#verify-that-matrix-authentication-service-is-installed-correctly)."
  268. msgstr ""
  269. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:298
  270. msgid "Migrating an existing Synapse homeserver to Matrix Authentication Service"
  271. msgstr ""
  272. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:300
  273. 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."
  274. msgstr ""
  275. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:302
  276. msgid "Migration is done via a tool called `syn2mas`, which the playbook could run for you (in a container)."
  277. msgstr ""
  278. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:304
  279. msgid "The installation + migration steps are like this:"
  280. msgstr ""
  281. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:306
  282. 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."
  283. msgstr ""
  284. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:308
  285. msgid "Perform the initial [installation](#installing). At this point:"
  286. msgstr ""
  287. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:310
  288. msgid "Matrix Authentication Service will be installed. Its database will be empty, so it cannot validate existing access tokens or authentication users yet."
  289. msgstr ""
  290. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:312
  291. msgid "The homeserver will still continue to use its local database for validating existing access tokens."
  292. msgstr ""
  293. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:314
  294. 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."
  295. msgstr ""
  296. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:316
  297. 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)."
  298. msgstr ""
  299. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:318
  300. 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 tool 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."
  301. msgstr ""
  302. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:320
  303. msgid "[Migrate your data from Synapse to Matrix Authentication Service using syn2mas](#migrate-your-data-from-synapse-to-matrix-authentication-service-using-syn2mas)"
  304. msgstr ""
  305. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:322
  306. msgid "[Adjust your configuration](#adjusting-the-playbook-configuration) again, to:"
  307. msgstr ""
  308. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:324
  309. msgid "remove the `matrix_authentication_service_migration_in_progress: false` line"
  310. msgstr ""
  311. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:326
  312. 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"
  313. msgstr ""
  314. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:328
  315. msgid "Perform the [installation](#installing) again. At this point:"
  316. msgstr ""
  317. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:330
  318. msgid "The homeserver will start delegating authentication to MAS."
  319. msgstr ""
  320. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:332
  321. msgid "The compatibility layer URLs will be installed. New login sessions will be completed by MAS."
  322. msgstr ""
  323. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:334
  324. msgid "[Verify that Matrix Authentication Service is installed correctly](#verify-that-matrix-authentication-service-is-installed-correctly)"
  325. msgstr ""
  326. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:336
  327. msgid "Migrate your data from Synapse to Matrix Authentication Service using syn2mas"
  328. msgstr ""
  329. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:338
  330. msgid "We **don't** ask you to [run the `syn2mas` migration advisor command](https://element-hq.github.io/matrix-authentication-service/setup/migration.html#run-the-migration-advisor), because it only gives you the green light if your Synapse configuration (`homeserver.yaml`) is configured in a way that's compatible with MAS (delegating authentication to MAS; disabling Synapse's password config; etc.). Until we migrate your data with the `syn2mas` tool, we intentionally avoid doing these changes to allow existing user sessions to work."
  331. msgstr ""
  332. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:340
  333. 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)."
  334. msgstr ""
  335. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:342
  336. msgid "Configuring syn2mas"
  337. msgstr ""
  338. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:344
  339. 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)."
  340. msgstr ""
  341. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:346
  342. 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)."
  343. msgstr ""
  344. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:348
  345. 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)."
  346. msgstr ""
  347. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:350
  348. msgid "Configuring upstream OIDC provider mapping for syn2mas"
  349. msgstr ""
  350. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:352
  351. msgid "If you have existing OIDC users in your Synapse user database (which will be the case if when using [OIDC with Synapse](./configuring-playbook-synapse.md#synapse--openid-connect-for-single-sign-on)), you may need to pass an additional `--upstreamProviderMapping` argument to the `syn2mas` tool to tell it which provider (on the Synapse side) maps to which other provider on the MAS side."
  352. msgstr ""
  353. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:354
  354. msgid "If you don't do this, `syn2mas` would report errors like this one:"
  355. msgstr ""
  356. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:356
  357. msgid "[FATAL] migrate - [Failed to import external id 4264b0f0-4f11-4ddd-aedb-b500e4d07c25 with oidc-keycloak for user @alice:example.com: Error: Unknown upstream provider oidc-keycloak]"
  358. msgstr ""
  359. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:358
  360. msgid "Below is an example situation and a guide for how to solve it."
  361. msgstr ""
  362. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:360
  363. msgid "If in `matrix_synapse_oidc_providers` your provider `idp_id` is (was) named `keycloak`, in the Synapse database users would be associated with the `oidc-keycloak` provider (note the `oidc-` prefix that was added automatically by Synapse to your `idp_id` value)."
  364. msgstr ""
  365. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:362
  366. msgid "The same OIDC provider may have an `id` of `01HFVBY12TMNTYTBV8W921M5FA` on the MAS side, as defined in `matrix_authentication_service_config_upstream_oauth2_providers` (see the [Upstream OAuth2 configuration](#upstream-oauth2-configuration) section above)."
  367. msgstr ""
  368. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:364
  369. msgid "To tell `syn2mas` how the Synapse-configured OIDC provider maps to the new MAS-configured OIDC provider, add this additional configuration to your `vars.yml` file:"
  370. msgstr ""
  371. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:373
  372. msgid "Performing a syn2mas dry-run"
  373. msgstr ""
  374. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:375
  375. 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."
  376. msgstr ""
  377. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:377
  378. msgid "A dry-run would not cause downtime, because it avoids stopping Synapse."
  379. msgstr ""
  380. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:379
  381. msgid "To perform a dry-run, run:"
  382. msgstr ""
  383. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:385
  384. 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)."
  385. msgstr ""
  386. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:387
  387. msgid "Performing a real syn2mas migration"
  388. msgstr ""
  389. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:389
  390. msgid "Before performing a real migration make sure:"
  391. msgstr ""
  392. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:391
  393. msgid "you've familiarized yourself with the [expectations](#expectations)"
  394. msgstr ""
  395. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:393
  396. msgid "you've performed a Postgres backup, just in case"
  397. msgstr ""
  398. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:395
  399. 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"
  400. msgstr ""
  401. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:397
  402. 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)"
  403. msgstr ""
  404. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:399
  405. msgid "you've performed a [syn2mas dry-run](#performing-a-syn2mas-dry-run) and don't see any issues in its output"
  406. msgstr ""
  407. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:401
  408. 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:"
  409. msgstr ""
  410. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:407
  411. msgid "Having performed a `syn2mas` migration once, trying to do it again will report errors for users that were already migrated (e.g. \"Error: Unknown upstream provider oauth-delegated\")."
  412. msgstr ""
  413. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:409
  414. msgid "Verify that Matrix Authentication Service is installed correctly"
  415. msgstr ""
  416. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:411
  417. 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."
  418. msgstr ""
  419. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:413
  420. msgid "You can do it:"
  421. msgstr ""
  422. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:415
  423. msgid "either via the Ansible playbook's `matrix-authentication-service-mas-cli-doctor` tag: `just run-tags matrix-authentication-service-mas-cli-doctor`"
  424. msgstr ""
  425. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:417
  426. 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`"
  427. msgstr ""
  428. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:419
  429. msgid "If successful, you should see some output that looks like this:"
  430. msgstr ""
  431. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:431
  432. msgid "Management"
  433. msgstr ""
  434. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:433
  435. 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."
  436. msgstr ""
  437. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:435
  438. msgid "This documentation page already mentions:"
  439. msgstr ""
  440. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:437
  441. 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"
  442. msgstr ""
  443. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:439
  444. msgid "the `mas-cli manage register-user` sub-command in the [Registering users](./registering-users.md) documentation"
  445. msgstr ""
  446. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:441
  447. msgid "There are other sub-commands available. Run `/matrix/matrix-authentication-service/bin/mas-cli` to get an overview."
  448. msgstr ""
  449. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:443
  450. msgid "User registration"
  451. msgstr ""
  452. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:445
  453. 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))."
  454. msgstr ""
  455. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:447
  456. 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)."
  457. msgstr ""
  458. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:449
  459. msgid "Working around email deliverability issues"
  460. msgstr ""
  461. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:451
  462. msgid "Because Matrix Authentication Service [still insists](https://github.com/element-hq/matrix-authentication-service/issues/1505) on having a verified email address for each user, you may need to work around email deliverability issues if [your email-sending configuration](./configuring-playbook-email.md) is not working."
  463. msgstr ""
  464. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:453
  465. msgid "Matrix Authentication Service attempts to verify email addresses by sending a verification email to the address specified by the user whenever they log in to an account without a verified email address."
  466. msgstr ""
  467. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:455
  468. msgid "If email delivery is not working, **you can retrieve the email configuration code from the Matrix Authentication Service's logs** (`journalctl -fu matrix-authentication-service`)."
  469. msgstr ""
  470. #: ../../../docs/configuring-playbook-matrix-authentication-service.md:457
  471. 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`"
  472. msgstr ""