gotosocial/internal/federation
tobi 469da93678
[security] Check all involved IRIs during block checking (#593)
* tidy up context keys, add otherInvolvedIRIs

* add ReplyToable interface

* skip block check if we own the requesting domain

* add block check for other involved IRIs

* use cacheable status fetch

* remove unused ContextActivity

* remove unused ContextActivity

* add helper for unique URIs

* check through CCs and clean slice

* add GetAccountIDForStatusURI

* add GetAccountIDForAccountURI

* check blocks on involved account

* add statuses to tests

* add some blocked tests

* go fmt

* extract Tos as well as CCs

* test PostInboxRequestBodyHook

* add some more testActivities

* deduplicate involvedAccountIDs

* go fmt

* use cacheable db functions, remove new functions
2022-05-23 11:46:50 +02:00
..
dereferencing [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
federatingdb [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
authenticate.go [chore] Return more useful errors from auth failure (#494) 2022-04-26 18:10:11 +02:00
clock.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
commonbehavior.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
dereference.go update remote account get/deref logic 2022-01-24 13:12:17 +01:00
federatingactor.go [chore] Add Federatingactor.Send() tests and log call (#509) 2022-04-29 15:53:04 +02:00
federatingactor_test.go [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
federatingprotocol.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
federatingprotocol_test.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
federator.go [chore] Return more useful errors from auth failure (#494) 2022-04-26 18:10:11 +02:00
federator_test.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00
finger.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
handshake.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00