summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | arti-client: vanguards cargo feature: remove from experimentalIan Jackson2024-04-301-1/+0
|/ / | | | | | | Followup to !2109.
* | Merge branch 'enable-vanguards' into 'main'Ian Jackson2024-04-308-28/+62
|\ \ | | | | | | | | | | | | arti-client: Make vanguards non-experimental. See merge request tpo/core/arti!2109
| * | tor-guardmgr: Make remove_unlisted return the number of unlisted vanguards.Gabriela Moldovan2024-04-301-2/+4
| | | | | | | | | | | | For symmetry with remove_expired.
| * | tor-guardmgr: Make remove_expired return the number of expired vanguards.Gabriela Moldovan2024-04-302-20/+25
| | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2109#note_3024672
| * | tor-guardmgr: Prevent misleading logs when not rotating vanguards.Gabriela Moldovan2024-04-292-2/+15
| | | | | | | | | | | | | | | `rotate_expired()` now only logs that it is rotating the vanguards if some existing vanguards have actually expired.
| * | tor-circmgr: Don't log unless we are launching some circuits.Gabriela Moldovan2024-04-291-5/+7
| | | | | | | | | | | | Otherwise we end up logging that we're launching 0 circuits.
| * | tor-guardmgr: Make a vanguard log message more accurate.Gabriela Moldovan2024-04-291-1/+1
| | | | | | | | | | | | | | | We flush every time the vanguards may have changed, but we don't know for sure if they did.
| * | arti: Make vanguards a default feature.Gabriela Moldovan2024-04-291-0/+1
| | |
| * | arti-client: Make vanguards non-experimental.Gabriela Moldovan2024-04-295-10/+21
| | | | | | | | | | | | This makes the vanguards feature non-experimental.
* | | Merge branch 'quota-rename' into 'main'Ian Jackson2024-04-2919-12/+12
|\ \ \ | |/ / |/| | | | | | | | Rename tor-memtrack to tor-memquota See merge request tpo/core/arti!2105
| * | Rename tor-memtrack to tor-memquotaIan Jackson2024-04-2919-12/+12
| | |
* | | Merge branch 'report-readiness-no-cache' into 'main'gabi-2502024-04-291-0/+3
|\ \ \ | | | | | | | | | | | | | | | | properly report bootstrap readiness without cache See merge request tpo/core/arti!2107
| * | | properly report bootstrap readiness without cachetrinity-1686a2024-04-291-0/+3
| |/ /
* | | Merge branch 'prefer-stub-plus' into 'main'gabi-2502024-04-293-15/+63
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-circmgr: Prefer STUB+ where possible. Closes #1385 and #1353 See merge request tpo/core/arti!2104
| * | | tor-circmgr: Remove no-longer-relevant TODO.Gabriela Moldovan2024-04-291-1/+1
| | | | | | | | | | | | | | | | The wanted_kind _does_ matter.
| * | | tor-circmgr: The circuit must still be usable, even if vanguards are enabled.Gabriela Moldovan2024-04-291-3/+1
| | | |
| * | | tor-circmgr: Prefer STUB+ where possible.Gabriela Moldovan2024-04-292-10/+61
| | | | | | | | | | | | | | | | Closes #1385
| * | | tor-circmgr: Remove no-longer-needed dead_code allow.Gabriela Moldovan2024-04-291-1/+0
|/ / /
* | | Merge branch 'launch-stub-circuits' into 'main'gabi-2502024-04-292-47/+166
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-circmgr: Make a fraction of preemptive HS circuits be STUB+. Closes #1353 See merge request tpo/core/arti!2102
| * | | tor-circmgr: Have separate targets for the STUB and STUB+ pools (fmt).Gabriela Moldovan2024-04-291-3/+3
| | | |
| * | | tor-circmgr: Have separate targets for the STUB and STUB+ pools.Gabriela Moldovan2024-04-291-32/+46
| | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2102#note_3024366
| * | | tor-circmgr: Add a TODO about launching HS circuits in parallel.Gabriela Moldovan2024-04-291-0/+1
| | | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2102#note_3024370
| * | | tor-circmgr: Expand on the ForLaunch docs.Nick Mathewson2024-04-291-1/+2
| | | |
| * | | tor-circmgr: Remove an addressed TODO.Gabriela Moldovan2024-04-291-13/+0
| | | |
| * | | tor-circmgr: Log the kinds of circuits we're about to launch (fmt).Gabriela Moldovan2024-04-291-4/+1
| | | |
| * | | tor-circmgr: Log the kinds of circuits we're about to launch.Gabriela Moldovan2024-04-292-3/+24
| | | |
| * | | tor-circmgr: Remove no-longer-needed dead code allows.Gabriela Moldovan2024-04-291-2/+0
| | | |
| * | | tor-circmgr: Make a fraction of preemptive HS circuits be STUB+.Gabriela Moldovan2024-04-292-11/+111
| | |/ | |/| | | | | | | Closes #1353
* | | Merge branch 'rpc-macro' into 'main'Ian Jackson2024-04-291-33/+86
|\ \ \ | |/ / |/| | | | | | | | | | | | | | tor-rpcbase: simplify invoker_ent invocation (and infer the fn type) Closes #1380 See merge request tpo/core/arti!2103
| * | tor-rpcbase: Add a missing `#[doc(hidden)]`Ian Jackson2024-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2103#note_3024372 I overlooked this.
| * | tor-rpcbase: invoker_ent!: simplify argument parsingIan Jackson2024-04-251-12/+15
| | | | | | | | | | | | | | | | | | Previously, one of the macros was documented to accept `(function_expr)`, but in fact it would only accept an identifier. Now we *do* accept any expression.
| * | tor-rpcbase: invoker_ent!: abolish flags argumentIan Jackson2024-04-251-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | IMO if we want flags again in the future, we should probably pick a syntax that doesn't involve such awkward patterns. Perhaps `$expr $( , $( $flag )* )?`. But I think we probably won't need that feature.
| * | tor-rpcbase: invoker_ent: Infer the correct fn type for castIan Jackson2024-04-251-7/+69
| | | | | | | | | | | | | | | This renders the Update flag redundant. Indeed, in this commit we mow ignore the flags.
| * | tor-rpcbase: invoker_ent!: remove buggy unuseable armIan Jackson2024-04-251-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This arm puts parens around its argument. But the other arm insists on $func:ident, and also would capture any reasonable input. This was probably something to do with the (func_expr) syntax. We don't need to *fix* this macrology, because in a moment the whole macro can be made to take $func:expr.
* | | Merge branch 'vanguard-config-fixes' into 'main'gabi-2502024-04-294-59/+99
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-guardmgr: Temporarily reintroduce VanguardConfig. Closes #1272 See merge request tpo/core/arti!2099
| * | | tor-guardmgr: Add a TODO about using the vanguard consensus params.Gabriela Moldovan2024-04-291-0/+3
| | | |
| * | | tor-guardmgr: Make the VanguardMgr tests pass again.Gabriela Moldovan2024-04-291-14/+29
| | | | | | | | | | | | | | | | | | | | The tests need to be updated now that the `VanguardMode` is read from the config rather than the consensus.
| * | | tor-guardmgr: Temporarily reintroduce VanguardConfig.Gabriela Moldovan2024-04-292-36/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As discussed on #tor-dev, I'm reintroducing `VanguardConfig` for now. The `VanguardConfig` specifies what mode (full/lite/disabled) the `VanguardMgr` should run in. We currently don't have a separate modes for HS clients and HS services. We shouldn't actually *need* a `VanguardConfig` at all, so this is just a (hopefully!) short- or medium-term fix until we sort out #1382 (which might involve making breaking changes to our `reconfigure()` APIs). Closes #1272
| * | | tor-guardmgr: Remove old TODO about making VanguardMode a VanguardParam.Gabriela Moldovan2024-04-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `VanguardParams` already contains the `vanguards_enabled` and `vanguards_hs_service` `VanguardMode` params. We still intend to abolish `VanguardConfig` in favour of deriving the `VanguardMode` from the consensus params (#1382), but this is not the right place for such a TODO.
| * | | tor-guardmgr: Remove unnecessary clippy allows.Gabriela Moldovan2024-04-293-6/+0
|/ / / | | | | | | | | | None of these should be unused anymore.
* | | Merge branch 'lgpl' into 'main'Nick Mathewson2024-04-297-0/+2522
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Add LGPL-3.0 file Closes #1375 See merge request tpo/core/arti!2094
| * | Ship GPL-3 alongside LGPL-3, as requiredIan Jackson2024-04-253-0/+2022
| | |
| * | Add note re LGPL to README.me License sectionIan Jackson2024-04-251-0/+5
| | |
| * | Copy LGPL-3 file into hashx and equix cratesIan Jackson2024-04-252-0/+330
| | | | | | | | | | | | | | | | | | | | | | | | This is the simplest way to get this included during "cargo publish", which is necessary. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2094#note_3021187
| * | Add LGPL-3.0 fileIan Jackson2024-04-251-0/+165
| |/ | | | | | | | | | | This is required by the LGPL. Fixes #1375.
* | Merge branch 'bomb' into 'main'Ian Jackson2024-04-256-76/+654
|\ \ | | | | | | | | | | | | | | | | | | tor_memtrack: Soup up DropBomb. make into its own module, and add more tests Closes #1381 See merge request tpo/core/arti!2100
| * | tor-memtrack: Fix typosgabi-2502024-04-251-2/+2
| | |
| * | tor_memtrack: Use DropBombCondition in bookkeeping.rsIan Jackson2024-04-241-5/+24
| | | | | | | | | | | | | | | | | | In addition to the in-module, switchable, tests, I have done an ad-hoc test, removing the bulk of the accounting from Participation::release_qty, it crashes in a test as expected.
| * | tor-memtrack: bookkeeping: Break out BOMB d-d conditionIan Jackson2024-04-241-1/+3
| | | | | | | | | | | | We're going to want this in other places.
| * | tor_memtrack: Use DropBombCondition in refcount.rsIan Jackson2024-04-242-12/+74
| | | | | | | | | | | | | | | | | | In addition to the in-module, switchable, tests, I have done an ad-hoc test, removing the Drop impl for Participation, and it crashes in a test as expected.