From 658e434e65d7823886b24fca7e18799687fb17b3 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 7 Jan 2026 11:14:28 -0300 Subject: [PATCH] comms: return 405 for GET /register --- services/communication/guest-register-configmap.yaml | 5 ++++- services/communication/guest-register-deployment.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/services/communication/guest-register-configmap.yaml b/services/communication/guest-register-configmap.yaml index ef34a7c..55a2d7f 100644 --- a/services/communication/guest-register-configmap.yaml +++ b/services/communication/guest-register-configmap.yaml @@ -72,8 +72,11 @@ data: self.end_headers() def do_GET(self): # noqa: N802 - if self.path in ("/healthz", "/"): + parsed = parse.urlparse(self.path) + if parsed.path in ("/healthz", "/"): return self._send_json(200, {"ok": True}) + if parsed.path in ("/_matrix/client/v3/register", "/_matrix/client/r0/register"): + return self._send_json(405, {"errcode": "M_UNRECOGNIZED", "error": "Unrecognized request"}) return self._send_json(404, {"errcode": "M_NOT_FOUND", "error": "not_found"}) def do_POST(self): # noqa: N802 diff --git a/services/communication/guest-register-deployment.yaml b/services/communication/guest-register-deployment.yaml index 3a44bc1..2eb625e 100644 --- a/services/communication/guest-register-deployment.yaml +++ b/services/communication/guest-register-deployment.yaml @@ -13,7 +13,7 @@ spec: template: metadata: annotations: - checksum/config: guest-register-proxy-1 + checksum/config: guest-register-proxy-2 labels: app.kubernetes.io/name: matrix-guest-register spec: