mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 01:23:32 -06:00
[docs] restructure federation section (#3038)
This commit is contained in:
parent
03c5d016a7
commit
fa710057c8
9 changed files with 951 additions and 955 deletions
11
docs/federation/access_control.md
Normal file
11
docs/federation/access_control.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Access Control
|
||||
|
||||
GoToSocial uses access control restrictions to protect users and resources from unwanted interactions with remote accounts and instances.
|
||||
|
||||
As shown in the [HTTP Signatures](#http-signatures) section, GoToSocial requires all incoming `GET` and `POST` requests from remote servers to be signed. Unsigned requests will be denied with http code `401 Unauthorized`.
|
||||
|
||||
Access control restrictions are implemented by checking the `keyId` of the signature (who owns the public/private key pair making the request).
|
||||
|
||||
First, the host value of the `keyId` uri is checked against the GoToSocial instance's list of blocked (defederated) domains. If the host is recognized as a blocked domain, then the http request will immediately be aborted with http code `403 Forbidden`.
|
||||
|
||||
Next, GoToSocial will check for the existence of a block (in either direction) between the owner of the public key making the http request, and the owner of the resource that the request is targeting. If the GoToSocial user blocks the remote account making the request, then the request will be aborted with http code `403 Forbidden`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue