Skip to content

WPB-29582: migrate mls key packages to PostGreSQL - #5646

Open
blackheaven wants to merge 1 commit into
developfrom
gdifolco/WPB-29582-migration-postgres-mls-key-packages
Open

blackheaven wants to merge 1 commit into
developfrom
gdifolco/WPB-29582-migration-postgres-mls-key-packages

Conversation

@blackheaven

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-29582

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@blackheaven
blackheaven requested review from a team as code owners October 23, 2026 09:40
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Oct 23, 2026
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch 2 times, most recently from 20c88fe to 322caef Compare October 23, 2026 12:30
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch from fa20ba2 to eaa5b43 Compare November 4, 2026 11:26
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch from eaa5b43 to ffbd9e8 Compare November 5, 2026 12:05
@VeryMilkyJoe
VeryMilkyJoe requested a balanced review from Copilot November 6, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The review found an issue that should be addressed before approval.

10 open issues
What changed in this PR

Adds PostgreSQL storage and migration support for MLS key packages, connecting Brig’s storage routing to a background-worker backfill.

Changes:

  • Introduces PostgreSQL tables, serialization, and store operations.
  • Adds per-user migration locking, routing, worker controls, and metrics.
  • Updates deployment configuration, documentation, and migration tests.
File Description
services/​galley/​galley.integration.yaml Updated as part of this pull request.
services/​brig/​src/​Brig/​CanonicalInterpreter.hs Updated as part of this pull request.
services/​brig/​brig.integration.yaml Updated as part of this pull request.
services/​background-worker/​test/​Test/​Wire/​Util.hs Updated as part of this pull request.
services/​background-worker/​test/​Test/​Wire/​BackendNotificationPusherSpec.hs Updated as part of this pull request.
services/​background-worker/​src/​Wire/​PostgresMigrations.hs Updated as part of this pull request.
services/​background-worker/​src/​Wire/​BackgroundWorker/​Options.hs Updated as part of this pull request.
services/​background-worker/​src/​Wire/​BackgroundWorker.hs Updated as part of this pull request.
services/​background-worker/​background-worker.integration.yaml Updated as part of this pull request.
postgres-schema.sql Updated as part of this pull request.
libs/​wire-subsystems/​wire-subsystems.cabal Updated as part of this pull request.
libs/​wire-subsystems/​src/​Wire/​PostgresMigrationOpts.hs Updated as part of this pull request.
libs/​wire-subsystems/​src/​Wire/​MlsKeyPackageStore/​Postgres.hs Updated as part of this pull request.
libs/​wire-subsystems/​src/​Wire/​MlsKeyPackageStore/​Migration.hs Updated as part of this pull request.
libs/​wire-subsystems/​src/​Wire/​MlsKeyPackageStore/​Migrating.hs Updated as part of this pull request.
libs/​wire-subsystems/​postgres-migrations/​20261023072742-mls-key-packages.sql Updated as part of this pull request.
libs/​wire-api/​test/​unit/​Test/​Wire/​API/​Roundtrip/​PostgresMarshall.hs Updated as part of this pull request.
libs/​wire-api/​src/​Wire/​API/​MLS/​KeyPackage.hs Updated as part of this pull request.
libs/​wire-api/​src/​Wire/​API/​MLS/​CipherSuite.hs Updated as part of this pull request.
integration/​test/​Test/​Migration/​MlsKeyPackages.hs Updated as part of this pull request.
integration/​integration.cabal Updated as part of this pull request.
hack/​helm_vars/​wire-server/​values.yaml.gotmpl Updated as part of this pull request.
hack/​helm_vars/​common.yaml.gotmpl Updated as part of this pull request.
docs/​src/​developer/​reference/​config-options.md Updated as part of this pull request.
charts/​wire-server/​values.yaml Updated as part of this pull request.
charts/​wire-server/​templates/​background-worker/​configmap.yaml Updated as part of this pull request.
changelog.d/​5-internal/​WPB-29582 Updated as part of this pull request.

Review effort: Balanced

@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch 3 times, most recently from 89897e8 to a29bfa8 Compare November 17, 2026 14:08
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch 2 times, most recently from f66061a to 4dbbb64 Compare November 30, 2026 09:13
@VeryMilkyJoe VeryMilkyJoe self-assigned this Nov 30, 2026
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch 2 times, most recently from ea263f6 to 19dfce0 Compare December 3, 2026 09:25
@blackheaven
blackheaven force-pushed the gdifolco/WPB-29582-migration-postgres-mls-key-packages branch from 19dfce0 to 098f3c3 Compare December 3, 2026 23:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy-to-review ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants