Don't send unstable signing key update EDUs#19481
Open
velikopter wants to merge 9 commits into
Open
Conversation
reivilibre
requested changes
Mar 3, 2026
Contributor
reivilibre
left a comment
There was a problem hiding this comment.
Thank you very much, always nice to get a cleanup.
Some archaeology notes:
- Stable version introduced in: https://github.com/matrix-org/synapse/pull/10520 (Synapse v1.50.0, 2022 January)
- Unstable version introduced in: https://github.com/matrix-org/synapse/pull/5727 (Synapse v1.6.0, 2019 November)
- Part of MSC1756
| # also send the unstable version | ||
| # FIXME: remove this when enough servers have upgraded | ||
| # and remove the length budgeting above. | ||
| results.append(("org.matrix.signing_key_update", result)) |
Contributor
There was a problem hiding this comment.
Now each entry only produces only one EDU, need to update the 'budgeting' logic on R668 and R691 to compensate.
There are also a bunch of stale comments to remove. :)
Contributor
Author
There was a problem hiding this comment.
I don't see any budgeting logic on R691..
Contributor
There was a problem hiding this comment.
sorry for being elusive, I think I meant
if (
is_cross_signing_key_update
and user_id not in cross_signing_keys_by_user
):
# This will give rise to 2 device updates.
# If we don't have the budget, stop here!
if remaining_length_budget < 2:
breakI think that full block can come out; if we updated this directly we'd change the 2nd if to if remaining_length_budget < 1: BUT we already have assert remaining_length_budget >= 0 earlier, so there is no time it would hit this anymore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I think 5 years is enough.
Pull Request Checklist
EventStoretoEventWorkerStore.".code blocks.