Commit Graph

637 Commits

Author SHA1 Message Date
MTRNord 96e331b3e9 Update matrix-appservice fork 2023-09-02 18:39:20 +02:00
MTRNord 847e9038b1 Update matrix-appservice fork 2023-09-02 18:34:00 +02:00
MTRNord 0f95a92168 Update matrix-appservice fork 2023-09-02 18:24:13 +02:00
MTRNord e513b00785 Update matrix-appservice fork 2023-09-02 18:16:22 +02:00
MTRNord d410af5e4d Update matrix-appservice fork 2023-09-02 18:11:28 +02:00
MTRNord ce03a84d73 Ensure we install git in the docker 2023-09-02 17:05:00 +02:00
MTRNord 762938a8ba Tracing for the appservice handler 2023-09-02 17:01:06 +02:00
MTRNord 7333232747 Do not preprend constructor name. This seems to mess 2023-09-02 16:24:15 +02:00
MTRNord 748e0a5399 Add missing spread operators 2023-09-02 16:13:58 +02:00
MTRNord df959ad720 Move to async/sync aware ts5 decorators 2023-09-02 16:05:52 +02:00
MTRNord d5e25505a2 Provision draupnirs 2023-09-01 21:33:18 +02:00
MTRNord be1d3b8990 Update matrix-appservice-bridge 2023-09-01 19:19:14 +02:00
MTRNord b36fd2d0fc Small fixes 2023-09-01 19:17:37 +02:00
MTRNord 4bd1990507 Cleanup traces further 2023-09-01 19:15:31 +02:00
MTRNord 8c7661e968 Cleanup traces further 2023-09-01 19:15:29 +02:00
MTRNord 4c4663ceae meow 2023-09-01 19:15:27 +02:00
MTRNord 3c1953dcb6 Disable metrics 2023-09-01 19:15:23 +02:00
MTRNord 77a7a9da45 Try metrics again 2023-09-01 19:14:27 +02:00
MTRNord 4ba1adc1f4 Remove unused import 2023-09-01 19:14:09 +02:00
MTRNord fff8db9fc7 Remove package-lock.json 2023-09-01 19:14:05 +02:00
MTRNord 611856ecdc Reduce trace noise 2023-09-01 19:13:58 +02:00
MTRNord fffd8563e3 Add opentelemetry tracing support
Add logging to tracing

Improve logging

Fix order of imports

Add missing pieces of tracing code

Add more logging

Try nested spans

Expand traces using an decorator

Improve quality of spans

Add missing tracing decorations

Filter metrics and healthz

Add more traces

Fix return type error
2023-09-01 19:13:55 +02:00
MTRNord 40213a0794 startup as draupnir 2023-09-01 19:12:08 +02:00
MTRNord ac2606e39f track instances in prom
track instances in prom

Add disabled state

try to create the metrics earlier

ensure that creating the metrics earlier is safe

Make it a little smarter

Fix typo

Fix typo
2023-09-01 19:12:05 +02:00
MTRNord fa5914bb9a Fix version 2023-09-01 19:12:03 +02:00
MTRNord c2683d61b2 Activate bridge prometheus 2023-09-01 19:12:01 +02:00
MTRNord 35115bb461 Add missing parameter descriptions 2023-09-01 19:11:58 +02:00
MTRNord 732b996c5a Make sure to use a root thingy 2023-09-01 19:11:56 +02:00
MTRNord 4c2a0c59ed Fix order of operations 2023-09-01 19:11:53 +02:00
MTRNord c44f6c591a Try to fix help rendering 2023-09-01 19:11:50 +02:00
MTRNord 3eb48388d5 Add healthz endpoint 2023-09-01 19:11:48 +02:00
MTRNord a0d92dcbc3 Use newer Help interface for appservice help
Fix import crash
2023-09-01 19:11:43 +02:00
Aminda Suomalainen e3925afc3b .editorconfig: fix invalid value s/off/unset/g (#86)
* .editorconfig: s/off/unset/g

This was breaking prettier and neovim as apparently off was invalid value

* .editorconfig: merge the two unset rule blocks
2023-09-01 11:28:29 +01:00
Gnuxie 0a7305b8fa A simple script for testing room membership query. (#81)
https://github.com/Gnuxie/Draupnir/issues/80
2023-08-29 13:56:33 +01:00
Aminda Suomalainen e4c02b96cd Add pre-commit configuration (#34)
* add .pre-commit-config.yaml

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig: decrease indent size for text

* .pre-commit-config.yaml: remove prettier

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig consistency.

* .pre-commit-config.yaml: restore sample hooks

* .editorconfig: disable indent_size for LICENSE & NOTICE

* pre-commit run --all-files

* tsconfig.json: tabs to spaces

* .pre-commit-config.yaml: update editorconfig-checker to 2.7.2

* .editorconfig: disable indent_size for markdown

* mjolnir-entrypoint.sh: retab

* .editorconfig: also exclude json from indent checking

* test/nginx.conf: retab

* test/integration/commands/redactCommandTest.ts: remove leading space

* retab or remove leading whitespaces for the rest of the files

* src/appservice/datastore.ts remove newlines

* test/integration/commands/roomTest.ts: remove leading space.

---------

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
Co-authored-by: gnuxie <Gnuxie@protonmail.com>
2023-08-29 13:38:00 +01:00
Gnuxie 56ddbdf96c Failure to ban a single member should not stop other bans being applied. (#79)
Fixes https://github.com/Gnuxie/Draupnir/issues/74.
2023-08-28 16:38:24 +01:00
Catalan Lover 53d79f5ded D4A: Give the requesting user admin in management room at creation. (#73)
The requesting user would previously be unable to manage the room in order to change the room name etc.

Co-authored-by: gnuxie <Gnuxie@protonmail.com>
2023-08-28 12:38:48 +01:00
Marcel 39e2b50c13 Add a missing dash to the docker command in the appservice documentation (#61) 2023-08-22 17:40:37 +01:00
Marcel 1f9d37564b Update to typescript 5 (#68) 2023-08-19 14:46:23 +01:00
dependabot[bot] e64aded3bd Bump word-wrap from 1.2.3 to 1.2.4 (#67)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-20 12:39:04 +01:00
dependabot[bot] 18f5f59a4e Bump semver from 5.7.1 to 5.7.2 (#66)
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 18:03:44 +01:00
gnuxie df432121de v1.84.0 v1.84.0 2023-07-04 17:31:46 +01:00
Gnuxie c11fb6ef06 Fix an issue where protected rooms could not be removed. (#65)
This was introduced in https://github.com/Gnuxie/Draupnir/pull/54/ (and therefore 1.83.0). Essentially we forgot to remove the room from the protected rooms set, when the remove command was used.

Ontop of this something to note is that during testing it is clear that the protected rooms set is loaded when configuring mjolnir, not when starting it. This is problematic as it means setup code in `fixtures.ts` does not actually wipe the protected rooms set.
2023-07-04 17:19:03 +01:00
Marcel 8894e29606 Multiarch CI fixes (#59)
* Also build arm images

* Increase docker timeout for qemu and install missing parts in CI for multiplatform building
2023-06-12 23:34:38 +01:00
Marcel b3f0c6e222 Also build arm images (#58)
Based on https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
https://github.com/docker/build-push-action and https://docs.docker.com/engine/reference/commandline/buildx_build/#platform
2023-06-12 15:09:00 +01:00
Gnuxie ea3947df9f Typo unwatching lists. (#55)
This is actually really bad.
For multiple reasons.
The best way for this to be avoided is to drop everything
and reload it when the account data for watched lists is changed.
Then there isn't a situation where you have to inform anyone
about a change in what lists are being watched.
2023-06-08 17:03:42 +01:00
Gnuxie bed8f72686 v1.83.0 v1.83.0 2023-05-31 17:44:11 +01:00
Gnuxie 17dedbd531 Merge pull request #54 from Gnuxie/gnuxie/rooms-command-upgrade
Use interface manager for "rooms", "rooms add" and "rooms remove" commands.
2023-05-30 11:28:22 +01:00
gnuxie fe349d42fb Clear up the "rooms add" error message when a room cannot be joined. 2023-05-30 11:14:49 +01:00
gnuxie e4689b1287 basic conversion of rooms commands to interface adaptor 2023-05-30 11:14:49 +01:00