Commit graph

51 commits

Author SHA1 Message Date
c5de486dba Handle enacl exceptions during signature checks
Fix usage of undecoded signing key during server authentication
Fix several bugs in profile query endpoint
2021-08-13 17:36:34 +02:00
ff3dd38369 Verify signatures of signing keys 2021-08-13 13:45:10 +02:00
fb59fee754 Add schemas and functions to query signing keys from servers 2021-08-13 00:45:07 +02:00
e6b3c4752d Fix server signature verification 2021-08-10 18:02:53 +02:00
33b64d80f5 Add code for verifying homeservers' signatures on API requests 2021-08-08 19:20:10 +02:00
f50f08061c Restructure code base 2021-08-06 23:14:27 +02:00
1e53776a8d Add federation API
Add signing keys fed API request
2021-08-06 22:03:34 +02:00
e0df546c6f Merge branch 'master' of github.com:pizzapim/matrix_server 2021-08-06 15:52:26 +02:00
ef9ae82e75 Add endpoint to get server publishing keys 2021-08-06 15:52:03 +02:00
11c87a7089
Fix typo in readme 2021-08-05 11:32:37 +00:00
38af22fea6 Add function to sign event
Add signing server to perform signing
Add enacl library to perform ed25519 crypto
2021-08-05 13:30:46 +02:00
0c40c26bca Add function to calculate content hash of an event
Add function to redact an event
2021-08-04 15:28:27 +02:00
1a5b66a3d7 Add alias creation endpoint 2021-07-30 15:56:24 +02:00
f033b88121 Fix create room API endpoint 2021-07-29 22:06:02 +02:00
9e02d5b95c Refactor room server
Serialize and save room state in database
Get room state from database when creating a room server
2021-07-29 16:59:40 +02:00
65368dc2d4 Extract authorization functions from state resolution
Add function to get room server's pid
2021-07-28 17:23:48 +02:00
ee4c41ce77 Implement most authorization rules for state resolution 2021-07-27 17:19:08 +02:00
dc12575923 Save preset events when creating room 2021-07-27 12:55:36 +02:00
3c93ddd768 Save name and topic events when creating room 2021-07-26 23:42:35 +02:00
7a74440433 Merge branch 'master' of github.com:pizzapim/matrix_server 2021-07-26 19:48:08 +02:00
e284b3e21a Add several checks before processing an event for state resolution 2021-07-26 19:47:38 +02:00
074ceb4dac
Update README.md 2021-07-26 10:03:13 +00:00
857aabd007 Add creator join event when creating room
Fix event set format bug in state resolution
2021-07-26 11:50:18 +02:00
d3c16dd7aa Save state set in database 2021-07-25 17:39:22 +02:00
8a5bba72fb Add forward extremities to rooms 2021-07-25 14:57:52 +02:00
937204b73a Map from state pair to event struct in state sets 2021-07-24 22:54:03 +02:00
bde8e012d0 Merge branch 'master' of github.com:pizzapim/matrix_server 2021-07-24 22:08:28 +02:00
dd7000e069 Add validation of auth events for events 2021-07-24 22:08:01 +02:00
82b90f22e6
Create LICENSE 2021-07-23 22:18:25 +00:00
b9156ed8b3 Resolve state when inserting create room event
Cleanup code
2021-07-24 00:13:12 +02:00
135df49d1b Improve database usage for state resolution 2021-07-23 22:50:09 +02:00
8a2ef0d079 Add working implementation of state resolution
Add some database seeds
2021-07-23 21:00:01 +02:00
2d34f78a0b WIP room server 2021-07-21 15:50:28 +02:00
8919fe3f14 Add more events during room creation 2021-07-17 18:54:49 +02:00
bbb134679c Fix compiler warnings 2021-07-17 17:44:17 +02:00
9be94751dc Add part of room creation endpoint 2021-07-17 17:38:20 +02:00
585de861d6 Add tests for login 2021-07-13 23:16:56 +02:00
6b9c9333b8 Add more register tests 2021-07-13 19:35:02 +02:00
096c99df92 Add start of controller testing 2021-07-13 17:08:07 +02:00
598af7a884 Add endpoint for room creation 2021-07-10 23:16:00 +02:00
80c8d3a66b Add state resolution function 2021-07-05 16:12:44 +02:00
d30e49f5a9 WIP state resolution 2021-07-03 12:30:57 +02:00
c7672a1bd9 Implement logout and logout/all endpoints 2021-06-27 22:24:54 +02:00
5fe604c5a2 Implement login endpoint 2021-06-27 17:28:28 +02:00
7c73c2c424 Create schemas for JSON API endpoints 2021-06-26 22:02:18 +02:00
1ec18163c1 Add plug to generate Matrix error 2021-06-26 01:14:09 +02:00
dac1a429b9 Implement access token authentication
Add whoami endpoint
2021-06-26 00:29:33 +02:00
d81a42bf8a Implement register endpoint for m.login.dummy login type
Add device table
2021-06-25 17:43:12 +02:00
183120b5a1 Add CORS headers
Implement versions endpoint
2021-06-23 01:49:47 +02:00
6e039524a4 Add migration and schema for accounts
Add account name availability endpoint
2021-06-22 23:04:37 +02:00