| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | pass reconfigure_lock guard into TorClient::reconfigure_inner | sw1tch | 2023-07-25 | 1 | -3/+8 |
| | | |||||
| * | cargo fmt | sw1tch | 2023-07-24 | 1 | -1/+3 |
| | | |||||
| * | fixes deadlock in TorClient::reconfigure | sw1tch | 2023-07-24 | 1 | -1/+34 |
| | | |||||
| * | Revert "keymgr: Require callers to be explicit about which keystore to get ↵ | Gabriela Moldovan | 2023-07-21 | 1 | -6/+4 |
| | | | | | | | | | | keys from." This reverts commit 38a6c74c7894dc96b16c9039cacc2a4023977b05. This also updates some tests to make them compile with the reverted version of the code. | ||||
| * | keymgr: Require callers to be explicit about which keystore to get keys from. | Gabriela Moldovan | 2023-07-20 | 1 | -4/+6 |
| | | |||||
| * | keymgr: Explicitly specify the default keystore for `KeyMgr`. | Gabriela Moldovan | 2023-07-20 | 1 | -4/+5 |
| | | |||||
| * | keymgr-config: Make fields private, add function for checking if keystore is ↵ | Gabriela Moldovan | 2023-07-20 | 1 | -5/+1 |
| | | | | | | | | | | enabled. Hiding the underlying value of `enabled` enables us to give it a different `auto` value depending on whether the `keymgr` feature is enabled or not (it defaults to `true` if `keymgr` is enabled, and `false` otherwise). | ||||
| * | arti-client: Use a default keystore config if `experimental-api` is disabled. | Gabriela Moldovan | 2023-07-20 | 1 | -18/+15 |
| | | | | | | | | The `experimental-api` was only meant to apply to the use of the unstable `ArtiNativeKeystoreConfig` in the Arti config. `experimental-api` was _not_ supposed to be used for enabling/disabling the keystore (that's what the `enabled` flag is for). | ||||
| * | arti-client: Move variable closer to where it's used (fmt). | Gabriela Moldovan | 2023-07-20 | 1 | -24/+21 |
| | | |||||
| * | arti-client: Move variable closer to where it's used. | Gabriela Moldovan | 2023-07-20 | 1 | -2/+1 |
| | | |||||
| * | arti-client: Make the `KeyMgr` optional. | Gabriela Moldovan | 2023-07-20 | 1 | -34/+43 |
| | | | | | | If the Arti keystore is disabled, we have nothing to initialize the `KeyMgr` with, so we might as well make it optional. | ||||
| * | arti-client: Add TODO about expanding the keystore_dir in build(). | Gabriela Moldovan | 2023-07-17 | 1 | -0/+2 |
| | | |||||
| * | arti-client: Log whether a keystore is in use. | Gabriela Moldovan | 2023-07-13 | 1 | -1/+4 |
| | | |||||
| * | arti-client: Use the config struct from tor-keymgr. | Gabriela Moldovan | 2023-07-13 | 1 | -7/+12 |
| | | |||||
| * | arti-client: Log whether the client auth keys were retrieved. | Gabriela Moldovan | 2023-07-12 | 1 | -0/+2 |
| | | |||||
| * | arti-client: Remove outdated TODO. | Gabriela Moldovan | 2023-07-11 | 1 | -3/+0 |
| | | | | | These errors aren't ignored anymore. | ||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | Remove some needless into_iter() calls. | Nick Mathewson | 2023-07-10 | 1 | -2/+1 |
| | | | | | | | Clippy nightly now detects when you're calling into_iter() and passing the result into something that accepts an `impl IntoIterator`. | ||||
| * | Throughout: Use *_report!() macros for reporting Errors. | Nick Mathewson | 2023-07-07 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | I identified the cases to replace by searching for the string `.report()`. There are a few that I didn't change: * A couple of cases that used anyhow::Error, * One case that reported two Errors. * Two cases in `tor_hsclient::err` that just did `error!("Bug: {}")`. I have also not audited the cases in `tor-hsclient` where we're using `tor_error::Report` manually. Nonetheless, closes #949. | ||||
| * | Finish a sentence in the documentation for TorClient::netdir() | Nick Mathewson | 2023-07-03 | 1 | -1/+2 |
| | | |||||
| * | keystore: Change the dummy HsClientSpecifier to "default". | Gabriela Moldovan | 2023-06-30 | 1 | -1/+1 |
| | | |||||
| * | keymgr: Rename KeyStore to Keystore globally. | Gabriela Moldovan | 2023-06-29 | 1 | -5/+5 |
| | | | | | | We've been capitalizing the "s" in "KeyStore" inconsistently. This `s/KeyStore/Keystore/g` across the codebase. | ||||
| * | Merge branch 'validate-client-spec' into 'main' | Ian Jackson | 2023-06-29 | 1 | -1/+2 |
| |\ | | | | | | | | | keymgr: Validate ArtiPaths, replace HsClientSpecifier with generic ArtiPathComponent See merge request tpo/core/arti!1262 | ||||
| | * | Run rustfmt | Ian Jackson | 2023-06-29 | 1 | -3/+2 |
| | | | |||||
| | * | keymgr: Define an error type for bad `ArtiPathComponents`. | Gabriela Moldovan | 2023-06-29 | 1 | -12/+3 |
| | | | |||||
| | * | arti-client, hsclient: Typealias HsClientSpecifier to ArtiPathComponent. | Gabriela Moldovan | 2023-06-29 | 1 | -1/+12 |
| | | | | | | | | | `ArtiPathComponent` is a more generic version of `HsClientSpecifier`. | ||||
| * | | Merge branch 'keymgr-config' into 'main' | gabi-250 | 2023-06-29 | 1 | -9/+5 |
| |\ \ | | | | | | | | | | | | | arti-client: Add keystore_dir to StorageConfig. See merge request tpo/core/arti!1312 | ||||
| | * | | arti-client: Fix clippy lints. | Gabriela Moldovan | 2023-06-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | Part of #891 | ||||
| | * | | arti-client: Load keystore dir and permissions from config. | Gabriela Moldovan | 2023-06-29 | 1 | -6/+2 |
| | | | | | | | | | | | | | Part of #891 | ||||
| | * | | arti-client: Add keystore_dir to StorageConfig. | Gabriela Moldovan | 2023-06-29 | 1 | -4/+4 |
| | |/ | |||||
| * | | arti-client: StreamPrefs: Add security note | Ian Jackson | 2023-06-29 | 1 | -0/+7 |
| | | | |||||
| * | | Turn off HS client connections by default | Ian Jackson | 2023-06-29 | 1 | -1/+1 |
| |/ | | | | As per IRC discussion, re lack of Vanguards. | ||||
| * | HS configuration: Plumb configuration through (fmt) | Ian Jackson | 2023-06-28 | 1 | -1/+4 |
| | | | | | Apply deferred rustfmt churn. | ||||
| * | HS configuration: Plumb configuration through (clippy) | Ian Jackson | 2023-06-28 | 1 | -4/+4 |
| | | | | | Apply deferred clippy churn. | ||||
| * | HS configuration: Plumb configuration through | Ian Jackson | 2023-06-28 | 1 | -2/+2 |
| | | | | | | Invent a trait a la circmgr config for the hs client connector config. Plumb a suitable value all the way through to the code that will use it. | ||||
| * | HS configuration: Add and honour `allow_onion_addrs` in configuration | Ian Jackson | 2023-06-28 | 1 | -5/+10 |
| | | | | | | | | We put this in `[address_filter]`. The interaction with the corresponding stream preference is a bit complicated. We must turn the stream pref into a `BoolOrAuto`. | ||||
| * | tor-hsclient: Expire old data eventually | Ian Jackson | 2023-06-23 | 1 | -1/+12 |
| | | | | | Otherwise we'll fill up our RAM with junk. | ||||
| * | keymgr: Move dummy implementation to tor-keymgr. | Gabriela Moldovan | 2023-06-22 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'doc_link_fix' into 'main' | Alexander Færøy | 2023-06-21 | 1 | -1/+1 |
| |\ | | | | | | | | | Fix a rustdoc link. See merge request tpo/core/arti!1274 | ||||
| | * | Fix a rustdoc link. | Nick Mathewson | 2023-06-21 | 1 | -1/+1 |
| | | | |||||
| * | | Remove extra 'this' in some methods | Saksham Mittal | 2023-06-21 | 1 | -3/+3 |
| | | | |||||
| * | | Create chanmgr() method in TorClient | Saksham Mittal | 2023-06-21 | 1 | -0/+9 |
| |/ | |||||
| * | arti-client: Remove unnecessary #[cfgs(...)]. | Gabriela Moldovan | 2023-06-20 | 1 | -5/+0 |
| | | | | | | | | | The `keymgr` module selects one of the key manager implementations (dummy or "real") and exposes all the APIs we need, so we can remove all of the cfgs related to the `keymgr` feature from `client.rs`. Part of #897 | ||||
| * | arti-client: Create module exposing one of the key manager APIs. | Gabriela Moldovan | 2023-06-20 | 1 | -5/+1 |
| | | | | | | | | | This moves the key manager API selection (dummy vs "real" impl) into the `keymgr` module. The module exports the dummy API if the `keymgr` feature is disabled, and the impl from `tor-keymgr` otherwise. Part of #897 | ||||
| * | arti-client, keymgr: Introduce Mistrust settings and enforce FS permissions. | Gabriela Moldovan | 2023-06-20 | 1 | -3/+9 |
| | | |||||
| * | arti-client: Temporarily ignore key store errors. | Gabriela Moldovan | 2023-06-20 | 1 | -3/+10 |
| | | | | | | | | | | We currently initialize the `ArtiNativeKeyStore` with a dummy root dir, so when `ArtiNativeKeyStore` starts validating directories, this code will start to fail. Let's preemptively ignore any errors coming from `ArtiNativeKeyStore::new`. This is temporary and will be removed when we introduce the key store config (and a real default value for the keystore root dir). | ||||
| * | arti-client: hs: remove some now-obsolete allows | Ian Jackson | 2023-06-16 | 1 | -3/+0 |
| | | |||||
| * | arti-client: Provide ErrorDetailDiscriminants for convenient testing | Ian Jackson | 2023-06-16 | 1 | -2/+1 |
| | | | | | | ErrorDetail isn't PartialEq so we can't assert_eq! it. But the discriminants will be. | ||||
| * | arti-client: StreamPrefs::connect_to_onion_services: honour | Ian Jackson | 2023-06-16 | 1 | -2/+1 |
| | | |||||
| * | arti-client: StreamPrefs::connect_to_onion_services: docs | Ian Jackson | 2023-06-16 | 1 | -1/+6 |
| | | | | | This disposes of the TODO as well. | ||||
