Commit Graph

22 Commits

Author SHA1 Message Date
Quentin Gliech 04fb8fe376 Import zod differently to better tree shake it 2024-03-29 19:28:30 +01:00
Jason Robinson e45e707afc Ignore Synapse appservice users in syn2mas
These users don't need to be migrated as Synapse handles appservices itself.
2024-02-20 12:09:41 +01:00
Jason Robinson ff815c0333 syn2mas: Skip access tokens that don't have a device ID
These can't be migrated. They are likely enirely valid tokens created by puppeting a user via the Synapse admin api. Treating them as fatal errors will make it impossible to migrate any host that has ever used this admin API feature.
2024-02-08 15:10:25 +01:00
Jason Robinson 114c5fc33f Allow Synapse OIDC provider idp_name to be null
It's not required, though technically it should be given if there are multiple providers.

Synapse config loads it defaulted to `OIDC` if not given: https://github.com/matrix-org/synapse/blob/be65a8ec0195955c15fdb179c9158b187638e39a/synapse/config/oidc.py#L299-L299
2024-02-07 17:41:55 +01:00
Jason Robinson 9d96cdde1f Exit syn2mas advisor with non-zero exit code on errors
When running the advisor in an automated fashion, getting a non-zero exit code on errors helps enormously.
2024-02-02 23:46:43 +01:00
Quentin Gliech cd8468769e syn2mas: fix timestamp conversion on emails 2023-11-27 11:04:51 +01:00
Quentin Gliech a2f8d81107 syn2mas: support for deactivated users & use timestamps when generating IDs 2023-11-03 18:11:21 +01:00
Quentin Gliech 209758db92 syn2mas: accept ULIDs and UUIDs in arguments for upstream IDP mapping 2023-11-02 12:10:59 +01:00
Hugh Nimmo-Smith 89145d574b Package and publish syn2mas to npm (#2023)
Co-authored-by: Quentin Gliech <quenting@element.io>
2023-11-02 11:56:40 +01:00
Nicolas Da Mutten 3c53a392c9 fix(syn2mas): use postgres host when connecting 2023-10-23 10:39:35 +02:00
Quentin Gliech a6093b615e syn2mas: use zod to validate the config files (#1938) 2023-10-16 13:56:01 +01:00
Quentin Gliech 0f5d10f41d syn2mas: typescript fixes 2023-10-10 10:21:02 +02:00
Hugh Nimmo-Smith 66f2a116d2 Docs for --dryRun 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith 54f9105f1a Lint 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith cfbda76c98 Lint 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith e6e98444f3 Migration mode + docs 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith 630228d30c Add test for login_via_existing_session config option 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith e7c036ccbe Missing type 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith 42d2338e81 Check for synapse enable_3pid_changes option 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith debf5e0ac7 All user_consent config must be disabled 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith 95bff53b4f Check for user_consent.require_at_registration=True 2023-10-09 15:53:13 +02:00
Hugh Nimmo-Smith 522c6035d2 WIP of syn2mas tool 2023-10-09 15:53:13 +02:00