1
0
Fork 0
Commit Graph

171 Commits (924d0035fdb64b7652f534d05ee67867b764c4d3)

Author SHA1 Message Date
radex 924d0035fd *: Fix code.hackerspace.pl references
Change-Id: I677cbf743c524bf43cd012579642c34c846f4bcc
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1722
Reviewed-by: informatic <informatic@hackerspace.pl>
2023-10-11 21:01:13 +00:00
radex 0776a79df3 cluster/kube: Centralize namespace admin RoleBindings
Change-Id: Iec3505b2f4a1647e67cf47cf189c77534b5be6ac
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1696
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-10-10 17:34:22 +00:00
q3k 9ae11fdabb matrix: move appservice-irc off blade
Change-Id: I9edbdedc6c2ec7aea30ee7fc5ad83deddb569b00
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1695
Reviewed-by: informatic <informatic@hackerspace.pl>
2023-10-09 22:46:27 +00:00
informatic f549d43b40 matrix: add informatic & q3k as admins
Change-Id: I7c70e5c0c31aa9bae8b5cdc4b4ed5331223913c2
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1682
Reviewed-by: informatic <informatic@hackerspace.pl>
2023-10-08 21:16:39 +00:00
palid 62b83e04de app: +inventory (spejstore)
Co-authored-by: Radek Pietruszewski <radexpl@gmail.com>
Change-Id: If334f59ae8fe13c6e9362c080b22d53ced49f3ea
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1572
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-22 22:51:48 +00:00
q3k 97b5cd7b58 go: re-do the entire thing
This is a mega-change, but attempting to split this up further is
probably not worth the effort.

Summary:

1. Bump up bazel, rules_go, and others.
2. Switch to new go target naming (bye bye go_default_library)
3. Move go deps to go.mod/go.sum, use make gazelle generate from that
4. Bump up Python deps a bit

And also whatever was required to actually get things to work - loads of
small useless changes.

Tested to work on NixOS and Ubuntu 20.04:

   $ bazel build //...
   $ bazel test //...

Change-Id: I8364bdaa1406b9ae4d0385a6b607f3e7989f98a9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1583
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-22 21:50:19 +00:00
implr f5b1a215f4 app/mailman-web: create
There's a lot of ugly hacks here, but this has been the state of prod
for months now, so we should reflect that.
Also, this bumps a bunch of workspace deps.

Change-Id: I744e0d3aff27036cfed73416cf442c7d62444a8b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1473
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-09-10 21:11:37 +00:00
ar 1ad72123b6 mastodon: bump to 4.0.6
Fixes after the security bugfix last week.
Not yet rolled out to qa/prod.

Change-Id: I52de0dc1d082fd1c6269025b1f41d87c02c67113
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1536
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-07-23 11:49:09 +00:00
q3k c69ccf8cee mastodon: bump to 4.0.5
Rolled out to prod and qa.

Change-Id: I0b66ccda2f5ffad812a9654fd7edffe239e7e576
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1524
Reviewed-by: ar <ar@hackerspace.pl>
2023-07-09 13:02:12 +00:00
informatic 7e841065b0 *: post-certmanager manifests update
Change-Id: I745c850268c31777c5722a9833c8152a55615aed
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1512
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-06-19 21:20:44 +00:00
informatic 926252c871 app/matrix: synapse v1.79.0 update
Change-Id: I38a47615e7a2a212fe4d06c2e404a2ec1274a977
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1507
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-05-25 22:20:52 +00:00
informatic 05f20b206f matrix.hackerspace.pl: disable appservice workers
Change-Id: I12a971fc967f8a45b9b0c16ddb99b9955667da18
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1506
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-05-25 22:20:52 +00:00
informatic 6bd5d20073 app/matrix: use paths extracted directly from synapse docs for easier upgrades
Change-Id: Ife95ca0b6572074e225a0ba24a3e11d23b2d78a9
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1505
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-05-25 22:20:52 +00:00
informatic 1e6ae55a94 app/matrix: bump element-web
Change-Id: I5a10fbaa055dce3759a3e0e559b731b279931abe
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1503
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-05-25 22:20:52 +00:00
informatic ad3cb5c2e0 app/matrix: adjust media repo config to one deployed in production
Change-Id: Iac32918a1051a676377e5c3cc3c4592959a48e19
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1502
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-05-25 22:20:52 +00:00
q3k 6f0d852568 radio: allow setting master username/password
Change-Id: I30a99fbbf11da7dded48504b1689ef6e290e73fa
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1494
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-04-01 11:26:11 +00:00
q3k f262868753 matrix.hackerspace.pl: use external postgres
Change-Id: Ie0bb76a4200f905bfd0c065cde81283271f8397a
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1483
Reviewed-by: informatic <informatic@hackerspace.pl>
2023-03-28 20:33:26 +00:00
implr 45394bf3b0 app/matrix: enable wal=logical for postgres, add tmp mount
This is quite hacky, but we intend to remove that postgres soon anyway.
The changes to synapse's resource limits are to reflect current state of
prod.

Change-Id: Ic7beaa3e7ee378c0e10ba24f9a5a3aee67c2ccf2
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1468
Reviewed-by: q3k <q3k@hackerspace.pl>
2023-03-01 20:38:24 +00:00
implr e3dd96adb0 app/mastodon: complete migration to versioned postgres
Change-Id: Ib09a42e60cc3bf7a0388b5199a22df6a1271b5a3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1424
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-19 12:38:55 +00:00
implr 65b30af78e kube/postgres: add versioned library
also use in mastodon-qa

Change-Id: I628293fcfe9081c350087572ecda9e51ee18238f
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1422
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-11-18 14:52:05 +00:00
q3k 16842119d1 app/mastodon: deploy
Change-Id: I88c104d1a8d5627355b01a8c48dc235635fca5ed
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1421
Reviewed-by: implr <implr@hackerspace.pl>
2022-11-18 12:15:22 +00:00
informatic dc1878c3cc app/matrix: bump element-web to v1.11.8
Change-Id: I667d694f39ff75ec98fb68620037c06b1475ae9e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1392
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic d3c14e5cbc app/matrix: bump appservice-irc to v0.35.1
Change-Id: Ie884f75dd9c068363f160598d23e21de49f8a95d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1393
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic 654dd80e03 app/matrix: bump matrix-media-repo to v1.2.12
Change-Id: I4192c6a54537c10724c63c373083eca5bd0c298e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1391
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic a8bb615464 app/matrix: adjust resources configuration for prod changes
Change-Id: Ib81847bd65e254cbd650d60456185e681e2b1e88
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1390
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic 3f0bc2083b app/matrix: bump appservice-irc to v0.35.0
Change-Id: Ie1b7c014e46fc1e06e434ad9394cf591248c92cb
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1389
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic 690ed45f66 app/matrix: add coturn deployment
TURN server is required for proper cross-NAT voice/video calls via
Matrix.

Change-Id: I8182292dd8ef30690ae4b9487c22aedcff098710
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1387
Reviewed-by: informatic <informatic@hackerspace.pl>
2022-09-28 23:01:35 +00:00
informatic 1da87e5209 app/matrix: bump appservice-irc
Change-Id: I70d856125754b3ffab556c7f264616471bfdd47f
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1306
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-06-19 08:47:09 +00:00
informatic 7d0e56cba7 app/matrix: remove stream writer endpoints from generic worker
Change-Id: I93dc263f00becceb1428da99161b883a23a1f027
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1303
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-05-01 08:17:57 +00:00
informatic 5ff2ccf5df app/matrix: force non-id_token flow to fix SSO
Presence of id_token in IDP token response causes synapse to demand
jwks_uri to be present in config/metadata. (login flow failing with
<<Missing "jwks_uri" in metadata>> message)
This behaviour was introduced somewhere between 1.42.0 and 1.56.0.

This is currently not set up correctly on sso.hackerspace.pl (we hand
out hs256 tokens instead of proper rsa ones) so this change will make it
fall back to non-oidc/plain oauth2 flow.

Change-Id: I4ff8aa175b4f0bbdcb3ee993b7cbd4545eac561a
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1302
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-05-01 08:17:57 +00:00
mlen 8bd24f4a96 Enable Matrix message thread support.
This change enables experimental message threading support and upgrades
Synapse and Element to their latest stable versions.

Change-Id: I68334982168ffdac98a1602a157be727b04e58d6
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1286
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-05-01 08:17:57 +00:00
informatic 529e181497 app/matrix: appservice workers
This change extracts appservice workers (deployed and tested) and prepares for
federation sender workers extraction (still partially broken)

Change-Id: I2d63fe44538ea2a7c5fd492f6ce119bc35a9eb03
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1101
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-05-01 08:17:57 +00:00
informatic 497870680e app/onlyoffice: bump to v7.0.0.132
Change-Id: I5c75d92126352bd185935125af04f51d4b91acc3
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1261
Reviewed-by: q3k <q3k@hackerspace.pl>
2022-04-27 00:18:05 +00:00
informatic 77af94df2f app/matrix: add healthchecks, increase generic workers
Change-Id: I1605919d52c69044963082bbf094ff2ece902471
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1147
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-16 21:47:39 +00:00
informatic f56db19385 app/matrix: bump synapse do 1.42.0, enable public room browsing
Change-Id: Idf5a2e7bdcff89c0093908b17afc455e2768694b
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1146
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-16 21:47:39 +00:00
informatic cf3d8481fd app/matrix: upgrade element-web to v1.8.5
riot-web containers are no longer published.

We shall also readjust our internal naming for matrix web client from
riot to something more generic at some point.

Change-Id: Ice85af3ae29b587c13a3ba27d13c9bd655d7fcfd
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1145
Reviewed-by: informatic <informatic@hackerspace.pl>
2021-09-16 18:57:08 +00:00
informatic 21c8cd6833 app/matrix/matrix.hackerspace.pl: finish matrix-media-repo rollout
Change-Id: I7acc34c82c8ffe1334bb9201b993a410eb517b63
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1144
Reviewed-by: informatic <informatic@hackerspace.pl>
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-16 18:57:08 +00:00
q3k ebe6075556 app/matrix: media repo proxy init
This implements media-repo-proxy, a lil' bit of Go to make our
infrastructure work with matrix-media-repo's concept of Host headers.

For some reason, MMR really wants Host: hackerspace.pl instead of Host:
matrix.hackerspace.pl. We'd fix that in their code, but with no tests
and with complex config reload logic it looks very daunting. We'd just
fix that in our Ingress, but that's not easy (no per-rule host
overrides).

So, we commit a tiny little itty bitty war crime and implement a piece
of Go code that serves as a rewriter for this.

This works, tested on boston:

    $ curl -H "Host: matrix.hackerspace.pl" 10.10.12.46:8080/_matrix/media/r0/download/hackerspace.pl/EwVBulPgCWDWNGMKjcOKGGbk | file -
    /dev/stdin: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 650x300, components 3

(this address is media-repo.matrix.svc.k0.hswaw.net)

But hey, at least it has tests.

Change-Id: Ib6af1988fe8e112c9f3a5577506b18b48d80af62
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1143
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-16 18:57:08 +00:00
informatic 8b9c8f9a03 app/matrix/matrix.hackerspace.pl: deploy matrix-media-repo
Change-Id: If80335595190cf2e22cc2ef5d5f305b70e09d5d7
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1142
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-16 18:57:08 +00:00
informatic 122d5e5864 app/matrix: matrix-media-repo RGW-based media storage
Change-Id: I459bd78eee52fd349a16f31a48346d3258ef50a4
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1081
Reviewed-by: q3k <q3k@hackerspace.pl>
2021-09-15 21:12:34 +00:00
informatic 2e191eae7b app/matrix/matrix.hackerspace.pl: pin synapse media-worker container version
We keep this pinned to older version to prevent unneeded media container
restarts.

Change-Id: I221237d3f88720779572fd972e8ada65e829864d
2021-09-14 22:19:44 +02:00
informatic 0f26c4afbc app/matrix: appservice-irc v0.29.0 upgrade
Change-Id: I5b09b3e861442c0b8579abdbeff8983ab1ec0208
2021-09-14 20:00:42 +02:00
informatic 5cc64bf60e Merge "app/matrix: bump synapse to 1.37.1" 2021-09-14 17:51:07 +00:00
mlen dd5090d0a8 app/matrix: bump appservice-irc to 0.27.0
Change-Id: I93ba1c5a6d31f5cce0e801b7a0cf44d02a6a37f8
2021-07-18 18:10:11 +00:00
Norbert Szulc a5e8c33c24 app/matrix: bump synapse to 1.37.1
Change-Id: Ia75dfc0688b97f5252c98ee79d3821a758b93409
2021-07-08 15:10:43 +02:00
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