Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail on MLS endpoints in galley when MLS is not enabled #2899

Merged
merged 6 commits into from
Dec 8, 2022

Conversation

pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented Dec 2, 2022

This makes all galley endpoints related to MLS fail early when MLS is not enabled. For now, MLS is considered "enabled" when the MLS removal key is set.

Note that this breaks the federation API, because it introduces return values in endpoints such as send-mls-welcome and on-mls-message-sent to support the possibility of them failing.

Checklist

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

@pcapriotti pcapriotti temporarily deployed to cachix December 2, 2022 15:00 Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 2, 2022 15:00 Inactive
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Dec 2, 2022
@pcapriotti pcapriotti temporarily deployed to cachix December 5, 2022 14:44 Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 5, 2022 14:44 Inactive
@pcapriotti pcapriotti changed the title Fail on all MLS endpoints if MLS is not enabled Fail on MLS endpoints in galley when MLS is not enabled Dec 7, 2022
@pcapriotti pcapriotti force-pushed the pcapriotti/develop-mls-cleanups branch from ff3672b to 13cedd1 Compare December 7, 2022 13:32
@pcapriotti pcapriotti temporarily deployed to cachix December 7, 2022 13:32 — with GitHub Actions Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 7, 2022 13:32 — with GitHub Actions Inactive
We are now treating the absence of a removal key as an indicator that
MLS is disabled on this backend, and throw a 400 error on all Galley
endpoints that have something to do with MLS.
The federation endpoints `mls-welcome` and `on-mls-message-sent` will
now fail and return an error value when MLS is not enabled on the
receiving side.
@pcapriotti pcapriotti force-pushed the pcapriotti/develop-mls-cleanups branch from 13cedd1 to c61776d Compare December 8, 2022 08:44
@pcapriotti pcapriotti temporarily deployed to cachix December 8, 2022 08:44 — with GitHub Actions Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 8, 2022 08:44 — with GitHub Actions Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 8, 2022 09:22 — with GitHub Actions Inactive
@pcapriotti pcapriotti temporarily deployed to cachix December 8, 2022 09:22 — with GitHub Actions Inactive
@pcapriotti pcapriotti marked this pull request as ready for review December 8, 2022 12:28
@smatting smatting self-requested a review December 8, 2022 13:32
@mdimjasevic mdimjasevic self-requested a review December 8, 2022 13:44
@pcapriotti pcapriotti merged commit 696f828 into develop Dec 8, 2022
@pcapriotti pcapriotti deleted the pcapriotti/develop-mls-cleanups branch December 8, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants