Commit Graph

211 Commits

Author SHA1 Message Date
Travis Ralston
3831f2f7bc Ensure the upstream is online before asking for terms 2019-08-03 12:40:43 -06:00
Travis Ralston
a4c6720840 delint 2019-07-23 00:27:03 -06:00
Travis Ralston
e006851465 Make terms of service endpoint match MSC 2019-07-22 18:09:25 -06:00
Travis Ralston
2e19cec215 Format app code 2019-07-10 22:11:55 -06:00
Travis Ralston
c5108da67b Rename MSC things to be Matrix things 2019-07-10 22:10:10 -06:00
Travis Ralston
8f537ee078 Handle upstream policies too 2019-07-10 22:04:08 -06:00
Travis Ralston
c96366b647 Logout upstream as well (best effort) 2019-07-10 21:26:22 -06:00
Travis Ralston
18ee47fa49 Use the right scalar route for the request 2019-07-10 21:16:04 -06:00
Travis Ralston
cf212d8f4e Support terms handling on legacy scalar route 2019-07-10 20:59:39 -06:00
Travis Ralston
3b4aa7b0ba Use MSCSecurity for all auth 2019-07-10 19:30:06 -06:00
Travis Ralston
7d54948d7e Support legacy auth on account endpoints 2019-07-10 18:40:30 -06:00
Travis Ralston
852e737e33 Use a cache for published policies 2019-07-10 18:34:21 -06:00
Travis Ralston
ae42d673d7 Disable admin routes from policy checks 2019-07-10 18:12:23 -06:00
Travis Ralston
147d8a18ae Simple implementation of listing and accepting policies 2019-07-06 16:41:07 -06:00
Travis Ralston
6c6ae5c5ed Render terms of service as a widget 2019-07-06 15:40:32 -06:00
Travis Ralston
1c8b523114 Support editing and publishing terms 2019-07-06 15:22:47 -06:00
Travis Ralston
a11e57db31 Early terms management UI 2019-06-30 23:05:33 -06:00
Travis Ralston
d9637b1d3d Very simple terms of service auth requirement 2019-06-30 19:38:24 -06:00
Travis Ralston
fbc1173529 Support access token auth in the query string 2019-06-30 19:13:01 -06:00
Travis Ralston
293097f6fb Use new etherpad domain 2019-06-29 00:51:26 -06:00
Travis Ralston
8882f4c8f6 Update Sequelize
Fixes https://github.com/turt2live/matrix-dimension/issues/287
2019-06-28 23:51:43 -06:00
Travis Ralston
57d585d68a Implement MSC1961
See https://github.com/matrix-org/matrix-doc/pull/1961
2019-06-27 21:46:00 -06:00
Travis Ralston
d021974a22 Post JSON correctly to homeserver
Fixes https://github.com/turt2live/matrix-dimension/issues/284
2019-06-27 18:36:28 -06:00
Travis Ralston
74cbe160db Validate certificates as per Matrix 1.0
Fixes https://github.com/turt2live/matrix-dimension/issues/238

See https://matrix.org/blog/2019/05/24/final-countdown-to-1-0
2019-06-02 15:27:15 -06:00
Travis Ralston
be66dd04f9 Handle upstream tokens more safely 2019-04-17 23:34:14 -06:00
Travis Ralston
77d652d6c0 Handle offline integrations better 2019-04-14 16:39:44 -06:00
Travis Ralston
d36436eca4 Don't fail to register for tokens when upstreams are offline 2019-04-13 17:25:30 -06:00
Travis Ralston
087d15eeaa Filter out bridges which aren't configured 2019-04-13 17:19:55 -06:00
Travis Ralston
266cf8c0d8 Don't crash if bridges are offline
Fixes https://github.com/turt2live/matrix-dimension/issues/131
2019-04-13 17:06:43 -06:00
Travis Ralston
8cd5067e73 Assume upstream tokens are valid if they are offline 2019-04-13 16:58:20 -06:00
Travis Ralston
52f3c72db6 Add a bit of safety around the IRC bridge and other integrations 2019-04-13 16:31:02 -06:00
Travis Ralston
4712bdc9b7 Reduce chance of sticker duplication
Fixes https://github.com/turt2live/matrix-dimension/issues/264
2019-03-29 18:47:10 -06:00
Travis Ralston
0c0429df46 Merge branch 'travis/token-security' 2019-03-27 08:30:12 -06:00
Travis Ralston
bb874b1fa0 Add an integration manager test widget
Fixes https://github.com/turt2live/matrix-dimension/issues/244
2019-03-24 14:37:51 -06:00
Travis Ralston
f894af79b6 Contain Telegram stickers in a 512x512 box
Fixes https://github.com/turt2live/matrix-dimension/issues/251
2019-03-23 19:36:01 -06:00
Travis Ralston
e2f27ad3a3 Read author and license information for sticker packs 2019-03-23 18:42:09 -06:00
Travis Ralston
0405d76ebf Add some documentation for custom stickers and support disabling them 2019-03-20 23:53:10 -06:00
Travis Ralston
147ef2104e Support custom stickerpacks 2019-03-20 22:32:29 -06:00
Travis Ralston
968fb18a57 Verify the utility user belongs to a dedicated user
Fixes https://github.com/turt2live/matrix-dimension/issues/252
2019-03-20 21:24:16 -06:00
Travis Ralston
2ff5fa404c
Scale, not crop, thumbnails for Telegram stickers
Fixes https://github.com/turt2live/matrix-dimension/issues/250
2019-03-17 14:25:35 -06:00
Travis Ralston
dce6bcde56 Require ?v=1.1 on Scalar /register and /account
For upstream compatibility and security.
2019-03-15 22:05:35 -06:00
Travis Ralston
0287e472f8 Add a button to log everyone out 2019-03-15 22:00:38 -06:00
Travis Ralston
aac94bc757 Appease the linter 2019-02-07 21:26:09 -07:00
Travis Ralston
38ea8d30db Support MSC1708 (and co.) and prepare for MSC1711
Fixes https://github.com/turt2live/matrix-dimension/issues/234

Later support for MSC1711 will be done in https://github.com/turt2live/matrix-dimension/issues/238
2019-02-07 21:18:58 -07:00
Travis Ralston
363003199a Add an option to force a default jitsi domain on the widget
Fixes https://github.com/turt2live/matrix-dimension/issues/231
2018-12-22 19:30:25 -07:00
Travis Ralston
32a639ef95 Support importing sticker packs from Telegram 2018-12-22 17:37:31 -07:00
Travis Ralston
99e0647cd7 Self-service Slack provisioning
Fixes https://github.com/turt2live/matrix-dimension/issues/5
Fixes https://github.com/turt2live/matrix-dimension/issues/8
2018-10-24 22:51:04 -06:00
Travis Ralston
02e58e7a8d Admin section for Slack bridges 2018-10-24 20:56:38 -06:00
Travis Ralston
83ad75984f Backend structures for Slack bridging
Note that this doesn't include webhook bridging. For now Dimension is going to support event bridging as it is generally recommended. Rooms previously bridged with webhooks will be able to unbridge.
2018-10-24 20:29:39 -06:00
Travis Ralston
97cd39ac4f Appease the linter 2018-10-22 22:38:35 -06:00
Travis Ralston
82343da942 Support simple custom bots
Fixes https://github.com/turt2live/matrix-dimension/issues/165
2018-10-22 22:10:28 -06:00
Travis Ralston
52708afa7c Add Spotify widget
Fixes https://github.com/turt2live/matrix-dimension/issues/133
2018-10-21 17:00:10 -06:00
Travis Ralston
ea834d826a Add TradingView widget
Fixes https://github.com/turt2live/matrix-dimension/issues/132
2018-10-21 16:26:57 -06:00
Travis Ralston
9bdba2d474 Add Grafana widget
Fixes https://github.com/turt2live/matrix-dimension/issues/86
2018-10-21 15:17:21 -06:00
Travis Ralston
edbbd3b8c0 Add the frontend for Gitter bridging
Fixes https://github.com/turt2live/matrix-dimension/issues/4
Fixes https://github.com/turt2live/matrix-dimension/issues/7
2018-10-21 14:20:37 -06:00
Travis Ralston
2e844a707f Add admin section for Gitter bridge configuration 2018-10-21 13:22:55 -06:00
Travis Ralston
5d8857381a Add backend support for self-hosted and matrix.org gitter bridges 2018-10-21 13:00:58 -06:00
Travis Ralston
af095cd801 Clear the correct cache for webhooks 2018-10-21 13:00:09 -06:00
Travis Ralston
509e985061 Linting 2018-10-20 18:59:26 -06:00
Travis Ralston
b8a01cc848 Support the webhooks bridge in private rooms 2018-10-20 18:57:54 -06:00
Travis Ralston
3823788cc2 Add the frontend for self-service of webhooks 2018-10-20 18:33:01 -06:00
Travis Ralston
7b5285cd57 Add the admin section for the webhooks bridge 2018-10-20 14:07:30 -06:00
Travis Ralston
3dad15de72 Fix bad merge 2018-10-20 13:51:05 -06:00
Travis Ralston
2416718065 Merge remote-tracking branch 'origin/master' into travis/webhooks2 2018-10-20 13:19:45 -06:00
Travis Ralston
93b532de44 Add backend support for the webhooks bridge 2018-10-19 21:13:57 -06:00
Travis Ralston
5f0e9fec51 Fix rooms claiming they are bridged when they aren't 2018-10-19 19:34:11 -06:00
Travis Ralston
83c06c8591 Warn the user when they try to bridge chats that are already bridged 2018-10-17 21:37:29 -06:00
Travis Ralston
c0936745c0 Frontend interface for basic bridging and unbridging of chats
Requires https://github.com/tulir/mautrix-telegram/pull/235

Puppeting is scheduled to be handled in https://github.com/turt2live/matrix-dimension/issues/214

The TODO comments about asking for unbridge/permission denied will be handled in a later commit.
2018-10-17 21:09:19 -06:00
Travis Ralston
242ad3bf3a Admin interface for managing Telegram bridges
Currently only one bridge is supported at a time, however in the future we may wish to load balance between bridges or something.
2018-09-16 02:26:10 -06:00
Travis Ralston
c5247ddc0b Support appservice r0 spec 2018-09-16 02:25:17 -06:00
Travis Ralston
edbeeb4e85 Security: Ensure the OpenID subject matches the homeserver 2018-09-08 12:51:08 -06:00
Travis Ralston
2eaa78c1c7 Up the default request limit size
For larger transactions
2018-08-13 20:44:57 -06:00
Travis Ralston
28b3670696 Override the database path in Docker containers 2018-07-21 09:20:47 -06:00
Travis Ralston
8f125f3ba6 Add the official Loading Artist sticker pack 2018-06-19 08:32:40 -06:00
Travis Ralston
ad3c0d7f11 Appease the linter 2018-05-13 22:41:19 -06:00
Travis Ralston
8fa56de2bb Reset the user's cached sticker packs when they (de)select packs
Otherwise we'll display stale packs and the user won't see updates. Part of #156
2018-05-13 22:35:54 -06:00
Travis Ralston
7a0af05ac4 Sticker pack selection (without widget)
This is the UI where the user can pick which stickers they want. This does not add the widget yet though.

Helps towards #156
2018-05-12 23:51:31 -06:00
Travis Ralston
e8274c9d87 Sticker pack administration
The first step towards #156
2018-05-12 21:55:02 -06:00
Travis Ralston
d6b4645cb9 Catch errors from the IRC bridge being down
Fixes #184
2018-05-11 17:48:57 -06:00
Travis Ralston
8f98716217 Use the correct hostname when calling federated servers
Fixes #175
2018-05-06 12:21:40 -06:00
Travis Ralston
39365fd00e Don't crash if widgets are not embeddable 2018-04-01 11:23:55 -06:00
Travis Ralston
981e026f8d Static content is defined in the configure() method 2018-04-01 11:14:59 -06:00
Travis Ralston
43460eef7f Validate that we have a rooms array when modifying feeds 2018-03-31 22:21:06 -06:00
Travis Ralston
a1210761eb Clear the token cache when creating upstreams
Otherwise we'll flood ourselves with token errors in the backend
2018-03-31 22:10:13 -06:00
Travis Ralston
e490007cec Update the profile for self-hosted go-neb instances
Fixes #166
2018-03-31 22:01:23 -06:00
Travis Ralston
766700ffd9 Fix a potential error related to some DNS records 2018-03-31 18:11:34 -06:00
Travis Ralston
84f3977fd4 Serve static content correctly 2018-03-31 18:11:15 -06:00
Travis Ralston
a6dae219a5 Add the missing "embed-ability" api for widgets 2018-03-31 16:38:55 -06:00
Travis Ralston
a73fb53dcb Update documentation and remove extra files 2018-03-31 16:07:19 -06:00
Travis Ralston
9a8041ea38 Self-service removal of channel links 2018-03-31 15:48:20 -06:00
Travis Ralston
f33f7e5716 Self-service requests to bridge IRC channels 2018-03-31 14:37:36 -06:00
Travis Ralston
aa8ec0ed58 API and UI for toggling IRC networks 2018-03-31 11:26:00 -06:00
Travis Ralston
61ca805b19 Initial admin APIs for managing IRC bridges
Missing functionality:
* Toggle networks
* Add self-hosted
2018-03-30 23:12:31 -06:00
Travis Ralston
76931819af Add the shell for configuring IRC bridges 2018-03-30 19:22:15 -06:00
Travis Ralston
bd03db7674 Parse upstream travis-ci configurations correctly 2018-03-30 16:51:10 -06:00
Travis Ralston
ff088e3e49 Add a whole lot more logging to the backend 2018-03-30 16:34:39 -06:00
Travis Ralston
39a71429f3 Add documentation for the backend APIs 2018-03-30 15:17:39 -06:00
Travis Ralston
4365cb0753 Support Travis CI completely
Webhooks are generated eagerly but have lazily set targets so that we can give the user a webhook URL to set in their config. go-neb (upstream & standalone) doesn't give a webhook URL until after the repositories are configured.

Fixes #16
2018-03-30 14:59:25 -06:00
Travis Ralston
6f238fc13f Appease the linter
by actually making the code better
2018-03-29 20:56:08 -06:00
Travis Ralston
3a8167a57a Support saving of travis-ci configuration
For both upstream and self-hosted. What's left is:
* Webhooks (magic proxy through Dimension)
* More instructions on the frontend.
2018-03-29 20:51:49 -06:00