This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove tls_fingerprints option #9280
Merged
richvdh
merged 7 commits into
matrix-org:develop
from
jerinjtitus:remove-tls_fingerprints
May 24, 2021
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c686fa8
Remove tls_fingerprints option
jerinjtitus 6a359e5
Added changelog file
jerinjtitus 5de842c
removed unused imports
jerinjtitus 9fa38f7
fixing sample config
jerinjtitus e0e561f
Updated changelog.d file
jerinjtitus 3cbea42
Merge branch 'develop' into remove-tls_fingerprints
clokep 40d3875
Merge branch 'develop' into remove-tls_fingerprints
richvdh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removed support for the deprecated `tls_fingerprints` configuration setting. Contributed by Jerin J Titus. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,11 +48,6 @@ class LocalKey(Resource): | |
"key": # base64 encoded NACL verification key. | ||
} | ||
}, | ||
"tls_fingerprints": [ # Fingerprints of the TLS certs this server uses. | ||
{ | ||
"sha256": # base64 encoded sha256 fingerprint of the X509 cert | ||
}, | ||
], | ||
"signatures": { | ||
"this.server.example.com": { | ||
"algorithm:version": # NACL signature for this server | ||
|
@@ -89,14 +84,11 @@ def response_json_object(self): | |
"expired_ts": key.expired_ts, | ||
} | ||
|
||
tls_fingerprints = self.config.tls_fingerprints | ||
|
||
json_object = { | ||
"valid_until_ts": self.valid_until_ts, | ||
"server_name": self.config.server_name, | ||
"verify_keys": verify_keys, | ||
"old_verify_keys": old_verify_keys, | ||
"tls_fingerprints": tls_fingerprints, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for reference: this has been unspecced since at least the first version of the server-server API: https://matrix.org/docs/spec/server_server/r0.1.0#get-matrix-key-v2-server-keyid. |
||
} | ||
for key in self.config.signing_key: | ||
json_object = sign_json(json_object, self.config.server_name, key) | ||
|
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary, but on the other hand, I don't think this script is useful any more.