Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Fix code for reporting old verify keys in synapse #2156
Conversation
NegativeMjark
assigned
erikjohnston
Apr 24, 2017
| @@ -84,12 +84,11 @@ def response_json_object(self): | ||
| } | ||
| old_verify_keys = {} | ||
| - for key in self.config.old_signing_keys: | ||
| - key_id = "%s:%s" % (key.alg, key.version) | ||
| + for key_id, key in self.config.old_signing_keys.items(): |
erikjohnston
Apr 25, 2017
Owner
I've been trying to use .iteritems() everywhere fwiw, but its fine here
NegativeMjark
merged commit 33d5134
into
develop
Apr 25, 2017
8 checks passed
Sytest Dendron (Commit)
Build #1997 origin/markjh/old_verify_keys succeeded in 9 min 13 sec
Details
Sytest Dendron (Merged PR)
Build finished.
Details
Sytest Postgres (Commit)
Build #2827 origin/markjh/old_verify_keys succeeded in 7 min 40 sec
Details
Sytest Postgres (Merged PR)
Build finished.
Details
Sytest SQLite (Commit)
Build #2897 origin/markjh/old_verify_keys succeeded in 6 min 9 sec
Details
Sytest SQLite (Merged PR)
Build finished.
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
continuous-integration/travis-ci/push
The Travis CI build passed
Details
psaavedra
added a commit
to psaavedra/synapse
that referenced
this pull request
May 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NegativeMjark commentedApr 24, 2017
The code for generating the
"old_verify_keys"section in local_key_resource was buggy.It was assuming that the
old_signing_keyswas a list when in fact it was a dict.The net result was that any server that tried to fill out the
"old_signing_keys"config entry would crash on startup as it tried to pre-generate the local key response.