summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'no-osxcross' into 'main'gabi-2502024-06-251-2/+1
|\ | | | | | | | | Disable macos build tests See merge request tpo/core/arti!2226
| * Disable macos build testsIan Jackson2024-06-251-2/+1
| |
* | Merge branch 'AtomicOptTimestamp' into 'main'Jim Newsome2024-06-243-12/+12
|\ \ | | | | | | | | | | | | | | | | | | Rename OptTimestamp to AtomicOptTimestamp Closes #1412 See merge request tpo/core/arti!2218
| * | Rename OptTimestamp to AtomicOptTimestampNeel Chauhan2024-06-243-12/+12
| |/
* | Merge branch 'owner' into 'main'gabi-2502024-06-241-0/+1
|\ \ | |/ |/| | | | | Turn crate ownership discrepancies into a warning See merge request tpo/core/arti!2220
| * Turn crate ownership discrepancies into a warningIan Jackson2024-06-241-0/+1
|/ | | | | Ideally we'd tolerate situations with unaccepted ownership requests, but that information doesn't seem to be public.
* Merge branch 'doc-warning-20240624' into 'main'Nick Mathewson2024-06-241-2/+2
|\ | | | | | | | | Resolve a rustdoc warning. See merge request tpo/core/arti!2215
| * Resolve a rustdoc warning.Nick Mathewson2024-06-241-2/+2
| |
* | Merge branch 'rpc-docs-part1' into 'main'Nick Mathewson2024-06-241-0/+156
|\ \ | | | | | | | | | | | | Write a README for tor-rpcbase See merge request tpo/core/arti!2210
| * | Write a README for tor-rpcbaseNick Mathewson2024-06-241-0/+156
| | |
* | | Merge branch 'owners' into 'main'Ian Jackson2024-06-247-67/+186
|\ \ \ | |_|/ |/| | | | | | | | Better crate ownership check, and run it in CI See merge request tpo/core/arti!2201
| * | Update Release.md to reference new ownership scriptIan Jackson2024-06-241-1/+1
| | |
| * | maint/crates-io-utils.sh: Try to deconfuse shellcheckIan Jackson2024-06-241-0/+6
| | |
| * | Remove check-crate-owners scriptIan Jackson2024-06-241-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | This is superseded now. (I wish I had noticed it; perhaps I could have souped it up rather than writing a whole new thing, but I think the result would have been much the same.)
| * | Check crate ownership in CI, but only on mainIan Jackson2024-06-241-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think that the effect of this will be as follows: * MR branches will never run this, so when the crate ownership is wrong, development can continue. * When a new crate is first published, it will transition from "ignored" to "complaining". This will happen on the first CI run on main after "cargo publish" is run. But it *won't* happen on the CI run on the publication tag. The intent is that we discover a failure to `git add` while the release technician who published the new crate is still around.
| * | maint/cargo-crate-owners: More sophisticated ownership check scriptIan Jackson2024-06-241-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compared to check-crate-owners: 1. Checks for uniformity, rather than having an embedded list of intended maintainers. 2. Uses curl | jq, rather than `cargo owner`. This is necessary for: 3. Ignores crates which have never been published. This is necessary to be able to run this in CI, since there may be new crates in the workspace. 4. Prints the ownership information rather differently - just the usernames. This is a consequence of using curl | jq.
| * | maint/crates-io-utils.sh: Add preserving tmp featureIan Jackson2024-06-241-2/+8
| | | | | | | | | | | | This is useful for debugging.
| * | maint/crates-io-utils.sh: Add exit status control featureIan Jackson2024-06-241-1/+5
| | |
| * | maint/crates-io-utils.sh: Break out from cargo-publishIan Jackson2024-06-242-30/+62
| | |
| * | shellcheck: check *.sh files tooIan Jackson2024-06-241-1/+4
| |/ | | | | | | | | We (will) use `*.sh` for shell include files. We're about to make one of these.
* | Merge branch 'fslock-retry' into 'main'Nick Mathewson2024-06-246-10/+150
|\ \ | |/ |/| | | | | | | | | TorClientBuilder: Add the ability to retry when fslock fails Closes #1464 See merge request tpo/core/arti!2198
| * Add a maximum to local_resource_timeout.Nick Mathewson2024-06-242-8/+33
| |
| * local_resource_timeout: Change wait interval to 50 ms.Nick Mathewson2024-06-241-1/+1
| |
| * Rename fslock_timeout to local_resource_timeoutNick Mathewson2024-06-241-11/+16
| | | | | | | | Name chosen to match the error kind that we're detecting.
| * Clarify documentation about blocking.Nick Mathewson2024-06-241-2/+4
| |
| * arti: wait a short while on startup if lockfiles are unavailable.Nick Mathewson2024-06-241-1/+1
| |
| * TorClientBuilder: Wait for a little while if the lockfiles are held.Nick Mathewson2024-06-243-4/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a parameter to TorClientBuilder that control how long we should retry constructing a TorClient if we get a LocalResourceInUse error. When this parameter is not set, we default to 500 milliseconds for async entry points and 0 milliseconds for sync entry points. (`LocalResourceInUse` usually means that a lockfile is held by somebody else; but when the resource is some other type, we typically want the same behavior anyway.) (I really don't want to introduce delays by default for the create_unbootstrapped case, since it previously had no delay at all.) There is now also an async entry point to create an unbootstrapped TorClient. Closes #1464.
| * TorClientBuilder: take self by reference when buildingNick Mathewson2024-06-242-4/+5
|/ | | | | There is no actual reason to consume this type, and taking it by reference allows us to retry.
* Merge branch 'refactor-hspath' into 'main'gabi-2502024-06-203-153/+301
|\ | | | | | | | | | | | | tor-circmgr: Refactor VanguardHsPathBuilder::pick_path Closes #1459 See merge request tpo/core/arti!2205
| * tor-circmgr: Clarify the update_last_hop_kind documentation.Gabriela Moldovan2024-06-201-2/+10
| |
| * tor-circmgr: Rename VanguardPath to PathBuilder.Gabriela Moldovan2024-06-202-13/+12
| |
| * tor-circmgr: Remove duplicated path building logic from HS pool.Gabriela Moldovan2024-06-201-30/+19
| |
| * tor-circmgr: Fix clippy warning.Gabriela Moldovan2024-06-201-1/+1
| |
| * tor-circmgr: Gate vanguard-specific code behind vanguards feature.Gabriela Moldovan2024-06-201-0/+15
| | | | | | | | | | | | | | This is just code motion: moving the vanguard-specific parts of `maybe_extend_stub_circuit()` behind the `vanguards` feature will enable us to refactor it to use `select_middle_for_vanguard_circuit()`, which is only available if the `vanguards` feature is enabled.
| * tor-circmgr: Break VanguardHsPathBuilder::pick_path into smaller parts (fmt).Gabriela Moldovan2024-06-201-5/+2
| |
| * tor-circmgr: Break VanguardHsPathBuilder::pick_path into smaller parts.Gabriela Moldovan2024-06-202-118/+259
| | | | | | | | | | | | This is a follow up from https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2186#note_3035525 Closes #1459
| * tor-circmgr: Remove unnecessary TODO.Gabriela Moldovan2024-06-201-1/+0
|/ | | | There's not much to refactor about this line.
* Merge branch 'test-hspath' into 'main'gabi-2502024-06-207-83/+566
|\ | | | | | | | | tor-circmgr: Write tests for the HsPathBuilder. See merge request tpo/core/arti!2199
| * tor-circmgr: Rename HsCircStubKind::len to HsCircStubKind::num_hops.Gabriela Moldovan2024-06-202-5/+5
| |
| * tor-circmgr: Note which test prevents TROVE-2024-005.Gabriela Moldovan2024-06-201-0/+1
| | | | | | | | | | | | This test is not new (it was added in !2168), but I think it's a good idea to annotate the tests preventing security issues with the TROVE number and/or arti ticket they pertain to.
| * tor-circmgr: Write tests for the HsPathBuilder.Gabriela Moldovan2024-06-203-0/+465
| | | | | | | | | | | | | | These tests should give us *some* assurance that the upcoming `HsVanguardPathBuilder` refactoring doesn't break anything. Part of #1459
| * tor-circmgr: Refactor duplicated circuit stub length calculation.Gabriela Moldovan2024-06-202-27/+26
| | | | | | | | Part of #1459
| * tor-guardmgr: Make some vanguard test helpers public (fmt).Gabriela Moldovan2024-06-201-10/+5
| |
| * tor-guardmgr: Make some vanguard test helpers public.Gabriela Moldovan2024-06-202-51/+69
| | | | | | | | | | | | We will soon need these helpers outside of `tor-guardmgr` too. This commit is mainly code motion.
| * tor-circmgr: Add a TODO about an unused restriction.Gabriela Moldovan2024-06-201-0/+5
|/
* Merge branch 'update-curve25519-dalek' into 'main'gabi-2502024-06-201-9/+2
|\ | | | | | | | | | | | | Update curve25519-dalek to 4.1.3. Closes #1468 See merge request tpo/core/arti!2211
| * Update curve25519-dalek to 4.1.3.Gabriela Moldovan2024-06-201-9/+2
|/ | | | | | | | | This updates our `curve25519-dalek` dependency to 4.1.3, which doesn't have the issues described in RUSTSEC-2024-0344. Closes TROVE-2024-007 and #1468 Fixes the failing cargo-audit job.
* Merge branch 'ticket1432_01' into 'main'David Goulet2024-06-189-0/+68
|\ | | | | | | | | | | | | tls: Support export keying material (RFC 5705) Closes #1432 See merge request tpo/core/arti!2185
| * tls: Support export keying material (RFC 5705)David Goulet2024-06-189-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a function to get the keying material as detailed by RFC 5705. Because native-tls doesn't have such support, there is a place holder panic!() for now. This means that for the forseable future, relay would only work with rustls until we figure out a solution for native-tls. Closes #1432 Signed-off-by: David Goulet <[email protected]>
* | Merge branch 'always-amd64' into 'main'David Goulet2024-06-181-24/+67
|\ \ | | | | | | | | | | | | CI: Bail if unexpectedly using a non-amd64 container See merge request tpo/core/arti!2207