summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'keymgr-cleanup' into 'main'David Goulet2024-11-203-39/+4
|\ \ \ | | | | | | | | | | | | | | | | tor-keymgr: Remove dead code See merge request tpo/core/arti!2638
| * | | tor-keymgr: Remove now-unnecessary cfg_attr.Gabriela Moldovan2024-11-201-6/+0
| | | | | | | | | | | | | | | | This doesn't seem to be needed anymore.
| * | | tor-keymgr: Remove now-unnecessary clippy allows from dummy impl.Gabriela Moldovan2024-11-201-2/+0
| | | |
| * | | tor-keymgr: Feature-gate RelKeyPath::from_parts constructor.Gabriela Moldovan2024-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | Otherwise, we get a dead code warning when the `ctor-keystore` feature is disabled.
| * | | tor-keymgr: Allow dead code in dummy KeyMgr.Gabriela Moldovan2024-11-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fields are never read but need to be present in order for the dummy `KeyMgrBuilder` to have the same interface as the real one. (We could of course manually implement the builder, or let the dummy `KeyMgrBuilder` impl diverge from the real one, but for now let's leave this as-is and simply mark the fields as unused).
| * | | tor-keymgr: Remove unused dummy error type.Gabriela Moldovan2024-11-201-16/+1
| | | | | | | | | | | | | | | | | | | | We no longer have any dummy keymgr operations that return an error, so this error type is unused.
| * | | tor-keymgr: Remove unused imports from dummy module.Gabriela Moldovan2024-11-201-2/+1
| | | |
| * | | tor-keymgr: Remove unused dummy KeyType.Gabriela Moldovan2024-11-201-14/+0
| | | | | | | | | | | | | | | | This is not used anywhere (or exported publicly).
* | | | Merge branch 'connect-point-1' into 'main'Nick Mathewson2024-11-2013-27/+1648
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Begin implementation work on RPC connect points See merge request tpo/core/arti!2629
| * | | connect point: Use new CfgPathResolver api.Nick Mathewson2024-11-191-12/+22
| | | |
| * | | connect point: handle unrecognized auth variants.Nick Mathewson2024-11-193-6/+39
| | | |
| * | | Connect point: Improve robustness against new SocketAddr variantsNick Mathewson2024-11-191-2/+10
| | | |
| * | | connect point: add a test for ConflictingMembers.Nick Mathewson2024-11-191-0/+13
| | | |
| * | | connect-point: Rename Reps to Addresses.Nick Mathewson2024-11-191-7/+7
| | | |
| * | | connect point: Add server support.Nick Mathewson2024-11-192-0/+71
| | | | | | | | | | | | | | | | | | | | ("Server support" here means binding to a socket and reading a cookie file.)
| * | | connect point: Add client support.Nick Mathewson2024-11-193-0/+182
| | | | | | | | | | | | | | | | | | | | ("Client support" here means connecting to a socket and reading a cookie file.)
| * | | connect point: Treat unrecognized auth types as Decline.Nick Mathewson2024-11-191-0/+9
| | | |
| * | | connect points: Validate more correctness propertiesNick Mathewson2024-11-191-4/+23
| | | | | | | | | | | | | | | | | | | | In particular, we only allow binding/connecting to localhost, and we only support None auth for Unix connections.
| * | | connect points: Remember original string addressesNick Mathewson2024-11-193-6/+61
| | | | | | | | | | | | | | | | The cookie authentication protocol will need these.
| * | | rpc-connect: Types for cookie authentication.Nick Mathewson2024-11-194-1/+193
| | | | | | | | | | | | | | | | (Cookie authentication is described in rpc-cookie-sketch.md)
| * | | rpc-connect: Move tempdir() helper to a new moduleNick Mathewson2024-11-193-17/+36
| | | |
| * | | RPC connect points: Facility to load from files.Nick Mathewson2024-11-194-1/+427
| | | |
| * | | connect point: implement FromStr.Nick Mathewson2024-11-191-17/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While doing so, tidy up the errors that we detect when parsing a connect point, so that we can differentiate ones that indicate an unsupported connect-point type. This means that fewer types now implement Deserialize; that's probably a good thing.
| * | | tor-connect-point: new crate to manage RPC connect pointsNick Mathewson2024-11-196-27/+558
| | | | | | | | | | | | | | | | See doc/dev/rpc-book/src/rpc-connect-sketch.md for details.
| * | | CfgAddr: Function to check whether substitutions applyNick Mathewson2024-11-191-0/+10
| | | | | | | | | | | | | | | | We'll need this for implementing the connect point logic.
| * | | tor-config-path: Note an unused error variantNick Mathewson2024-11-191-0/+2
|/ / /
* | | Merge branch 'config-paths' into 'main'opara2024-11-1817-213/+484
|\ \ \ | | | | | | | | | | | | | | | | tor-config-path: refactor to support a `CfgPathResolver` See merge request tpo/core/arti!2615
| * | | arti-client: change test to use path resolver from `TorClientConfig`Steven Engler2024-11-181-6/+12
| | | |
| * | | tor-config-path: add more documentation to `CfgPathResolver`Steven Engler2024-11-181-0/+9
| | | |
| * | | tor-config-path: remove `Option` from resolver valueSteven Engler2024-11-182-22/+28
| | | |
| * | | arti-client: add path resolver to `TorClient` and `TorClientConfig`Steven Engler2024-11-184-41/+70
| | | | | | | | | | | | | | | | | | | | | | | | Rather than using `arti_client::config::path_resolver()`, third-party code can get the path resolver using `TorClientConfig`s `AsRef<CfgPathResolver>` impl instead.
| * | | arti-client: add a more-comprehensive cfg variable testSteven Engler2024-11-181-10/+35
| | | |
| * | | arti-client: moved two tests from tor-config-pathSteven Engler2024-11-182-23/+20
| | | | | | | | | | | | | | | | Also updated to use the `PATH_RESOLVER` resolver.
| * | | update `CfgPath::path` to use a `CfgPathResolver`Steven Engler2024-11-1813-144/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big change across multiple crates since there isn't a good way to break it up. This changes the signature of `CfgPath::path` to: ``` pub fn path(&self, path_resolver: &CfgPathResolver) -> Result<PathBuf, CfgPathError> { ``` Making this change means that our global `CfgPathResolver` needs to be stored in the 'arti-client' library instead of `tor-config-path`, and must be passed through to anything that calls `path` to expand the variables.
| * | | tor-ptmgr: pass through the `CfgPathResolver`Steven Engler2024-11-183-3/+19
| | | |
| * | | tor-hsservice: pass through the `CfgPathResolver`Steven Engler2024-11-186-15/+55
| | | |
| * | | tor-config-path: begin using the `CfgPathResolver`Steven Engler2024-11-181-20/+28
| | | |
| * | | tor-config-path: add unused `CfgPathResolver`Steven Engler2024-11-181-1/+60
| | | |
| * | | tor-config-path: moved 'impl Display for CfgPath' blockSteven Engler2024-11-181-9/+9
| | | |
| * | | tor-config-path: moved two testsSteven Engler2024-11-181-35/+35
|/ / / | | | | | | | | | | | | These tests were in the 'test_serde' module, which wasn't the right place for them.
* | | Merge branch 'dummy-keymgr-docs' into 'main'Ian Jackson2024-11-182-14/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-keymgr: Explain why the dummy keymgr is missing some functions. Closes #1732 See merge request tpo/core/arti!2631
| * | | tor-keymgr: Say that another option is to enable keymgr unconditionally.Gabriela Moldovan2024-11-141-0/+2
| | | | | | | | | | | | | | | | | | | | This commit applies Diziet's suggestion from https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2631#note_3130234
| * | | tor-keymgr: Remove a couple of dummy KeyMgr functions.Gabriela Moldovan2024-11-142-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are not actually needed anywhere. In fact, it's a bad idea to have them in the first place (see the comment from the dummy `KeyMgr` impl block).
| * | | tor-keymgr: Explain why the dummy keymgr is missing some functions.Gabriela Moldovan2024-11-141-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is based on a recent discussion with @Diziet on IRC. For the full context, see the chat log attached to the ticket. Closes #1732
* | | | Merge branch 'relay-bin-2' into 'main'opara2024-11-145-35/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | arti-relay: remove runtime-related features Closes #1744 See merge request tpo/core/arti!2634
| * | | arti-relay: small change to log level commentSteven Engler2024-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | In arti this option is just a convenience function to override the configuration option, so we'll probably want to do the same thing.
| * | | arti-relay: remove TODO comment about runtimesSteven Engler2024-11-141-7/+3
| | | |
| * | | arti-relay: remove runtime/tls-related featuresSteven Engler2024-11-143-27/+5
| |/ /
* | | Merge branch 'keymgr-cert-note' into 'main'gabi-2502024-11-141-0/+412
|\ \ \ | | | | | | | | | | | | | | | | doc/dev/notes: keymgr-certificates: Add note about certificate management. See merge request tpo/core/arti!2565
| * | | doc/dev/notes: keymgr-certificates: Clarify how keymgr might generate the cert.Gabriela Moldovan2024-11-141-2/+3
| | | | | | | | | | | | | | | | | | | | This is not necessarily set in stone, but it seems like a plausible way of going about this.