| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | tor-guardmgr: Don't try to replenish the sets unless some vanguards expired. | Gabriela Moldovan | 2024-04-22 | 1 | -23/+18 | |
| | | | | | | This addresses a TODO about not calling `handle_netdir_update` unconditionally each time `VanguardMgr::run_once()` runs. | |||||
| * | tor-guardmgr: Move vanguard set replenishing logic to VanguardSetsTrackedMut. | Gabriela Moldovan | 2024-04-22 | 1 | -212/+100 | |
| | | | | | | | A lot of this is code motion: the code added to `VanguardSetsTrackedMut` was copied from the `VanguardMgr` impl, so I recommend reviewing this with `git diff --color-moved=zebra`. | |||||
| * | tor-guardmgr: Add VanguardMgrError variant for tor-persist errors. | Gabriela Moldovan | 2024-04-22 | 1 | -0/+5 | |
| | | ||||||
| * | tor-guardmgr: Create storage handle for storing vanguards. | Gabriela Moldovan | 2024-04-22 | 1 | -3/+11 | |
| | | ||||||
| * | tor-guardmgr: Add a TODO about a call that needs to be relocated. | Gabriela Moldovan | 2024-04-22 | 1 | -0/+10 | |
| | | | | | This TODO is fixed later in the branch. | |||||
| * | tor-guardmgr: Use RelayUsage::vanguard in the VanguardMgr. | Gabriela Moldovan | 2024-04-22 | 1 | -2/+1 | |
| | | | | | Closes #1364 | |||||
| * | Merge branch 'vanguards-cleanup' into 'main' | Alexander Færøy | 2024-04-15 | 1 | -3/+3 | |
| |\ | | | | | | | | | tor-guardmgr: Minor vanguard-related cleanups See merge request tpo/core/arti!2088 | |||||
| | * | tor-guardmgr: Remove unnecessary mutable reference. | Gabriela Moldovan | 2024-04-15 | 1 | -3/+3 | |
| | | | ||||||
| * | | vanguards: Fix another doc ref | Ian Jackson | 2024-04-15 | 1 | -1/+1 | |
| | | | | | | | | | This was a typo. | |||||
| * | | vanguards: Fix a doc ref | Ian Jackson | 2024-04-15 | 1 | -2/+3 | |
| |/ | | | | This is a broken link when built without --document-private-items. | |||||
| * | tor-guardmgr: Derive Ord for VanguardMode. | Gabriela Moldovan | 2024-04-11 | 1 | -6/+2 | |
| | | ||||||
| * | tor-guardmgr: Expand on a TODO about handling config changes. | Gabriela Moldovan | 2024-04-11 | 1 | -0/+4 | |
| | | ||||||
| * | tor-guardmgr: Add a TODO about updating has_onion_svc on reconfigure. | Gabriela Moldovan | 2024-04-11 | 1 | -0/+1 | |
| | | ||||||
| * | tor-guardmgr: Fix typo in VanguardMgr error message. | Gabriela Moldovan | 2024-04-11 | 1 | -1/+1 | |
| | | ||||||
| * | tor-guardmgr: Read the VanguardMode from VanguardParams. | Gabriela Moldovan | 2024-04-11 | 1 | -26/+54 | |
| | | | | | | | Based on our discussion on https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/258#note_3011734 If it turns out this is not the behaviour we want, we can update `Inner::mode()` accordingly. | |||||
| * | tor-guardmgr: Store whether we're running an onion svc. | Gabriela Moldovan | 2024-04-11 | 1 | -1/+8 | |
| | | | | | | | The `VanguardMgr` needs to know whether arti is running as an onion service or not, in order to figure out which of the `vanguards_enabled` and `vanguards_hs_service` modes to use. | |||||
| * | tor-guardmgr: Replace vanguard heap with a simpler approach. | Gabriela Moldovan | 2024-04-10 | 1 | -107/+93 | |
| | | | | | | | | | | | | | | | | | | | As mentioned in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2075#note_3016306 using a heap isn't the best way to manage the vanguards: * in the default case, which will apply to most users, the L2 and L3 set sizes are 4 and 8 respectively. Using a heap doesn't make sense for such small sets * the use of `Weak<TimeBoundVanguard>`s will be an inconvenience later on, when we implement vanguard set persistence, since `Weak` isn't serializable or deserializable This switches to a simpler apporach, where the `VanguardMgr` computes the soonest expiration timestamp of its `VanguardSet`s by iterating over all the vanguards in each set. Closes #1366 | |||||
| * | tor-guardmgr: Do not store the NetDir in VanguardMgr. | Gabriela Moldovan | 2024-04-10 | 1 | -31/+23 | |
| | | | | | | Instead, we try to get a `NetDir` from the `NetDirProvider` each time we `run_once()`. | |||||
| * | tor-guardmgr: Remove unnecessary call to discard_expired(). | Gabriela Moldovan | 2024-04-10 | 1 | -2/+8 | |
| | | ||||||
| * | tor-guardmgr: Rename vanguards to vanguards heap for clarity. | Gabriela Moldovan | 2024-04-10 | 1 | -12/+12 | |
| | | ||||||
| * | tor-guardmgr: Remove unused params field. | Gabriela Moldovan | 2024-04-10 | 1 | -4/+0 | |
| | | ||||||
| * | tor-guardmgr: Hold a weak reference to NetDirProvider. | Gabriela Moldovan | 2024-04-10 | 1 | -7/+14 | |
| | | ||||||
| * | tor-guardmgr: Don't recreate the event stream for each iteration (fmt). | Gabriela Moldovan | 2024-04-10 | 1 | -1/+7 | |
| | | ||||||
| * | tor-guardmgr: Don't recreate the event stream for each iteration. | Gabriela Moldovan | 2024-04-10 | 1 | -3/+5 | |
| | | ||||||
| * | tor-guardmgr: Only replenish the L3 sets if full vanguards are in use (fmt). | Gabriela Moldovan | 2024-04-10 | 1 | -8/+2 | |
| | | ||||||
| * | tor-guardmgr: Only replenish the L3 sets if full vanguards are in use. | Gabriela Moldovan | 2024-04-10 | 1 | -33/+54 | |
| | | ||||||
| * | tor-guardmgr: Clarify VanguardMgr::select_vanguard behaviour. | Gabriela Moldovan | 2024-04-09 | 1 | -0/+9 | |
| | | ||||||
| * | tor-guardmgr: Use ids_listed() instead of by_ids() (fmt). | Gabriela Moldovan | 2024-04-09 | 1 | -1/+2 | |
| | | ||||||
| * | tor-guardmgr: Use ids_listed() instead of by_ids(). | Gabriela Moldovan | 2024-04-09 | 1 | -1/+1 | |
| | | ||||||
| * | tor-guardmgr: Update TODO to say we want RelayUsage::vanguard(). | Gabriela Moldovan | 2024-04-09 | 1 | -1/+1 | |
| | | ||||||
| * | tor-guardmgr: Add tests for the vanguard manager. | Gabriela Moldovan | 2024-04-05 | 1 | -0/+375 | |
| | | ||||||
| * | tor-guardmgr: Replenish the vanguard sets as needed. | Gabriela Moldovan | 2024-04-05 | 1 | -13/+198 | |
| | | ||||||
| * | tor-guardmgr: Add a function for selecting vanguard lifetimes. | Gabriela Moldovan | 2024-04-05 | 1 | -0/+28 | |
| | | ||||||
| * | tor-guardmgr: Implement VanguardSet::pick_relay. | Gabriela Moldovan | 2024-04-05 | 1 | -3/+3 | |
| | | | | | Closes #1340 | |||||
| * | tor-guardmgr: Implement vanguard mgr. | Gabriela Moldovan | 2024-04-05 | 1 | -10/+114 | |
| | | ||||||
| * | tor-guardmgr: Add VanguardMgrError::NetDir. | Gabriela Moldovan | 2024-04-05 | 1 | -0/+5 | |
| | | ||||||
| * | tor-guardmgr: Store the TimeboundVanguards in a binary heap. | Gabriela Moldovan | 2024-04-05 | 1 | -0/+18 | |
| | | ||||||
| * | tor-guardmgr: Implement launch_background_tasks. | Gabriela Moldovan | 2024-04-05 | 1 | -4/+35 | |
| | | ||||||
| * | tor-guardmgr: Give VanguardSets a target set size. | Gabriela Moldovan | 2024-04-05 | 1 | -3/+7 | |
| | | | | | | The target is the number of vanguards the `VanguardMgr`s will try to maintain in the `VanguardSet`. | |||||
| * | tor-guardmgr: Pass an rng to select_vanguard. | Gabriela Moldovan | 2024-04-05 | 1 | -2/+4 | |
| | | | | | | This function will need to randomly select a vanguard, so it needs an `Rng`. | |||||
| * | tor-guardmgr: Give VanguardMgr a handle to the runtime (fmt). | Gabriela Moldovan | 2024-04-05 | 1 | -1/+5 | |
| | | ||||||
| * | tor-guardmgr: Give VanguardMgr a handle to the runtime. | Gabriela Moldovan | 2024-04-05 | 1 | -9/+8 | |
| | | ||||||
| * | tor-circmgr: Fix a clippy warning. | Gabriela Moldovan | 2024-03-21 | 1 | -1/+1 | |
| | | ||||||
| * | tor-guardmgr: Explain what neighbor_exclusion is for. | Gabriela Moldovan | 2024-03-21 | 1 | -2/+21 | |
| | | ||||||
| * | tor-guardmgr: Make Vanguard::select_relay take a RelayExclusion. | Gabriela Moldovan | 2024-03-21 | 1 | -1/+3 | |
| | | | | | | | | This enables us to prevent the same relay from being picked in consecutive positions in a path. Part of #1340 | |||||
| * | tor-circmgr: Unconditionally define VanguardMode. | Gabriela Moldovan | 2024-03-20 | 1 | -2/+2 | |
| | | ||||||
| * | tor-guardmgr: Add a function for getting the current VanguardMode. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+5 | |
| | | ||||||
| * | tor-guardmgr: Return an error if VanguardMode does not support the specified ↵ | Gabriela Moldovan | 2024-03-11 | 1 | -5/+24 | |
| | | | | | Layer. | |||||
| * | tor-guardmgr: Move the VanguardSets into the inner mutable state. | Gabriela Moldovan | 2024-03-11 | 1 | -11/+12 | |
| | | ||||||
| * | tor-guardmgr: Add TODO about reading vanguards from disk. | Gabriela Moldovan | 2024-03-11 | 1 | -0/+1 | |
| | | ||||||
