From fb119aa4f0af1a39f856296e39aaafa1b7cc7f92 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sun, 31 Jan 2021 19:07:32 +0100 Subject: [PATCH] app/matrix: backport matrix.metadata(component) into matrix-ng This is used by some external modules (appservices/instance definitions). In order to reduce scope of (untested) changes in this rollout, let's temporarily backport that function into matrix-ng. Change-Id: Ib1054844391497ef1455b25c7f939c68c628ff09 --- app/matrix/lib/matrix-ng.libsonnet | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/matrix/lib/matrix-ng.libsonnet b/app/matrix/lib/matrix-ng.libsonnet index 976b8b59..5c0ef2a6 100644 --- a/app/matrix/lib/matrix-ng.libsonnet +++ b/app/matrix/lib/matrix-ng.libsonnet @@ -23,6 +23,11 @@ # .riotConfig → .riot.config # .synapseConfig → .synapse.config # +# When migrating from CAS to OpenID Connect authentication scheme following need +# to be ensured: +# * https://{homeserver}/_synapse/oidc/callback is added to allowed callback URLs list +# * openid scope is enabled for configured client +# # Sequencing appservices is fun. The appservice needs to run first (for # instance, via a bootstrap job), and on startup it will spit out a # registration file. This registration file then needs to be fed to synapse - @@ -117,6 +122,17 @@ local synapse = import "./synapse.libsonnet"; wellKnown: false, }, + # DEPRECATED: this needs to be removed in favor of namespace.Contain() in + # modules that depend on this (appservices/instance defintions) + metadata(component):: { + namespace: cfg.namespace, + labels: { + "app.kubernetes.io/name": "matrix", + "app.kubernetes.io/managed-by": "kubecfg", + "app.kubernetes.io/component": component, + }, + }, + namespace: kube.Namespace(cfg.namespace), postgres3: postgres {