-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add config option for adding additional TLS fingerprints #1167
Conversation
# Homeservers are permitted to cache the list of TLS fingerprints | ||
# returned in the key responses. It may be necessary to publish the | ||
# fingerprints of a new certificate and wait for the caches on other | ||
# servers to expire before deploying it. |
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.
This worries me a bit if we're not explicit about the cache invaliadtion timings
# fingerprints of a new certificate and wait for the caches on other | ||
# servers to expire before deploying it. | ||
tls_fingerprints: [] | ||
#- {"sha256": "<base64_encoded_sha256_fingerprint>"} |
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.
This is a confusing way of giving an example, I was quite confused for a minute. Maybe:
tls_fingerprints: []
# tls_fingerprints: [{"sha256": "<base64_encoded_sha256_fingerprint>"}, ...]
@@ -49,7 +47,8 @@ class LocalKey(Resource): | |||
"key": # base64 encoded NACL verification key. | |||
} | |||
} | |||
"tls_certificate": # base64 ASN.1 DER encoded X.509 tls cert. | |||
"tls_fingerprints": # Fingerprints of the TLS certs this server uses. | |||
- {"sha256": "..."} |
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.
- This is JSON not yaml
- Are we actually changing the API here? Won't that affect when other servers look up keys?
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.
We aren't changing the API. The comment is just a tiny bit out of date.
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.
\o/
LGTM |
No description provided.