summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | tor-keys: Move HS crypto keys impl from tor-keymgrDavid Goulet2024-09-043-1/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As stated in the comment added in this commit, this is temporary as we want tor-hscrypto to start using tor-keys and define these implementation there. Part of #1137 Signed-off-by: David Goulet <[email protected]>
| * | | tor-keys: Copy several types/traits from tor-keymgrDavid Goulet2024-09-048-9/+765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move EncodableKey, ToEncodableKey and Keygen to tor-keys crate from tor-keymgr. To pull this off, an err.rs was added taken from tor-keymgr but stripped down to what was needed only. No code was changed in any of the files copied from tor-keymgr. Our deftly macro now auto implement these traits for the key wrapper type created. This gives the ability of the wrapper to be used by a tor-keymgr::Keystore. In order to pull this off, most of the SSH code has been moved into this crate (ssh.rs) meaning that its ABI/API now resides in the tor-keys trait outside of tor-keymgr. Note that Sealed was not put back because the deftly macro is designed to be used outside of this crate and thus implementing EncodableKey. The alternative is that we would need to force all arti keys to be declared in this crate which is not great because it then exposes all these key types to the world outside their subsystem. Part of #1137 Signed-off-by: David Goulet <[email protected]>
| * | | tor-keys: Add NOTE for future featuresDavid Goulet2024-09-041-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
| * | | tor-keys: Fix the doc testDavid Goulet2024-09-041-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some object use path where put explicitly in order to avoid the macro user to need to import "ed25519" module. Signed-off-by: David Goulet <[email protected]>
| * | | tor-keys: Automatically implement keymgr traitDavid Goulet2024-09-045-79/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The derive ed25519 keypair macro now implements the keymgr trait so the key wrapper can now be used with a keystore without needing to specify it in the tor-keymgr crate. For this to work, a slight change to the KeygenRng trait was needed as in to expect the CryptoRngCore trait which is what ed25519-dalek requires. And also, the removal of the Sealed trait since now it is accepted to implement these traits outside tor-keymgr. Fixes #1137 Signed-off-by: David Goulet <[email protected]>
| * | | tor-keys: New crate for Tor key declarationDavid Goulet2024-09-046-0/+296
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | At this commit, we also add a derive-deftly macro for ed25519 keypair along a helper macro that can define a wrapper around a lower-level ed25519::Keypair. Part of #1137 Signed-off-by: David Goulet <[email protected]>
* | | Merge branch 'semver' into 'main'Jim Newsome2024-09-042-3/+0
|\ \ \ | | | | | | | | | | | | | | | | Remove semver.md files. See merge request tpo/core/arti!2385
| * | | Remove semver.md files.Gabriela Moldovan2024-09-042-3/+0
| | | | | | | | | | | | | | | | The 1.2.7 release is out so we won't be needing these anymore.
* | | | Merge branch 'reload-cfg-test' into 'main'David Goulet2024-09-041-2/+4
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | arti: Write the test config atomically. Closes #1549 See merge request tpo/core/arti!2375
| * | | Revert "arti: Temporarily disable a flaky test."Gabriela Moldovan2024-08-291-1/+0
| | | | | | | | | | | | | | | | This reverts commit ececf6be2eaffc201666cd3413dc19c025be66de.
| * | | arti: Write the test config atomically.Gabriela Moldovan2024-08-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flakiness from the `watch_single_file` test was caused by the race between the config write, and the fake SIGHUP "signal" sent on `sighup_tx`: sometimes, the sighup would get handled between creating the config file and writing its contents. In those cases, the config received in `TestModule::reconfigure` would be `Default::default()`, which caused an assertion to fail (because the test is expecting to receive the `ArtiConfig` it wrote to disk). Closes #1549
* | | | Merge branch 'mq-config' into 'main'Ian Jackson2024-09-0418-48/+419
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Configure and set up a MemoryQuotaTracker in TorClient See merge request tpo/core/arti!2374
| * | | memory quota error message: Fix emacs-induced typoIan Jackson2024-09-041-1/+1
| | | |
| * | | Fix typo in tor_memquota::ConfigBuilder docIan Jackson2024-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2374#note_3070500
| * | | Provide a MemoryQuotaTracker in TorClientIan Jackson2024-09-044-3/+15
| | | | | | | | | | | | | | | | Nothing uses this yet.
| * | | tor-memquota: Provide reconfigure methodIan Jackson2024-09-042-1/+56
| | | |
| * | | tor-memquota: Break out reclamation wakeupIan Jackson2024-09-041-1/+6
| | | |
| * | | tor-memquota: Make reclamation wakeup no longer throw internal errorsIan Jackson2024-09-042-5/+6
| | | | | | | | | | | | | | | | I realised a way this could happen without there being a bug.
| * | | arti: Proper testing of the memory limit config parsingIan Jackson2024-09-043-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | Including testing that uncommenting the example generates a config with tracking enabled, and that the example low_water is the default value for the example max.
| * | | arti-client: Unstable cargo feature for exposing info for testingIan Jackson2024-09-043-0/+15
| | | |
| * | | tor-memquota: Unstable cargo feature for exposing info for testingIan Jackson2024-09-044-3/+27
| | | |
| * | | connection-checker: Do not enable arti "experimental" featureIan Jackson2024-09-042-1/+3
| | | | | | | | | | | | | | | | | | | | This breaks config tests in crates/arti which test configuration parsing of disabled experimental features.
| * | | obfs4-checker: Do not enable arti "experimental" featureIan Jackson2024-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | This breaks config tests in crates/arti which test configuration parsing of disabled experimental features.
| * | | arti cfg tests: Provide resolve_return_resultsIan Jackson2024-09-041-0/+6
| | | |
| * | | arti cfg tests: strip_prefix: Leave section markers unchangedIan Jackson2024-09-041-1/+6
| | | |
| * | | arti cfg tests: strip_prefix: Document error behaviourIan Jackson2024-09-041-1/+3
| | | |
| * | | Look for memquota configuration in the TorClient configurationIan Jackson2024-09-043-1/+68
| | | | | | | | | | | | | | | | Tests are not entirely trivial and will come in a moment.
| * | | Add memquota cargo features to arti and arti-clientIan Jackson2024-09-043-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * In arti, memquota simply turns on in memquota arti-client * In arti-client, add an (unconditional) dependency on tor-memquota, and have the memquota feature turn on the feature in tor-memquota.
| * | | arti/Cargo.toml: Sort the experimental features listIan Jackson2024-09-041-3/+3
| | | |
| * | | tor-memquota: Rework optionality configurationIan Jackson2024-09-047-32/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a `Config` to represent "this is supposed to be disabled". This involves wrapping the actual built configuration in an IfEnabled. We treat max = usize::MAX, or max being unspecified, as "disable". We can now reporting an error during config building if max is set but we're compiling the feature out. Conversely, we can now make `MemoryQuotaTracker::new()` unconditional, since enabled confiogurations are uninhabited when the feature is compiled out. We change how we derive the setters, deriving them from the Builder. I chose to abolish the use of derive_builder. See the new comment on ConfigBuilder.
| * | | tor-memquota: impl PartialEq for IfEnabled and EnabledTokenIan Jackson2024-09-041-2/+4
| | | |
| * | | tor-memquota: Add unit tests for config handlingIan Jackson2024-09-043-0/+58
|/ / / | | | | | | | | | | | | We're about to change the config behaviour; adding these tests first allows us to demonstrate the changes.
* | | Merge branch 'orport' into 'main'opara2024-09-035-14/+56
|\ \ \ | | | | | | | | | | | | | | | | tor-relay: add `ChanMgr` to `TorRelay` See merge request tpo/core/arti!2361
| * | | tor-relay: add `ChanMgr` to `TorRelay`Steven Engler2024-09-032-2/+41
| | | |
| * | | arti-client: replace `convert_override_net_params` with generic `default_extend`Steven Engler2024-09-031-10/+6
| | | |
| * | | tor-netdoc: impl `Extend` on `NetParams`Steven Engler2024-09-031-0/+6
| | | |
| * | | arti-relay: pass config in `TorRelay::create_inner`Steven Engler2024-09-032-3/+4
|/ / /
* | | Merge branch 'version-bumps-arti-v1.2.7' into 'main'arti-v1.2.7gabi-2502024-09-0354-564/+586
|\ \ \ | | | | | | | | | | | | | | | | Version bumps for the 1.2.7 release See merge request tpo/core/arti!2384
| * | | Run cargo update for {hashx,equix}/bench.Gabriela Moldovan2024-09-032-134/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done using ``` (cd crates/hashx/bench && cargo update) (cd crates/equix/bench && cargo update) ```
| * | | Bump arti crate to 1.2.7Gabriela Moldovan2024-09-034-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done using: ``` cargo set-version --bump patch -p arti ```
| * | | Bump all the unstable tor- and arti- crates to 0.22.0.Gabriela Moldovan2024-09-0346-414/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done using: ``` for crate in $(./maint/list_crates | rg '^(tor|arti-)'); do cargo set-version -p $crate 0.22.0 done ```
| * | | Bump the versions of the non-{arti-,tor-} crates.Gabriela Moldovan2024-09-037-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bumps the versions of the non-{arti,tor-} crates that have non-functional changes: - fslock-guard (updated rustdoc-args) - equix (comment typo fixes) - caret (updated rustdoc-args) - safelog (updated rustdoc-args) - retry-error (updated rustdoc-args) And of the pre-1.0.0 crates that have new APIs: - fs-mistrust (new `CheckedDir::metadata` API) Done using ``` for c in "${non_tor[@]}"; do maint/bump_nodep $c; done ``` where `non_tor` contains the list above
* | | | Merge branch 'changelog-1.2.7' into 'main'gabi-2502024-09-031-0/+277
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Add changelog for 1.2.7. See merge request tpo/core/arti!2382
| * | | CHANGELOG: Add blank lines to satisfy maint/update-md-links.Gabriela Moldovan2024-09-031-0/+2
| | | |
| * | | CHANGELOG: Add missing closing bracket.Gabriela Moldovan2024-09-031-1/+1
| | | |
| * | | CHANGELOG: Update links for 1.2.7.Gabriela Moldovan2024-09-031-3/+125
| | | |
| * | | CHANGELOG: note that oneshot-fused-workaround is reexported from ↵Gabriela Moldovan2024-09-031-2/+2
| | | | | | | | | | | | | | | | tor-async-utils.
| * | | Merge redundant changelog items.Gabriela Moldovan2024-09-031-6/+4
| | | |
| * | | Update the changelog line about deb packaging.gabi-2502024-09-031-1/+1
| | | |
| * | | Add missing link in changelog.Gabriela Moldovan2024-09-031-1/+1
| | | |