aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge branch 'defer_bootstrap_v1' into 'main'Nick Mathewson2026-06-089-25/+228
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti: Configuration and RPC support for deferred bootstrapping Closes #2547 See merge request tpo/core/arti!4056
| * | | | | arti: rpc functionality to bootstrap a defer_bootstrapped client.Nick Mathewson2026-06-086-8/+101
| | | | | |
| * | | | | Option to defer bootstrapping at startup.Nick Mathewson2026-06-085-17/+127
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | This option will primarily be used by integrators who want to modify the configuration, either directly or via RPC, before launching Arti completely.
* | | | | Merge branch 'destroy-cell3' into 'main'gabi-2502026-06-089-28/+395
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | proto: Add a new channel -> circuit queue type See merge request tpo/core/arti!4025
| * | | | | proto: Update the tests to use the new CircuitRx{Receiver,Sender}sGabriela Moldovan2026-06-086-16/+17
| | | | | |
| * | | | | proto: Replace CircuitRx{Sender,Receiver} with new channel typeGabriela Moldovan2026-06-083-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for relays as part of #2490. Note that changing this type affects the client implementation too (i.e. clients will start prioritizing inbound DESTROY, discarding any queued data without forwarding it to their local streams). But that's okay, because it will generally only affect misbehaving clients, and clients unlucky enough to encounter a hibernating relay.
| * | | | | proto: Remove now-unused importGabriela Moldovan2026-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `CircuitRxSender` is no longer a `Sink`, so we don't need this import anymore.
| * | | | | proto: Add a new channel -> circuit queue typeGabriela Moldovan2026-06-082-0/+372
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds new a `CircuitRxSender`/`CircuitRxReceiver` queue type. The corresponding (`Sink`-link) sender and `Stream` implementations prioritize the delivery of `DESTROY` messages, which get delivered immediately, even if there are other messages queued in the underlying MPSC message queue. We are okay with the resulting data loss, because inbound DESTROY can be indicative of malicious activity on the circuit. We choose to err on the safe side, and free up the resources associated with such circuits as soon as possible. DESTROY messages are also sent by relays when they're about to hibernate, and by clients once they've decided to stop using a circuit. In the latter case, the lack of an `RELAY_COMMAND_END_ACK` does mean that this prioritization can cause data loss in cases where the client closes the circuit immediately after END-ing a stream. However, this is a deficiency in the protocol, and not something we want to fix by implementing custom flushing logic in the reactor. See torspec#196 and the discussion in #2490. Part of #2490
* | | | | proto: Enable the relay exit stream testGabriela Moldovan2026-06-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This passes now that we can build a `DataStream` without a `ClientDataStreamCtrl`.
* | | | | proto: Set the ClientDataStreamCtrl to None for relay streams (fmt)Gabriela Moldovan2026-06-081-5/+7
| | | | |
* | | | | proto: Set the ClientDataStreamCtrl to None for relay streamsGabriela Moldovan2026-06-081-3/+3
| | | | | | | | | | | | | | | | | | | | Previously this would panic.
* | | | | proto: Make the ClientDataStreamCtrl optional throughoutGabriela Moldovan2026-06-081-12/+22
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | We will reuse `DataStream` for relay exit streams, and those aren't going to have a `ClientDataStreamCtrl`. Part of #2557
* | / / Upgrade tokio to LTS 1.47.1Neel Chauhan2026-06-0313-14/+14
| |/ / |/| | | | | | | | Closes #2137.
* | | Merge branch 'portpolicy-split-ws' into 'main'Clara Engler2026-06-033-11/+22
|\ \ \ | | | | | | | | | | | | | | | | tor-netdoc: Avoid use of string slices in PortPolicy See merge request tpo/core/arti!4062
| * | | tor-netdoc: Test for UTF-8 port policy edge case52252252026-06-033-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a tor-netdoc test for checking for an edge case related to UTF-8 symbols found within netdocs. See arti#2566
| * | | tor-netdoc: Avoid use of string slices in PortPolicyClara Engler2026-06-031-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the use of string slices in PortPolicy::from_str() by making use of `str::split_once` instead. See arti#2566 Co-authored-by: 5225225 <[email protected]>
* | | | Merge branch 'no-result' into 'main'Clara Engler2026-06-033-38/+37
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | tor-netdoc: No longer import crate::Result in doc::netstatus See merge request tpo/core/arti!4050
| * | | tor-netdoc: netstatus: Abolish StdResult aliasIan Jackson2026-06-022-13/+12
| | | |
| * | | tor-netdoc: netstatus: No longer use crate::ResultIan Jackson2026-06-022-24/+24
| | | |
| * | | tor-netdoc: Change one call to use try_collect()Ian Jackson2026-06-021-1/+1
| | | | | | | | | | | | | | | | This is a clearer.
* | | | Merge branch 'bump-deps' into 'main'Alexander Hansen Færøy2026-06-034-9/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Bump some deps that have had breaking changes See merge request tpo/core/arti!4053
| * | | dirserver,netdoc: Upgrade to the latest saturating-timeGabriela Moldovan2026-06-032-2/+2
| | | |
| * | | arti: Bump the versions of our opentelemetry depsGabriela Moldovan2026-06-032-7/+7
| | | | | | | | | | | | | | | | Part of #2559
* | | | tor-netdoc: Add TODO for eventdnsClara Engler2026-06-031-0/+1
| | | |
* | | | tor-netdoc: Change Option<NumericBoolean> to NumericBooleanClara Engler2026-06-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | It is weird to have three possible states for truthiness here. This commit removes the Option in favor of the inner type while adding a TODO comment to somehow find a way to skip this during encoding.
* | | | tor-netdoc: Replace some item docs with spec linksClara Engler2026-06-031-6/+3
| | | |
* | | | tor-netdoc: Add TODO for overload_generalClara Engler2026-06-031-0/+1
| | | | | | | | | | | | | | | | Adds a TODO for using ConstantString for overload_general.
* | | | tor-netdoc: Add extra_info_digest to RouterDescClara Engler2026-06-032-0/+9
| | | | | | | | | | | | | | | | This field is taken from the spec.
* | | | tor-netdoc: Add contact to RouterDescClara Engler2026-06-032-0/+9
| | | | | | | | | | | | | | | | This commit adds the contact field to RouterDesc.
* | | | tor-netdoc: Add overload_general to RouterDescClara Engler2026-06-032-0/+9
| | | | | | | | | | | | | | | | This commit adds support for the overload-general field to RouterDesc.
* | | | tor-netdoc: Add hibernating field to RouterDescClara Engler2026-06-032-0/+9
|/ / /
* | | Merge branch 'netdoc-unverified-trait-name' into 'main'Clara Engler2026-06-039-24/+25
|\ \ \ | | | | | | | | | | | | | | | | tor-netdoc Rename NetdocUnverified trait to NetdocParseableUnverified See merge request tpo/core/arti!4043
| * | | tor-netdoc: Add crate:: to docs xrefs to avoid broken linksIan Jackson2026-06-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, it is only correct to write [`NetdocParseableUnverified`](derive_deftly_template_NetdocParseableUnverified), *after* the definition of that template. Before then, the macro isn't in scope. Worse, rustdoc just treats it as a filename and doesn't spot the link, so you don't get any kind of warning. I think this is an upstream bug, https://github.com/rust-lang/rust/issues/157304 I found rustdoc's behaviour capricious. I don't intend to go through the arti tree right now looking for similar patterns. Instead let's hope the upstream bug gets fixed, and in the meantime do this crate:: thing when we notice we need it.
| * | | tor-netdoc: Rename NetdocUnverified trait to NetdocParseableUnverified (fmt)Ian Jackson2026-06-022-6/+6
| | | |
| * | | tor-netdoc: Rename NetdocUnverified trait to NetdocParseableUnverifiedIan Jackson2026-06-029-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NetdocParseableUnverified derive macro implements this trait (amongst other things). Traits and derive macros should have aligned names. This is only used for parsing, so let's keep the "Parseable" part of the name. I don't think the effort of deprecated alias, for downstream compatibility, is worth it, our compatibility policy notwithstanding.
| * | | tor-netdoc: Fix two references to NetdocUnverified d-d templateIan Jackson2026-06-021-2/+2
| |/ / | | | | | | | | | | | | | | | | | | The trait is called NetdocUnverified, but the template is NetdocParseableUnverified. This fixes a dead docs link (which somehow isn't spotted by rustdoc, but is instead taken to refer to a nonexistent file).
* | | proto: add regression tests for verify_link_auth_certmoumenalaoui2026-06-021-0/+79
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Fix inverted cert sig and AUTHENTICATE compareDavid Goulet2026-06-022-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missed at review and no unit tests at the time catched those. The next commit has a unit tests to make sure these checks are now valid. Fixes #2501 Fixes #2502 Special thanks to Moumen Alaoui for reporting this early! Signed-off-by: David Goulet <[email protected]>
* | | Merge branch 'client_bootstrap_ctd' into 'main'gabi-2502026-06-022-4/+101
|\ \ \ | | | | | | | | | | | | | | | | client: Reflect manually disabled bootstrap in status See merge request tpo/core/arti!4047
| * | | client: Reflect manually disabled bootstrap in statusNick Mathewson2026-06-022-4/+101
| |/ / | | | | | | | | | | | | If we have made bootstrapping manual, and not launched a bootstrap, we now reflect this as the reason that bootstrapping is blocked.
* | | tor-chanmgr: Add doccomments and fix typo.Wesley Aptekar-Cassels2026-06-022-2/+4
| | |
* | | tor-chanmgr: Refactor metrics code slightly.Wesley Aptekar-Cassels2026-06-022-194/+161
| | |
* | | tor-chanmgr: Split out channels built error metrics.Wesley Aptekar-Cassels2026-06-022-7/+206
| | |
* | | tor-chanmgr: Separate inbound/outbound channel metrics.Wesley Aptekar-Cassels2026-06-022-8/+10
| | |
* | | metrics: Add descriptions and units for existing metrics.Wesley Aptekar-Cassels2026-06-021-5/+29
| | |
* | | Upgrade metrics to 0.24.6.Wesley Aptekar-Cassels2026-06-023-3/+3
| | | | | | | | | | | | | | | | | | This fixes the minimal-versions test, since the new code in chanmgr sets descriptions for the metrics, which is a feature not supported by the previous version.
* | | tor-chanmgr: Add metrics.Wesley Aptekar-Cassels2026-06-024-3/+49
| | | | | | | | | | | | | | | | | | This adds a structure to initialize metrics when the `ChanMgr` is created, and adds a counter for the total number of channels built, broken down by success and failure.
* | | tor-netdoc: ns_variety_definition_macros: Use coherent orderingIan Jackson2026-06-021-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | At some earlier point in the development of this scheme, the ordering was different (as it is in poc). Update all the references in the docs, to the various varieties, so that they are always plain, md, vote, like ns_type! et al take.
* | | tor-netdoc: ns_variety_definition_macros: Minor grammar fixIan Jackson2026-06-021-1/+1
| | |
* | | tor-netdoc: Remove a TODO that we've doneIan Jackson2026-06-021-1/+0
|/ / | | | | | | We do now support encoding.