Commit Graph

24 Commits

Author SHA1 Message Date
Liam Fitzgerald
e83efcb932
pull-hook: ensure facts are not malicious
Ensure that the resource from the wire, the resource for the update
match up. Also ensure that the source ship and the ship that is being
pulled from for the resource match up. Without this, a host of a graph
could send updates for graphs that they do not hosts, and these would be
unconditionally forwarded, allowing malicious hosts to overwrite graphs
that they do not host.
2021-01-15 10:33:37 +10:00
Logan Allen
358a6e73fd pull-hook: make wires more stable identifiers based on resource 2020-12-07 14:22:00 -06:00
Philip Monk
b4d3e7fe00
Merge remote-tracking branch 'origin/la/fix-pull' into philip/testnet 2020-12-04 18:52:07 -08:00
Philip Monk
0de3e76055
glob: update to 0v6.cmrce.5ass7.5gfqi.7c8cg.mdo7n 2020-12-04 17:59:15 -08:00
Logan Allen
29d118af72 pull-hook: convert list of paths to single path 2020-12-04 15:14:52 -06:00
Logan Allen
09a5d7c71d pull-hook: fix +end 2020-12-04 14:31:05 -06:00
Logan Allen
c5a46bc605 pull-hook: fix handle-kick printouts 2020-12-04 14:20:28 -06:00
Liam Fitzgerald
e8ba12c7e3
pull-hook: L review 2020-12-04 11:49:10 +10:00
Isaac Visintainer
50ca536a27 groups: import/export 2020-11-30 23:05:39 -08:00
Liam Fitzgerald
f73a96ba90
pull-hook: backstop crashed kick handler
Virtualises the kick handler for the inner door in lib/pull-hook, so
that crashes in the handler do not cause a dangling resource with no
subscription. Additionally, failed kicks now cause the sync to be
dropped into a failed-kicks map in the state, where we attempt to
recover from the failure in the on-load.
2020-11-26 16:09:14 +10:00
Liam Fitzgerald
f851803d3c
pull-hook: do not crash on dangling sync
If the %kick handler of the inner-core crashes, then we never get to
resubscribe, thus leaving a dangling entry in the state with no
corresponding subscription. Updates the pull-hook-action pokes to not
crash when given a dangling entry.
2020-11-26 15:42:23 +10:00
Liam Fitzgerald
27b5f70b80
pull-hook: fix rewatch wire 2020-11-06 12:08:08 +10:00
Liam Fitzgerald
4fc8560a13
pull-hook: fix rewatching subscriptions 2020-11-06 12:05:51 +10:00
Liam Fitzgerald
10c956fc87
pull-hook: fix base-state-0 type 2020-11-06 12:03:14 +10:00
Liam Fitzgerald
d902aa9629
pull-hook: rewatch missing subscriptions 2020-11-06 11:44:09 +10:00
Matilde Park
c7f8af1fd2 Merge branch 'release/next-userspace' 2020-09-08 20:32:02 -04:00
matildepark
d136c50ccc
Merge pull request #3243 from urbit/lf/lib-hooks-docs
lib-hooks: document with comments
2020-09-05 16:18:17 -04:00
Liam Fitzgerald
003537e80e lib/hooks: remove reference to scrying 2020-09-03 10:13:29 +10:00
Liam Fitzgerald
b81153db03 pull-hook: prevent from subscribing to ourselves 2020-09-02 11:21:14 +10:00
Liam Fitzgerald
f658d99c76 pull-hook: no-op on double add
If we receive an %add poke for a resource we are already pulling, no-op
instead of crashing. This should prevent crashes upon repulling a
resource after a breach of the host.
2020-08-17 12:47:40 +10:00
Liam Fitzgerald
531d53ddfc lib-hooks: address mark review 2020-08-05 13:55:12 +10:00
Liam Fitzgerald
d91de5f276 lib-hooks: document with comments 2020-08-01 11:11:13 +10:00
Liam Fitzgerald
64065d720c groups: refactor ota 2020-07-13 01:44:49 +00:00
Liam Fitzgerald
d66dbff61e groups: migrate to push-pull hooks and resources 2020-06-08 17:53:16 +10:00