Skip to content

Commit b1ce159

Browse files
committed
keys/query
1 parent 05da60b commit b1ce159

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
appVersion: 1.151.0
33
description: matrix synapse kubernetes deployment
44
name: synapse
5-
version: 2.4.5
5+
version: 2.4.6

charts/synapse/templates/envoy-configmap.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,18 @@ data:
102102
cluster: httpd-master
103103
{{- end }}
104104
105+
{{- if not .Values.matrixAuthentication.enabled }}
106+
{{- range $route := .Values.ingress.clientReaderRegister }}
107+
- match:
108+
safe_regex:
109+
regex: {{ printf "^%s" $route | squote }}
110+
route:
111+
timeout: 300s
112+
auto_host_rewrite: true
113+
cluster: httpd-client-reader
114+
{{- end }}
115+
{{- end }}
116+
105117
{{- range $route := .Values.ingress.receipts }}
106118
- match:
107119
safe_regex:
@@ -269,17 +281,6 @@ data:
269281
cluster: httpd-user-dir
270282
{{- end }}
271283
272-
{{- if not .Values.matrixAuthentication.enabled }}
273-
{{- range $route := .Values.ingress.clientReaderRegister }}
274-
- match:
275-
safe_regex:
276-
regex: {{ printf "^%s" $route | squote }}
277-
route:
278-
timeout: 300s
279-
auto_host_rewrite: true
280-
cluster: httpd-client-reader
281-
{{- end }}
282-
{{- end }}
283284
{{- if .Values.matrixAuthentication.enabled }}
284285
{{- range $route := .Values.ingress.matrixAuthentication }}
285286
- match:

charts/synapse/values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ ingress:
406406
- '/_matrix/client/(v3|unstable)/keys/device_signing/upload$'
407407
# workers.md: ^/_matrix/client/(api/v1|r0|v3|unstable)/keys/signatures/upload$
408408
- '/_matrix/client/(r0|v3|unstable)/keys/signatures/upload$'
409+
# moved from client reader
410+
- '/_matrix/client/(r0|v3|unstable)/keys/query$'
409411

410412
# validated 020626
411413
threadSubscriptionsRoutes:
@@ -455,7 +457,8 @@ ingress:
455457
clientReaderRoomKeys:
456458
- '/_matrix/client/(r0|v3|unstable)/keys/changes$'
457459
- '/_matrix/client/(r0|v3|unstable)/keys/claim$'
458-
- '/_matrix/client/(r0|v3|unstable)/keys/query$'
460+
# moved to deviceListsRoutes
461+
# - '/_matrix/client/(r0|v3|unstable)/keys/query$'
459462

460463
# by round-robin
461464
clientReaderRoutes:
@@ -483,6 +486,9 @@ ingress:
483486
- '/_matrix/client/(api/v1|r0|v3|unstable)/directory/room/.*$'
484487
- '/_matrix/client/(r0|v3|unstable)/capabilities$'
485488
- '/_matrix/client/(r0|v3|unstable)/notifications$'
489+
- '/_matrix/client/unstable/org\.matrix\.msc4140/delayed_events(/.*/restart)?$'
490+
# check acc to delayed_events.py
491+
#- '/_matrix/client/unstable/org\.matrix\.msc4140/delayed_events.*'
486492

487493
clientReaderRegister:
488494
- "/_matrix/client/(api/v1|r0|v3|unstable)/login$"
@@ -514,7 +520,6 @@ ingress:
514520
- "/_matrix/key/v2/query.*"
515521
- "/_matrix/federation/v1/hierarchy/.*"
516522
- "/_matrix/federation/v1/send/.*"
517-
- "/_matrix/client/unstable/org.matrix.msc4140/delayed_events(/.*/restart)?$"
518523

519524
matrixAuthentication:
520525
- "/_matrix/client/(api/v1|r0|v3|unstable)/login/sso/redirect(/.*)?$"

0 commit comments

Comments
 (0)