summaryrefslogtreecommitdiff
path: root/crates/arti/src
Commit message (Collapse)AuthorAgeFilesLines
...
* arti: Add skip_all to instrument call.Wesley Aptekar-Cassels2025-09-241-1/+1
|
* arti: Make panic into error on invalid OTEL endpoint.Wesley Aptekar-Cassels2025-09-241-3/+5
|
* arti: Add note about OpenTelemetry data model.Wesley Aptekar-Cassels2025-09-241-0/+3
|
* arti: Add note about lack of filtering in OpenTelemetry layer.Wesley Aptekar-Cassels2025-09-241-0/+3
|
* arti: Add skip_all to instrument macro.Wesley Aptekar-Cassels2025-09-241-1/+1
| | | | | | It's unlikely these arguments will be particularly useful, and omitting skip_all can have security implications, so it's better to avoid it to reflect good practice.
* arti: Add more detail about OpenTelemetry in example config.Wesley Aptekar-Cassels2025-09-241-2/+9
|
* opentelemetry: Use humantime_serde for parsing Durations.Wesley Aptekar-Cassels2025-09-241-0/+3
|
* opentelemetry: Panic if configured for non-localhost HTTP endpoint.Wesley Aptekar-Cassels2025-09-241-0/+8
| | | | | | | | | We may want to add a way to opt out of this check, if someone asks for it. Checking for "localhost" and "127.0.0.1" is not a very robust check for a loopback interface, and it's possible that there could be other situations we can't detect where HTTP is safe (private network, WireGuard tunnel, etc). But I don't expect those to be likely to come up in practice, so this should be fine for now.
* arti: Add more info about OpenTelemetry to example config.Wesley Aptekar-Cassels2025-09-241-2/+6
|
* opentelemetry: Add note about lack of upstream OTLP exporter.Wesley Aptekar-Cassels2025-09-241-0/+3
|
* opentelemetry: Panic on mutex poison.Wesley Aptekar-Cassels2025-09-241-8/+1
|
* opentelemetry: Add some instrument macros.Wesley Aptekar-Cassels2025-09-243-3/+11
| | | | | I've added these in places that are useful for the debugging that I've been doing.
* arti: Add experimental support for OpenTelemetry.Wesley Aptekar-Cassels2025-09-244-0/+270
|
* tor-dircommon: Implement proposal 330Clara Engler2025-09-161-5/+4
| | | | | | | This commit implements proposal 330 in the context of `tor-dircommon`, by replacing the single `Authority` structure used in a list context by a single structure called `AuthorityContacts` which contains all v3idents, upload, download, and vote endpoints in one central place.
* Merge branch 'hss-ctor-migrate-test' into 'main'gabi-2502025-09-111-4/+3
|\ | | | | | | | | arti: test: Add integration test suite for `hss ctor-migrate` See merge request tpo/core/arti!3216
| * arti: test: Add integration test for `hss ctor-migrate`hjrgrn2025-09-101-4/+3
| |
* | arti-client: Remove wrong statement in exampleClara Engler2025-09-091-3/+0
| |
* | arti: Update `arti-example-config.toml`Clara Engler2025-09-091-1/+7
|/
* arti: keys: Add `keys check-integrity` CLI toolhjrgrn2025-09-042-18/+221
|
* Document why we are using ring with rustlsNick Mathewson2025-08-191-0/+4
| | | | See #1977, #2122.
* Merge branch 'circ-react-report' into 'main'opara2025-08-182-0/+112
|\ | | | | | | | | | | | | tor-error,arti: Support tracing fields in the `_report!` macros Closes #2096 and #2116 See merge request tpo/core/arti!3142
| * arti: log errors using `tor_error::ErrorReport`Steven Engler2025-08-181-1/+14
| |
| * arti: log error fields lastSteven Engler2025-08-182-0/+99
| |
* | Merge branch 'document-max-mem-overhead' into 'main'Nick Mathewson2025-08-181-4/+8
|\ \ | |/ |/| | | | | Note that not all memory is tracked by memqouta See merge request tpo/core/arti!3165
| * Add a disclaimer that not all memory usage is trackedNick Mathewson2025-08-181-0/+3
| | | | | | | | Partially addresses #2102.
| * Light reformatting on system.memory documentation.Nick Mathewson2025-08-181-4/+5
| | | | | | | | | | This mainly separates the two options, and adds the word "tracked".
* | Merge branch 'fix-nightly-warn' into 'main'Nick Mathewson2025-08-181-1/+1
|\ \ | |/ |/| | | | | Fix clippy errors on nightly See merge request tpo/core/arti!3148
| * clippy: fix `clippy::implicit_clone` errorsSteven Engler2025-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ```text error: implicitly cloning a `String` by calling `to_string` on its dereferenced type --> crates/tor-config/src/lib.rs:109:32 | 109 | V::String(_, s) => s.to_string(), | ^^^^^^^^^^^^^ help: consider using: `s.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone note: the lint level is defined here --> crates/tor-config/src/lib.rs:20:9 | 20 | #![deny(clippy::implicit_clone)] | ^^^^^^^^^^^^^^^^^^^^^^ ```
* | arti: Add more explanation of pow_rend_queue_depth to example config.Wesley Aptekar-Cassels2025-08-131-1/+3
| |
* | tor-hsservice: Add pow_rend_queue_depth config option.Wesley Aptekar-Cassels2025-08-131-0/+7
| |
* | arti: keys: Fix `display_keystore_entries` outputhjrgrn2025-08-091-0/+1
|/
* Merge branch 'update_to_edition_2024_v2' into 'main'Nick Mathewson2025-08-079-41/+46
|\ | | | | | | | | | | | | Update code for Edition 2024 (second attempt) Closes #2101 See merge request tpo/core/arti!3137
| * Fix warnings and errors from edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | The two main causes of errors were: - Since some of the lifetime rules have changed, we no longer need to do as many "bind a variable and immediately return it" patterns, and so clippy now warns about them. - We needed to adjust the explicit captures (`use<...>`) in a couple of our RPIT instances.
| * Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-079-37/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
| * Update code for Edition 2024Nick Mathewson2025-08-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Run cargo fix --edition 2. Selectively revert the "if let"->"match" changes. These changes are meant to protect us from the lifetime changes for "if let" bindings in Rust 2024. But we're not actually relying on the old lifetime rules anywhere, and the match syntax here is quite ugly. 3. Automatically revert `$pat:expr_2021` to `$pat:expr`. (We don't actually want to restrict the expression syntax that our macros accept). Done with `git grep -l expr_2021 | xargs perl -i -pe 's/expr_2021/expr/g;'` 4. Run cargo fmt.
* | arti: keys: Improve CLI output by distinguishing KeyPath variantshjrgrn2025-08-061-17/+64
|/ | | | | * Update `display_entry` function to handle different `KeyPath` variants * Add functions `display_arti_entry` and `display_ctor_entry`
* arti::socks: Resolve a TODO MSRV entry.Nick Mathewson2025-08-051-6/+3
|
* arti: update example configSteven Engler2025-07-311-5/+16
|
* arti: make "memquota" feature a no-opSteven Engler2025-07-311-31/+17
|
* Use new DisplayRedacted/DebugRedacted code for HsId.Nick Mathewson2025-07-312-3/+11
| | | | Closes #2012.
* arti: hss: Add `arti hss ctor-migrate`hjrgrn2025-07-314-44/+233
|
* arti: raw: Rename `arti keys-raw remove-by-path`hjrgrn2025-07-151-12/+12
| | | | | * arti: raw: `remove-by-path` is now `remove-by-id` * arti: raw: Adjust integration tests
* arti: keys: Add arti keys-rawhjrgrn2025-07-144-39/+104
| | | | | | | | | | | | | | | | | | | * CLI: Add `keys-raw` and subcommand `remove-by-path` * arti: Add `arti::subcommand::raw` for the CLI `keys-raw` * tor-keymgr: Add `ArtiNativeKeystoreError::UnexpectedRawEntry`, `ArtiEphemeralKeystoreError::NotSupported` * tor-keymgr: Add `tor-keymgr::raw` module * tor-keymgr: Add `Keystore::remove_unchecked` * tor-keymgr: Change `Keystore::list` to return `KeystoreEntry` * tor-keymgr: Add field `KeystoreEntry::raw_id` * doc: Update keys.md * doc: Add raw.md * tor-keymgr: BREAKING: `UnrecognizedEntryError::new` associated function is now only accessible within the crate `tor-keymgr` * tor-keymgr: BREAKING: `UnrecognizedEntryId` is renamed to `UnrecognizedEntry` * tor-keymgr: BREAKING: `KeyMgr::list()` and `Keystore::list()` now return `Result<Vec<KeystoreEntryResult<KeystoreEntry>>>`
* Typo fixes (automatic and hand-verified)Nick Mathewson2025-07-091-1/+1
| | | | Made with https://crates.io/crates/typos-cli
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-072-0/+2
| | | | See #2060.
* arti: keys: Fix arti keys help messagehjrgrn2025-06-231-2/+2
|
* arti console logging: use stderr instead of stdoutJim Newsome2025-06-172-4/+4
| | | | Fixes #2024
* arti: Add keys list and keys list-keystoreshjrgrn2025-06-123-1/+203
|
* expose socks proxy some moretrinity-1686a2025-05-301-3/+21
|
* *: suppress cognitive_complexity warnings from nightlyNick Mathewson2025-05-294-0/+7
| | | | | | | | | | | | | Apparently clippy nightly is better (or worse?) about detecting complex functions than before, so I'm suppressing these warnings where they occur. I have mixed feelings about these warnings: On the plus side, they really do help to detect functions that are twistier than they need to be. On the minus side, they get confused by tracing macros, and the "allows" do pile up. But on the plus side, those "allows" do provide a way to find functions that need to be refactored, and they are never uglier than the functions they decorate.