Commit graph

2441 commits

Author SHA1 Message Date
Adam Kelly
70e69f73cb Add manage invites page. 2020-06-03 17:38:30 +01:00
Adam Kelly
48f7fd34a7 Allow account registration with invites. 2020-06-01 22:34:45 +01:00
Adam Kelly
e0a009a0f1 Reject registrations if not allowed by settings. 2020-06-01 22:02:38 +01:00
Adam Kelly
fffffc1f32 Include db migration. 2020-06-01 21:26:47 +01:00
Adam Kelly
92a669ffaf Add instance settings.
Addresses: #58

Currently implemented:

* Instance name
* Instance description
* Code of conduct
* Allow registration

I decided to store this in the database so that settings can be easily
changed at runtime through the web interface. (This web interface does
not exist.)
2020-06-01 19:54:08 +01:00
Mouse Reeve
4d6ecafcf4
Merge pull request #181 from mouse-reeve/test-dirs
Move tests into directories
2020-05-29 13:50:22 -07:00
Mouse Reeve
55146190a6 Move tests into directories 2020-05-26 13:53:14 -07:00
Mouse Reeve
6b551709cc
Merge pull request #178 from cthulahoops/use_fetch_remote_user
Use fetch_remote_user and key refreshes.
2020-05-23 13:22:22 -07:00
Adam Kelly
9af410f921 Silently ignore unauthorised deletes.
Fixes: #166
2020-05-22 14:20:27 +01:00
Adam Kelly
ae7339928c Move signature checking logic out of shared_inbox. 2020-05-22 13:53:56 +01:00
Adam Kelly
5cfc9aa8de Fetch updated key if old key is invalid. 2020-05-22 13:49:56 +01:00
Adam Kelly
17734940ac Use get_or_create_remote_user from get_public_key. 2020-05-21 16:51:01 +01:00
Mouse Reeve
00bd8928b0
Merge pull request #176 from cthulahoops/digests
Verify http digest is correct if specified in signature.
2020-05-20 08:17:00 -07:00
Adam Kelly
b1516f18be Check that the date in the signature isn't too old. 2020-05-20 15:29:51 +01:00
Adam Kelly
52eeabc5bb Don't crash if nodeinfo is unavailable. 2020-05-19 21:58:30 +01:00
Adam Kelly
58630a053f Add digests for outgoing messages, and testing. 2020-05-19 21:33:47 +01:00
Adam Kelly
0c22019306 Verify http digest is correct if specified in signature. 2020-05-19 13:17:09 +01:00
Mouse Reeve
b54c6f7855
Merge pull request #174 from mouse-reeve/remote-user
Fixes remote user code
2020-05-18 18:29:37 -07:00
Mouse Reeve
373a378452 Verify that the remote user is who they say they 2020-05-18 18:26:00 -07:00
Mouse Reeve
1b48ca2f85 don't let id be none on remote_user 2020-05-18 09:53:31 -07:00
Mouse Reeve
a0507edcac Fixes remote user code
and tests!
2020-05-18 09:53:31 -07:00
Mouse Reeve
b203ae5b33
Merge pull request #175 from mouse-reeve/docker-nginx
Nginx config
2020-05-18 08:10:41 -07:00
Mouse Reeve
dbabeab470 Nginx config
Fixes #152 (hopefully???)
Fixes #130
Fixes #125
2020-05-17 20:28:46 -07:00
Mouse Reeve
845401bd62
Merge pull request #173 from cthulahoops/signature_refactor
Refactor signatures into own module.
2020-05-17 12:11:46 -07:00
Adam Kelly
12bedf3316 Allow arguments to fr-dev test 2020-05-15 11:22:27 +01:00
Adam Kelly
b212456d0d Move signature code into fedireads.signatures. 2020-05-15 11:18:41 +01:00
Mouse Reeve
3b16bb748c More books tests 2020-05-14 11:28:45 -07:00
Mouse Reeve
d92c9af9c3 Fixes absolute_id in self_connector test 2020-05-14 10:57:03 -07:00
Mouse Reeve
30350f035e
Merge pull request #171 from mouse-reeve/base-model-test
Unify absolute_id and remote_id fields in database
2020-05-14 10:33:04 -07:00
Mouse Reeve
c0fb3beb54
Merge pull request #169 from mouse-reeve/self-connector-test
Sort by rank in local db full text search
2020-05-14 10:32:43 -07:00
Mouse Reeve
3e02123a0d Updates for broadcast changes 2020-05-13 18:23:54 -07:00
Mouse Reeve
e76f96eb6c Unify concept of absolute_id and remote_id 2020-05-13 09:28:48 -07:00
Mouse Reeve
93493fc8e4 Test absolute id for model with user 2020-05-13 09:28:47 -07:00
Mouse Reeve
c401d537f2 Test remote ids 2020-05-13 09:28:47 -07:00
Mouse Reeve
bebb4d465b Tests base model absolute id generator 2020-05-13 09:28:47 -07:00
Mouse Reeve
4190793f17
Merge pull request #172 from cthulahoops/signing
Signing
2020-05-13 08:38:15 -07:00
Adam Kelly
4974fe4e5b Add tests for remote actors (fetch keys via http.) 2020-05-13 12:39:55 +01:00
Adam Kelly
3236e95ea2 Fix typo in requirements.txt 2020-05-13 12:36:06 +01:00
Adam Kelly
2db4da4061 Check all signatures are signed by the right actor. 2020-05-13 12:36:06 +01:00
Adam Kelly
10efe4d1b4 Add test for use of the wrong signature. 2020-05-13 12:36:06 +01:00
Adam Kelly
5d4076d628 Use public key from db if available. 2020-05-13 12:36:06 +01:00
Adam Kelly
05842b5c18 Pull out make_signature to separate into function. 2020-05-13 12:36:06 +01:00
Mouse Reeve
15cce156a0
Merge pull request #168 from mouse-reeve/books-manager-tests
Tests for books_manager
2020-05-12 18:58:48 -07:00
Mouse Reeve
e07a072ced Adds test coverage report and fr-dev shortcuts 2020-05-12 15:17:04 -07:00
Mouse Reeve
ebd1bf4754 Sort by rank in local db full text search
plus tests
2020-05-12 13:03:46 -07:00
Mouse Reeve
306f067a21
Merge pull request #167 from mouse-reeve/abstract-connector-tests
Tests for abstract connector
2020-05-12 10:04:08 -07:00
Mouse Reeve
62ef3e78cc Tests for books_manager 2020-05-12 10:01:36 -07:00
Mouse Reeve
0dde027f3d Tests match_from_mappings 2020-05-11 10:42:30 -07:00
Mouse Reeve
6d08996ee9 Tests abstract connector mappings 2020-05-11 08:34:25 -07:00
Mouse Reeve
228b003c1c Adds broadcast test 2020-05-10 21:07:19 -07:00