summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | tor-netdir: Use `rsidx` consistent for `RouterStatusIdx`Ian Jackson2023-03-272-42/+42
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an `IndexVec` key type. Some places used `idx`, some `rsi`, some `rs_idx`. Use `rsidx` for it everywhere, including in locals, function names, and fields. `rsidx` is a compromise. `rsi` might be a bit opaque, but we want a one-"word" name since it appears inside other names.
* | | | Merge branch 'encode-hsdesc-blinded-keys' into 'main'Nick Mathewson2023-03-275-29/+79
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Use the type system to enforce use of blinded keys. See merge request tpo/core/arti!1081
| * | | Use the type system to enforce use of blinded keys.Gabriela Moldovan2023-03-275-29/+79
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hidden services use blinded singing keys derived from the identity key to sign descriptor signing keys. Before this patch, the hidden descriptor builder represented its blinded signing keys (`blinded_id`) as plain `ed25519::Keypair`s. This was not ideal, as there was nothing preventing the caller from accidentally initializing `blinded_id` with an unblinded keypair. This introduces a new `HsBlindKeypair` type to represent blinded keypairs. Signed-off-by: Gabriela Moldovan <[email protected]>
* | | Merge branch 'typos' into 'main'Ian Jackson2023-03-271-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Fix typo See merge request tpo/core/arti!1080
| * | | Fix typoDimitris Apostolou2023-03-241-1/+1
| | | |
* | | | Merge branch 'pt_config_build' into 'main'Nick Mathewson2023-03-251-1/+57
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Example code for BridgeConfigBuilder Closes #791 See merge request tpo/core/arti!1074
| * | | tor_client: Add some example code for BridgeConfig.Nick Mathewson2023-03-241-0/+49
| | | | | | | | | | | | | | | | Closes #791
| * | | arti-client: Make TransportConfigListBuilder public.Nick Mathewson2023-03-241-1/+8
|/ / / | | | | | | | | | | | | | | | | | | Without this there's no convenient way to add a transport without messing with serde/toml. Found while working on #791
* | | Merge branch 'encode_hsdesc' into 'main'Ian Jackson2023-03-2416-71/+1257
|\ \ \ | |/ / |/| | | | | | | | Add builder for encoding hidden service descriptors. See merge request tpo/core/arti!1070
| * | Use transparent structs instead of builders.Gabriela Moldovan2023-03-244-100/+95
| | | | | | | | | | | | | | | | | | | | | | | | The consensus seems to be the builders don't add much value, see [this comment]. [this comment]: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1070#note_2889488 Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Refactor the inner doc tests to be more DRY.Gabriela Moldovan2023-03-241-53/+55
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Remove `NetdocText` and replace its uses with `String`.Gabriela Moldovan2023-03-246-66/+21
| | | | | | | | | | | | | | | | | | | | | | | | `NetdocText` is a wrapper around a `String` and a type marker. The type annotation proved of limited use, and made the netdoc builder API somewhat awkward to use. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Remove some unnecessary visibility restrictions.Gabriela Moldovan2023-03-243-130/+74
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Create a new `IntroPointDesc` type.Gabriela Moldovan2023-03-242-21/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike `hsdesc::IntroPointDesc`, `hsdesc::build::IntroPointDesc` represents link specifiers as `LinkSpec`s rather than `UnparsedLinkSpec`s. Since this is a general-purpose representation of an introduction point and not merely an intermediate representation for decoding/encoding, it will probably need to be factored out of `tor-netdoc` at some point. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Use the less ambiguous inner/middle/outer terminology.Gabriela Moldovan2023-03-243-17/+19
| | |
| * | Add builder for encoding hidden service descriptors.Gabi Moldovan2023-03-2416-44/+1280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces the `NetdocBuilder` trait described in `netdoc-builder.md` and a new `tor-netdoc::doc::hsdesc::build` module, which exports the `HsDescBuilder`. Hidden services will use `HsDescBuilder` to build and encode hidden service descriptors. There are several TODOs in the code that I'm planning to address separately. Partially addresses #745. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Define constants for `AuthClient` field lengths.Gabriela Moldovan2023-03-242-7/+19
| | | | | | | | | | | | | | | | | | | | | These are used in multiple places (and will also be used by the HS descriptor encoder later on), so let's make them named constants. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | Implement `ItemArgument` for `String`.Gabriela Moldovan2023-03-241-0/+6
|/ / | | | | | | | | | | | | This makes some code a bit more concise, as it allows us to make `Strings` into `ItemArgument`s without calling `.as_str()`. Signed-off-by: Gabriela Moldovan <[email protected]>
* | Merge branch 'rpc-meta-draft' into 'main'Ian Jackson2023-03-241-0/+568
|\ \ | | | | | | | | | | | | Start drafting a dev note about a JSON-based OO RPC design. See merge request tpo/core/arti!1061
| * | rpc-meta-draft: Sketch an even-lower-level API.Nick Mathewson2023-03-241-0/+11
| | |
| * | rpc-draft: Sketch out more commands to add, start sketching APIsNick Mathewson2023-03-241-1/+112
| | |
| * | rpc-meta: clarify when "object" means "JSON object".Nick Mathewson2023-03-241-8/+7
| | |
| * | rpc-meta: expand on handle/reference semantics.Nick Mathewson2023-03-241-5/+24
| | |
| * | rpc-meta: Use "will" for what Arti does, "must" for what client does.Nick Mathewson2023-03-241-4/+4
| | |
| * | rpc-meta: Rename intermediate response to "update".Nick Mathewson2023-03-241-25/+23
| | |
| * | rpc-meta-draft: consistently say "request" or "method", not "command".Nick Mathewson2023-03-241-15/+15
| | |
| * | rpc-meta-draft: make a number of localized changes from the review.Nick Mathewson2023-03-241-21/+103
| | |
| * | Start drafting a dev note about a JSON-based OO RPC design.Nick Mathewson2023-03-241-0/+348
|/ /
* | Merge branch 'shellexpand' into 'main'Ian Jackson2023-03-241-27/+7
|\ \ | | | | | | | | | | | | Update to shellexpand 3.1.0 so we can use dirs 5 everywhere See merge request tpo/core/arti!1076
| * | Update to shellexpand 3.1.0 so we can use dirs 5 everywhereIan Jackson2023-03-241-27/+7
|/ / | | | | | | | | | | | | | | Results of precisely cargo update -p shellexpand Incorporates changes I have made to shellexpand to allow use of dirs 4 *or* dirs 5.
* | Merge branch 'openssl_update' into 'main'Ian Jackson2023-03-242-7/+7
|\ \ | | | | | | | | | | | | Update required openssl version See merge request tpo/core/arti!1077
| * | Update required openssl versionNick Mathewson2023-03-242-7/+7
| | | | | | | | | | | | cargo-audit is complaining about 0.10.45.
* | | Merge branch 'typos' into 'main'Nick Mathewson2023-03-242-2/+2
|\ \ \ | |/ / |/| | | | | | | | Fix typos See merge request tpo/core/arti!1075
| * | Fix typosDimitris Apostolou2023-03-242-2/+2
|/ /
* | Merge branch 'paths' into 'main'Alexander Færøy2023-03-232-5/+64
|\ \ | | | | | | | | | | | | | | | | | | Do minimal $ and ~ handling even without expand-paths and fix build Closes #790 See merge request tpo/core/arti!1069
| * | tor-config: Apply deferred rustfmt churnIan Jackson2023-03-211-4/+4
| | |
| * | tor-config: Do minimal $ and ~ handling even without expand-pathsIan Jackson2023-03-212-2/+58
| | | | | | | | | | | | Fixes #790
| * | tor-config: Make CfgPathError PartialEq but only when testingIan Jackson2023-03-211-0/+1
| | | | | | | | | | | | So, this is not a semver addition.
| * | tor-config: Fix build when expand-paths is disabledIan Jackson2023-03-211-2/+5
| | |
| * | tor-config: paths, unexpanded: use infallible conversionIan Jackson2023-03-211-2/+1
| | | | | | | | | | | | str can always be made into a PathBuf.
* | | Merge branch 'upgrade_dirs' into 'main'Alexander Færøy2023-03-234-23/+43
|\ \ \ | | | | | | | | | | | | | | | | Bump to the lastest versions of dirs and directories. See merge request tpo/core/arti!1072
| * | | Bump to the lastest versions of dirs and directories.Nick Mathewson2023-03-224-23/+43
| | | |
* | | | Merge branch 'circuit_accessor' into 'main'Ian Jackson2023-03-232-2/+34
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an experimental circuit accessor to DataStream. Closes #784 See merge request tpo/core/arti!1073
| * | | | Add an experimental circuit accessor to DataStream.Nick Mathewson2023-03-232-2/+34
|/ / / / | | | | | | | | | | | | Closes #784.
* | | | Merge branch 'hsplumb' into 'main'Ian Jackson2023-03-2314-53/+158
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Plumb HS client connections through down to tor-hsclient See merge request tpo/core/arti!1071
| * | | Apply deferred rustfmt churnIan Jackson2023-03-231-1/+4
| | | |
| * | | arti-client: Include redacted HsId in ObtainHsCircuit errorIan Jackson2023-03-233-5/+5
| | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1071/diffs?commit_id=580fe1118dbbbfa086d11b28e3e26d7c91afe21c#fbd7ab2d6d0a5b515697d4f9f99a42ebd508aa4b_153_165
| * | | safelog: impl From<T> for Redacted<T>Ian Jackson2023-03-232-0/+2
| | | | | | | | | | | | | | | | I think this is uncontroversial; we already have it for Sensitive.
| * | | arti-client: Fix wording of docs for TorClient::isolationIan Jackson2023-03-231-1/+1
| | | |
| * | | arti-client: Strengthen an HS todoNick Mathewson2023-03-231-1/+1
| | | |