1
0
Fork 0
Commit Graph

126 Commits (f97c9688d5a5e99e2ccd1967faf619e884a3172b)

Author SHA1 Message Date
q3k ed421911ce app/matrix: matrix.hackerspace.pl: give psql more storage
We ran out of disk space on the old PVC. Made a new one, copied data
over, and this change points the postgres data mount to that new PVC.

Change-Id: Iea4e140680066a3335cc69caf9293093f90bb568
2021-06-30 21:23:49 +00:00
q3k abca7901a2 app/matrix: bump riot to 1.7.29
Change-Id: I26c99f110abb7a68320587d7056558403b34a122
2021-06-06 14:23:26 +00:00
viq a1501ab250 matrix: bump version and remove default options
Change-Id: I3b66b5869957b574b0d5e58d52d45ff5832bccbc
2021-06-06 13:10:36 +00:00
q3k 1431d1d2db app/matrix: matrix.hackerspace.pl: add libera.chat static mappings
Change-Id: Ib9052c14ab9c91ed2d11fce40bccf214d08df340
2021-06-06 12:59:25 +00:00
q3k 972e54651c app/matrix: appservice-irc: use secret in bootstrap job
Previously: 856b216459 switched to using a
Secret instead of a ConfigMap for appservice-irc. That however didn't
update the bootstrap job which still used the ConfigMap. This fixes
that.

Change-Id: I50f33935691678ce24ecf4e04d7ce1b13c184929
2021-06-06 12:59:25 +00:00
q3k 196c556001 app/matrix: matrix.hackerspace.pl: unplumb a static secret channel
Change-Id: I63801798b2bd7f97f6c6f16b9243dc98102911ea
2021-05-26 19:46:44 +00:00
q3k 7711224d73 app/matrix: matrix.hackerspace.pl: add libera.chat
Apart from this, we also had to manually edit the registration yaml to
add @libera_ and #libera_ prefixes to the allowlists.

Change-Id: If85f58cf3d1291e0bf9099ef13d9397040a47782
2021-05-26 19:46:40 +00:00
q3k b387f57497 app/matrix: matrix.hackerspace.pl: run apppservice-irc identd
This doesn't have to be publicly reachable, as the future
//cluster/identd will dial into the pod directly to access the
appservice's identd.

Change-Id: I139341ead76309a6640eeb9a278462565290dd34
2021-05-26 19:45:22 +00:00
q3k 856b216459 matrix.hackerspace.pl: add secret appservice-irc mappings
These contain a channel key for a secret channel.

We also had to migrate the appservice-irc config to a secret.

Change-Id: I92c7cdf9679f65d9e655e22d690cef2e83180135
2021-05-19 22:04:02 +00:00
q3k 6be8b2e301 matrix.hackerspace.pl: give appservce-irc admin access to q3k and inf
Change-Id: I54334f4e8d1abd037ae2c821cb3569312bd2fe3b
2021-05-19 16:32:29 +00:00
q3k e7f14471e1 matrix.hackerspace.pl: disable bootstrap jobs
Change-Id: I93472c8ca03b9d0a2d4bea1504ec93102d68f258
2021-05-19 16:10:31 +00:00
q3k 4154673593 matrix: appservice-irc: set debugService.enable if needed
This is the case for any IRC server that has ignoreIdleUsersOnStartup
set, because of what seems like an appservice-irc bug.

Change-Id: If5063a3bc2d79c7f2fc79ec7560bf9bfe2b25aba
2021-05-19 16:10:03 +00:00
q3k 25cd650ec9 matrix: add bootstrapJob config flag to appservices
This allows us to bypass the issue where Kubernetes jobs cannot be
updated once completed, so bumping appservice image versions was
painful.

But really, though, this is probably someting that kubecfg/kartongips
should handle.

Change-Id: I2778c5433f699db89120a3c44e55d2fbe2a10015
2021-05-19 16:09:13 +00:00
q3k 8eae454769 matrix: bump appservice-irc
Also drive-by bump appservice-telegram, which was already bumped on
prod.

Change-Id: Ic8222775e7e3dbaa44361e6ccd84bdd6617924c3
2021-05-19 16:07:52 +00:00
q3k 6751d826f1 Merge changes I2afe9e52,Ideb13ba9
* changes:
  app/matrix/appservice-irc: implement passwordEncryptionKey
  app/matrix/appservice-irc: add ignoreIdleUsersOnStartup option
2021-05-19 15:41:55 +00:00
q3k ab1f7dc924 app/matrix: 0x3c: fix secret name
Change-Id: Ifc519c068eb2af4ca1462d438c7b7050d9c0b2d8
2021-05-12 21:07:07 +00:00
q3k c3ca29512a app/matrix: update mautrix image
The old image disappearified from their registry:

httpReaderSeeker: failed open: content at https://dock.mau.dev/v2/tulir/mautrix-telegram/manifests/sha256:dc95be8f9cd7c226686bcd8be52872cdc20de6751b5eb9f10c6db87ec478b1ca not found: not found

This is the current latest image. Production (at least
matrix.hackerspace.pl) has been updated.

Change-Id: I754b13f08b569e717295fb48d36c0e6544438aa4
2021-04-10 11:15:31 +00:00
informatic 37fbff768a app/matrix/appservice-irc: implement passwordEncryptionKey
This allows people to save their NickServ passwords into bridge's
storage. Obviously nobody should trust us tho.

Change-Id: I2afe9e5215cd8f7419e9eab8183789df13e21aac
2021-02-13 20:18:51 +01:00
informatic 3d5bb6f2e9 app/matrix/appservice-irc: add ignoreIdleUsersOnStartup option
This should alleviate an issue of people getting joining and immediately
getting dropped off due to client limit on bridge restarts.

Change-Id: Ideb13ba9930d565ede728d2750d0c7af04746cf1
2021-02-13 19:58:58 +01:00
q3k 32d3eaac01 app/matrix: bump appservice-irc
Already deployed to matrix/appservice-irc.

Change-Id: I906390eaed9a9154b154bc8952412f9fa6708f64
2021-02-13 17:50:56 +00:00
Norbert Szulc 5d784c5861 app/matrix change displayname rules for matrix.0x3c.pl
prefer username as those are more commonly used in this community

Change-Id: Ia9e5394cd672d3f759e89e4b72dc16a5059857b4
2021-02-12 19:35:26 +01:00
q3k 34f56935b9 app/matrix/telegram: re-pin alpine to 3.13
Newer versions of alpine edge repos have a `yq` that behaves oddly:

    $ kubectl -n matrix-0x3c logs -f appservice-telegram-prod-85d66696c6-9drnl -c generate-config
    + apk add --no-cache yq
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
    (1/1) Installing yq (4.4.1-r0)
    Executing busybox-1.31.1-r21.trigger
    ERROR: busybox-1.31.1-r21.trigger: script exited with error 127
    OK: 11 MiB in 15 packages
    + cp /config/config.yaml /data/config.yaml
    + yq r /registration/registration.yaml as_token
    Error: unknown command "r" for "yq"
    Run 'yq --help' for usage.
    + yq w -i /data/config.yaml appservice.as_token
    Error: unknown command "w" for "yq"
    Run 'yq --help' for usage.

This downgrades back to a working yq.

Change-Id: Ifc77bcc88156b02f3ec17e6f84c5615149108777
2021-02-08 17:54:10 +01:00
informatic 95da3d5011 app/matrix: enable labs settings on matrix.hackerspace.pl
This adds an extra tab in profile settings window.

Change-Id: I2a6f162975b7ef6047aea5fdc72ba711084db2d5
2021-02-06 11:55:48 +01:00
informatic babcb8017f app/matrix/matrix.hackerspace.pl: migrate to matrix-ng
Change-Id: I131049da1037d9501a21a900d46929242fd5cba5
2021-01-31 19:07:53 +01:00
informatic fb119aa4f0 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
2021-01-31 19:07:53 +01:00
informatic 356dd6d571 app/matrix/matrix.hackerspace.pl: update appservice-irc-freenode node
Change-Id: Id9c47f61d51291bd10fab3c58c17abddc1fdac17
2021-01-31 18:57:07 +01:00
informatic d6f08fc98f Merge "app/matrix: split matrix-ng into submodules, use kube.Namespace.Contain" 2021-01-31 15:50:54 +00:00
informatic b67ae4893c app/matrix: split matrix-ng into submodules, use kube.Namespace.Contain
matrix-ng split into multiple submodules causes some changes in keys
that might've been used for homeserver/riot configuration customization.

Migration to kube.Namespace.Contain has also caused change in Deployment
selectors (immutable fields), thus needing manual removal of these
first.

This is, as always, documented in lib/matrix-ng.libsonnet header.

Change-Id: I39a745ee27e3c55ec748818b9cf9b4e8ba1d2df5
2021-01-31 12:55:38 +01:00
informatic 0c75256f48 Merge "app/matrix: matrix-ng - synapse deployment cleanup" 2021-01-30 20:58:55 +00:00
informatic 8ec865728e app/matrix: matrix-ng - synapse deployment cleanup
This is a major revamp of our matrix/synapse deployment as a separate
.libsonnet module.

* synapse version bump to 1.25.0
* riot-web version bump to 1.7.18
* Replaced synapse migration hack we used to template configuration with
environment variable replacement done by Kubernetes itself
* Implemented support for OpenID Connect, migration from CAS has been
verified to be working with some additional configuration options
* Moved homeserver signing key into k8s secret, thus making it possible
to run synapse processes without a single data volume
* Split synapse into main process, generic worker and media repository
worker. (latter is the only container using data volume) Both generic
worker and media repository worker is running on a single replica, until
we get proper HTTP routing/loadbalancing
* Riot nginx.conf has been extracted into an external file loaded using
importstr.

Change-Id: I6c4d34bf41e148a302d1cbe725608a5aeb7b87ba
2021-01-30 21:18:51 +01:00
informatic 77351a68c7 Merge changes Ic71cbdce,I097b58ef
* changes:
  app/matrix: cleanup irc bridge registration oneliner
  app/matrix: add wellKnown server integration
2021-01-30 15:34:25 +00:00
informatic ee62857c70 app/matrix: cleanup irc bridge registration oneliner
Change-Id: Ic71cbdce6bd9668754285f863fd987c63ab5386d
2021-01-30 13:10:22 +01:00
informatic 63244ca465 app/matrix: add wellKnown server integration
Exposes /.well-known/matrix/ metadata endpoints on cfg.webDomain that
are required for federation to work properly. This can be enabled using
cfg.wellKnown flag set to true.

Change-Id: I097b58efc7442b904a135d4519999e36d155c197
2021-01-30 13:10:15 +01:00
q3k 8506af2c24 app/matrix/wellknown: push container
Change-Id: Ifc8fec94cdfd7c98b5c87c1c20167b34608e1eea
2021-01-29 22:55:32 +00:00
q3k 61f978a0a0 *: tear down ceph-waw2
It reached the stage of being crapped out so much that the OSDs spurious
IOPS killed the performance of disks colocated on the same M610 RAID
controllers. This made etcd _very_ slow, to the point of churning
through re-elections due to timeouts.

etcd/apiserver latencies, observe the difference at ~15:38:

https://object.ceph-waw3.hswaw.net/q3k-personal/4fbe8d4cfc8193cad307d487371b4e44358b931a7494aa88aff50b13fae9983c.png

I moved gerrit/* and matrix/appservice-irc-freenode PVCs to ceph-waw3 by
hand. The rest were non-critical so I removed them, they can be
recovered from benji backups if needed.

Change-Id: Iffbe87aefc06d8324a82b958a579143b7dd9914c
2021-01-22 16:26:09 +01:00
q3k d67635d338 Bump riot-web on matrix.hackerspace.pl
Change-Id: Ia043a03afb85b1a149b112a2be5c29fb26d5969d
2020-12-29 22:27:32 +00:00
q3k 21e9f7aaea app/matrix: allow not7cd access to matrix-0x3c
Change-Id: Iba9edfdfd2d05701e1266c279ec2f4881fa3505e
2020-11-11 23:39:48 +01:00
Norbert Szulc 2117416052 app/matrix: fix typo in secret in matrix.0x3c.pl
it looks like I have missed a typo

Change-Id: I5cdf06d44d23ab678f239c19d78170d3f1125b9c
2020-11-11 18:37:46 +01:00
Norbert Szulc 2508009f50 app/matrix bump casProxy to 0.1.5 for matrix.0x3c.pl
Change-Id: I182ce7a23f21faf20f04f7211e4837dc30e2cf1e
2020-11-11 17:34:09 +00:00
Norbert Szulc 6ab920a103 app/matrix: fix secret in matrix.0x3c.pl
Change-Id: Iffd361b6fde96e9a6c3967bc88c730b5acf14082
2020-11-10 23:20:07 +00:00
not7cd 5903c1e64a Merge "app/matrix enable cas proxy for matrix.0x3c.pl" 2020-11-10 23:06:04 +00:00
Norbert Szulc c67abc23a8 app/matrix enable cas proxy for matrix.0x3c.pl
Change-Id: I63c8172dbc93b9f6781aa03f7924be944b8f1846
2020-11-10 23:34:30 +01:00
q3k 8483d37581 app/matrix: make cas deployment configurable
This is an alternative to https://gerrit.hackerspace.pl/509 that was
reverted in https://gerrit.hackerspace.pl/541 .

This has already been deployed.

Change-Id: I7d54943c970804cac910e0e15201d1c3fa337489
2020-11-10 22:07:30 +01:00
Norbert Szulc 014c9cd018 app/matrix make cas deployment configurable
Change-Id: I59ea4d0d5f4a68ffbd88264857c309f6bac61288
2020-11-09 15:22:56 +01:00
not7cd 9e5a8b8520 Merge "app/matrix enable telegram in matrix.0x3c.pl" 2020-11-08 15:51:11 +00:00
not7cd cc711d23ab Merge "app/matrix add branding to matrix.0x3c.pl" 2020-11-08 15:48:01 +00:00
not7cd 8a504b1bc2 Merge "app/matrix: make riotConfig parametrizable" 2020-11-08 15:39:01 +00:00
Norbert Szulc 9dcf5f886f app/matrix enable telegram in matrix.0x3c.pl
Change-Id: Id602fb46904f4499a797af593ec129b9ebc3f526
2020-11-08 16:19:01 +01:00
Norbert Szulc caabcaba01 app/matrix add branding to matrix.0x3c.pl
Change-Id: Ib78a2dae0ed177d670ab760892896306363ed3e6
2020-11-08 16:16:32 +01:00
Norbert Szulc 1ef5600dcb app/matrix: make riotConfig parametrizable
Change-Id: Ib616ec7fbf097ab1e17a254c5c16202bb9151585
2020-11-08 16:13:58 +01:00