radicle-heartwood-lfs/radicle-node
Fintan Halpenny e894b6512d
node: prevent fetch response if no repo policy
If a node had removed a seeding policy and another node fetched from
it, then it would perform the fetch.

Instead, check the policy during the authorization step and prevent
the fetch is the resulting policy is `Block`.

Note that the policy will be `Block` iff the `Block` policy was
specifically set or the `Block` is the default policy for the node.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-12-13 14:19:46 +01:00
..
src node: prevent fetch response if no repo policy 2023-12-13 14:19:46 +01:00
Cargo.toml git: update git2-0.18.1 2023-12-04 11:11:36 +00:00
Dockerfile docker: Make Dockerfile easier to read 2023-08-03 13:43:20 +02:00