Skip to content

Commit 34723fb

Browse files
committed
add routes for clientReaderRegister requests
1 parent c80b0e0 commit 34723fb

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.0.12
3+
version: 0.1.0

charts/synapse/templates/synapse-ingress.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ spec:
4242
number: 80
4343
name: synapse-client-reader
4444
{{- end }}
45+
{{- if not .Values.matrixAuthentication.enabled }}
46+
{{- range $route := .Values.ingress.clientReaderRegister }}
47+
- path: {{ $route }}
48+
pathType: ImplementationSpecific
49+
backend:
50+
service:
51+
port:
52+
number: 80
53+
name: synapse-client-reader
54+
{{- end }}
55+
{{- end }}
4556
{{- range $route := .Values.ingress.accountData }}
4657
- path: {{ $route }}
4758
pathType: ImplementationSpecific

charts/synapse/values.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ ingress:
151151
- "/_matrix/client/(api/v1|r0|v3|unstable)/profile/"
152152
matrixAuthentication:
153153
- "/_matrix/client/(.*)/(login|logout|refresh)"
154+
# disabled if MAS is enabled
155+
clientReaderRegister:
156+
# Registration/login requests
157+
- "/_matrix/client/(api/v1|r0|v3|unstable)/login$"
158+
- "/_matrix/client/(r0|v3|unstable)/register$"
159+
- "/_matrix/client/(r0|v3|unstable)/register/available$"
160+
- "/_matrix/client/v1/register/m.login.registration_token/validity$"
161+
- "/_matrix/client/(r0|v3|unstable)/password_policy$"
154162
clientReaderStickyRoutes:
155163
# Sync requests
156164
- "/_matrix/client/(r0|v3)/sync$"
@@ -175,6 +183,13 @@ ingress:
175183
- "/_matrix/client/(r0|v3|unstable)/account/whoami$"
176184
- "/_matrix/client/(r0|v3|unstable)/devices$"
177185
- "/_matrix/client/versions$"
186+
# api v1 ++
187+
- "/_matrix/client/(api/v1|r0|v3|unstable)/account/3pid$"
188+
- "/_matrix/client/(api/v1|r0|v3|unstable)/account/whoami$"
189+
- "/_matrix/client/(api/v1|r0|v3|unstable)/sync$"
190+
- "/_matrix/client/(api/v1|r0|v3|unstable)/devices"
191+
- "/_matrix/client/(api/v1|r0|v3|unstable)/room_keys"
192+
# api v1 --
178193
- "/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$"
179194
- "/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/"
180195
- "/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$"
@@ -185,12 +200,6 @@ ingress:
185200
- "/_matrix/client/(api/v1|r0|v3|unstable)/directory/room/.*$"
186201
- "/_matrix/client/(r0|v3|unstable)/capabilities$"
187202
- "/_matrix/client/(r0|v3|unstable)/notifications$"
188-
# Registration/login requests
189-
#- "/_matrix/client/(api/v1|r0|v3|unstable)/login$"
190-
#- "/_matrix/client/(r0|v3|unstable)/register$"
191-
#- "/_matrix/client/(r0|v3|unstable)/register/available$"
192-
#- "/_matrix/client/v1/register/m.login.registration_token/validity$"
193-
#- "/_matrix/client/(r0|v3|unstable)/password_policy$"
194203
# User directory search requests
195204
- "/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$"
196205

0 commit comments

Comments
 (0)