Skip to content

Commit 3b230d9

Browse files
Merge pull request #740 from kenodai/main
syn2mas: Migrations steps when Synapse was already using OAuth
2 parents f3158c8 + f7dc791 commit 3b230d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/syn2mas.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,19 @@ helm upgrade --install --namespace "ess" ess oci://ghcr.io/element-hq/ess-helm/m
5858

5959
### Step 2: Execute the syn2mas Migration
6060

61-
1. Run the helm upgrade command with `--reuse-values` and `--set matrixAuthenticationService.syn2mas.dryRun=false` :
61+
1. Run the helm upgrade command with `--reuse-values` and `--set matrixAuthenticationService.syn2mas.dryRun=false`
6262

6363
```bash
6464
helm upgrade --namespace "ess" ess oci://ghcr.io/element-hq/ess-helm/matrix-stack --reuse-values --wait --set matrixAuthenticationService.syn2mas.dryRun=false
6565
```
6666

67+
When an OAuth Provider was used with synapse already, the config check hook will throw an error "SSO cannot be enabled when OAuth delegation is enabled".
68+
To proceed also add `--set synapse.checkConfigHook.enabled=false`. This will cause the synapse service to not start after the migration.
69+
70+
```bash
71+
helm upgrade --namespace "ess" ess oci://ghcr.io/element-hq/ess-helm/matrix-stack --reuse-values --wait --set matrixAuthenticationService.syn2mas.dryRun=false --set synapse.checkConfigHook.enabled=false
72+
```
73+
6774
2. This step will deploy the following resources :
6875
- The migration job is executed as a pre-upgrade hook.
6976
- The job will downscale Synapse and its workers to 0 replicas while the migration runs.
@@ -80,6 +87,8 @@ When in `syn2mas_migrated` state, running `helm upgrade` will prevent any deploy
8087

8188
2. Run the helm upgrade command without syn2mas arguments:
8289

90+
Remember to remove any `synapse.additional` configuration referencing an OAuth Provider.
91+
8392
```bash
8493
helm upgrade --install --namespace "ess" ess oci://ghcr.io/element-hq/ess-helm/matrix-stack -f ~/ess-config-values/hostnames.yaml <optional additional values files to pass> --wait
8594
```

0 commit comments

Comments
 (0)