Commit Graph
98 Commits
Author SHA1 Message Date
Ben Banfield-Zanin cf791b82bc Fix intermittent render test failure when the hostname has characters 3 & 4 repeated elsewhere 2026-11-18 11:05:51 +00:00
Ben Banfield-Zanin ad85337bd3 Merge pull request #1788 from mvanhorn/fix/1417-syn2mas-warning-exit-code
Allow syn2mas preflight warnings to proceed
2026-11-13 16:21:21 +00:00
Gael Goinvic c53db7d397 Use go.yaml.in/yaml/v4 everywheere 2026-11-13 14:19:59 +00:00
Matt Van Horn afd6249462 Fix changelog and copyright checks, build matrix-tools in CI
Rename the news fragment to the PR number, extend the Element
Creations copyright year on syn2mas_test.go to 2026, and set
BUILD_MATRIX_TOOLS=1 for the syn2mas integration suite so CI builds
matrix-tools on this fork. BUILD_MATRIX_TOOLS is temporary and comes
out before merge.
2026-11-12 07:25:13 -08:00
Matt Van Horn 1732f028a5 Make accepting syn2mas check warnings opt-in
syn2mas check warnings, such as guest accounts, now stay fatal unless
matrixAuthenticationService.syn2mas.acceptWarnings is set. The chart
passes --accept-warnings to the syn2mas job only when it is enabled,
and a check that only reported warnings without it prints how to opt in.
The upgrade integration test sets acceptWarnings when it enables MAS.
2026-11-12 01:27:49 -08:00
renovate[bot] 107f4755af Update module go.yaml.in/yaml/v3 to v4 2026-11-11 21:57:49 +00:00
Matt Van Horn 56610ce153 Allow syn2mas preflight warnings to proceed
DryRunSyn2MAS now accepts status 11 from syn2mas check and continues
into syn2mas migrate --dry-run. Any other non-zero check status still
ends the process, and the dry-run migrate step ends the process when its
status is not zero. The upgrade integration test registers a guest and
expects the guest warning and status 11 in the syn2mas-migrate logs, the
dry run to finish, and the MATRIX_STACK_MSC3861 marker to remain
legacy_auth. The changelog records that these preflight warnings can
proceed for a dry run and for a real migration.

Fixes #1417
2026-11-11 08:13:45 -08:00
Ben Banfield-Zanin 33d09c8d82 Migrate to go.yaml.in/yaml/v3 2026-10-20 14:24:01 +01:00
Ben Banfield-Zanin 6a63b06464 Always regenerate registrations from their templates 2026-09-22 14:58:41 +01:00
Ben Banfield-Zanin 1bcd90d01b Always run syn2mas dry-run before doing a real migration 2026-09-10 15:54:50 +01:00
Ben Banfield-Zanin dbfba705da Preserve ${thing} within replacements from env vars. 2026-09-09 15:22:21 +01:00
Gael Goinvic 9d1c608805 Use paddedBase64 output name 2026-08-27 11:49:03 +00:00
Gael Goinvic 5ea729c74b Allow to generate X25519 private keys 2026-08-26 09:23:42 +00:00
Gael Goinvic 99120b30b2 matrix-tools: Make it explicit that we want to do padded base64 format 2026-08-26 08:44:07 +00:00
Gael Goinvic f47e1b3775 matrix-tools: Introduce a new randbytes generator and remove hex32 2026-08-25 09:00:01 +00:00
Ben Banfield-Zanin 24e646013c Use matrix-tools 0.8.1 2026-08-07 15:39:05 +01:00
Ben Banfield-Zanin 7e235a1791 Allow escaping of env var substitutions when rendering configuration 2026-08-07 11:57:58 +01:00
Ben Banfield-Zanin 8004f7e9e5 matrix-tools: introduce 'concat' 2026-05-18 11:03:37 +01:00
Gaël Goinvic 0d82aab625 Merge tag 'matrix-tools-0.7.2' into gaelg/merge-matrix-tools-0.7.2
matrix-tools-0.7.2
2026-02-12 16:21:30 +01:00
Gaël Goinvic 4b5886cc48 Update matrix-tools for matrix-tools-0.7.2 2026-02-12 16:11:31 +01:00
Gaël Goinvic d2ab6172e5 Merge tag 'matrix-tools-0.7.1' into HEAD
matrix-tools-0.7.1
2026-02-12 16:11:31 +01:00
Gaël Goinvic 4974e45c9b Update matrix-tools for matrix-tools-0.7.1 2026-02-12 16:11:29 +01:00
Gaël Goinvic 167e3f6c5c Merge tag 'matrix-tools-0.6.1' into HEAD
matrix-tools-0.6.1
2026-02-12 16:11:29 +01:00
Gaël Goinvic 772e4afa8b Update matrix-tools for matrix-tools-0.6.1 2026-02-12 16:11:27 +01:00
Gaël Goinvic 6a02c9eb6d Merge tag 'matrix-tools-0.5.8' into HEAD
matrix-tools-0.5.8
2026-02-12 16:11:27 +01:00
Gaël Goinvic 4a7dd448f4 Update matrix-tools for matrix-tools-0.5.8 2026-02-12 16:11:24 +01:00
Gaël Goinvic 2fc7fd6f4a Update matrix-tools for matrix-tools-0.5.7 2026-02-12 16:11:17 +01:00
Ben Banfield-Zanin 1cb6bab744 Support overwriting rather than merging some specific arrays in render-config 2026-01-30 14:03:01 +00:00
Gaël Goinvic 8ee1c290c6 matrix-tools: backport appservice registration files handling
- This backports to Community the appservice registration file
initialization by matrix-tools during init-secrets phase
2026-01-19 17:58:47 +01:00
Gaël Goinvic 641254ab22 add test for multiple args secrets 2026-01-16 12:55:37 +01:00
Gaël Goinvic 469d8ca68f add test for multiple args secrets 2026-01-16 12:52:56 +01:00
Gaël Goinvic 798bb8b3c3 pass RSA number of bits through generator arguments 2026-01-16 12:33:47 +01:00
Gaël Goinvic 00f47e5314 matrix-tools: backport generator arguments support
- This backports to Community the generator arguments support
2026-01-16 11:37:18 +01:00
Ben Banfield-Zanin 9373420f47 Make RSA key size explicit 2026-01-16 11:32:49 +01:00
Gaël Goinvic b9da3150ae matrix-tools: support generating different type of rsa secret
- Hookshot needs PEM secrets
- MAS needs DER secrets
2026-01-16 11:32:49 +01:00
Ben Banfield-Zanin 61cd2ce9ed Only RSA and ECDSA Prime256v1 generation is actually supported 2025-12-08 14:26:25 +00:00
Ben Banfield-Zanin 63ea363594 git ls-files | xargs sed -i '/^\/\/ Copyright .* New Vector Ltd/a \/\/ Copyright 2025 Element Creations Ltd' 2025-10-27 09:36:54 +00:00
Ben Banfield-Zanin 75c884dc74 git ls-files | xargs sed -i '/^Copyright .* New Vector Ltd/a Copyright 2025 Element Creations Ltd' 2025-10-27 08:43:19 +00:00
Ben Banfield-Zanin c8303c96c4 gofmt -w matrix-tools 2025-10-09 14:37:07 +01:00
Gaël Goinvic bc7069a364 matrix-tools: refactor subcommands 2025-07-02 14:07:01 +02:00
Gaël Goinvic 6430e826ef filter completed pods 2025-06-11 11:06:09 +02:00
Gaël Goinvic 4598ca2105 make max retries configurable 2025-06-09 16:03:08 +02:00
Gaël Goinvic e74e627495 fix retries text logic 2025-06-09 16:03:08 +02:00
Gaël Goinvic d65659255c fix allPodsDown logic 2025-06-09 16:03:08 +02:00
Gaël Goinvic 36da3c174e Actively wait for pods to be gone 2025-06-09 16:03:08 +02:00
Gaël Goinvic a23ba9280b matrix-tools: explicitely exclude synapse check config 2025-06-06 18:18:05 +02:00
Gaël Goinvic c3cd3cf153 syn2mas: fail if pods are still up after statefulset are all down 2025-06-06 17:43:21 +02:00
Gaël Goinvic d3c1474022 matrix-tools: test syn2mas args 2025-06-05 17:40:35 +02:00
Gaël Goinvic 5038143cf9 matrix-tools: log more during upgrade 2025-06-05 15:16:44 +02:00
Gaël Goinvic 6c2c2ddcc0 add syn2mas role binding 2025-06-05 15:16:43 +02:00