Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/626.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modernise dependencies, remove stale type stubs.
27 changes: 12 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ classifiers = [
]

dependencies = [
"attrs>=19.1.0",
"attrs>=22.1.0",
"jinja2>=3.0.0",
"matrix-common>=1.1.0,<2",
"netaddr>=0.7.0",
"netaddr>=0.8.0",
"phonenumbers>=8.12.32",
"prometheus-client>=0.4.0",
"pynacl>=1.2.1",
"pyOpenSSL>=16.0.0",
"pyyaml>=3.11",
"service-identity>=1.0.0",
"prometheus-client>=0.14.0",
"pynacl>=1.5.0",
"pyOpenSSL>=22.0.0",
"pyyaml>=6.0",
"service-identity>=21.1.0",
"signedjson==1.1.1",
"sortedcontainers>=2.1.0",
"twisted>=18.4.0,<25",
"twisted>=22.10.0,<25",
"unpaddedbase64>=1.1.0",
"zope.interface>=4.6.0",
"zope.interface>=5.0.0",
]

[project.optional-dependencies]
sentry = ["sentry-sdk>=0.7.2"]
prometheus = ["prometheus-client>=0.4.0"]
sentry = ["sentry-sdk>=1.0.0"]
prometheus = ["prometheus-client>=0.14.0"]

[project.scripts]
sydent = "sydent.sydent:main"
Expand All @@ -48,10 +48,7 @@ dev = [
"mypy-zope>=0.3.1",
"parameterized==0.8.1",
"sentry-sdk",
"types-Jinja2==2.11.9",
"types-mock==4.0.8",
"types-PyOpenSSL==21.0.3",
"types-PyYAML==6.0.3",
"types-PyYAML>=6.0.3",
"towncrier>=21.9.0",
]

Expand Down
5 changes: 5 additions & 0 deletions sydent/http/servlets/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def render_POST(self, request: Request) -> JsonDict:
peerCert = cast(X509, request.transport.getPeerCertificate())
peerCertCn = peerCert.get_subject().commonName

if peerCertCn is None:
raise MatrixRestError(
403, "M_UNKNOWN_PEER", "Peer certificate has no commonName"
)

peerStore = PeerStore(self.sydent)

peer = peerStore.getPeerByName(peerCertCn)
Expand Down
81 changes: 12 additions & 69 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading