You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/setup/migration.md
+74-27Lines changed: 74 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,28 +18,29 @@ There will be tools to help with the migration process itself. But these aren't
18
18
19
19
The deployment is non-trivial so it is important to read through and understand the steps involved and make a plan before starting.
20
20
21
-
### Get `syn2mas`
21
+
### Is your setup ready to be migrated?
22
22
23
-
The easiest way to get `syn2mas` is through [`npm`](https://www.npmjs.com/package/@vector-im/syn2mas):
23
+
#### SAML2 and LDAP Single Sign-On Providers are not supported
24
24
25
-
```sh
26
-
npm install -g @vector-im/syn2mas
27
-
```
25
+
A deployment which requires SAML or LDAP-based authentication should use a service like [Dex](https://github.com/dexidp/dex) to bridge between the SAML provider and the authentication service.
26
+
MAS is different from Synapse in that it does **not** have built-in support for SAML or LDAP-based providers.
28
27
29
-
###Run the migration advisor
28
+
#### Custom password providers are not supported
30
29
31
-
You can use the advisor mode of the `syn2mas` tool to identify extra configuration steps or issues with the configuration of the homeserver.
30
+
If your Synapse homeserver currently uses a custom password provider module, please note that MAS does not support these.
If no errors are reported then you can proceed to the next step.
101
+
This will either output a list of errors and warnings, or tell you that the check completed with no errors or warnings.
102
+
103
+
If you have any errors, you must resolve these before starting the migration.
104
+
105
+
If you have any warnings, please read, understand and possibly resolve them.
106
+
With that said, resolving them is not strictly required before starting the migration.
107
+
108
+
### Do a dry-run of the import to test
109
+
110
+
!!!!!!! TODO we don't have an exact dry-run mode exposed at the moment...
85
111
86
112
## Doing the migration
87
113
88
114
Having done the preparation, you can now proceed with the actual migration. Note that this will require downtime for the homeserver and is not easily reversible.
89
115
90
-
### Backup your data
116
+
### Backup your data and configuration
91
117
92
118
As with any migration, it is important to backup your data before proceeding.
93
119
120
+
We also suggest making a backup copy of your homeserver's known good configuration,
121
+
before making any changes to enable MAS integration.
122
+
94
123
### Shutdown the homeserver
95
124
96
125
This is to ensure that no new sessions are created whilst the migration is in progress.
97
126
98
-
### Configure the homeserver
127
+
### Configure the homeserver to enable MAS integration
99
128
100
129
Follow the instructions in the [homeserver configuration guide](homeserver.md) to configure the homeserver to use MAS.
101
130
102
131
### Do the import
103
132
104
-
Run `syn2mas` in non-dry-run mode.
133
+
Once the homeserver has been stopped, MAS has been configured (but is not running!)
134
+
and you have a successful migration check,
135
+
run `syn2mas`'s `migrate` command.
136
+
137
+
Other than the change of command word, the syntax is exactly the same as the `check` command.
0 commit comments