summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | tor-keymgr: Add an error type for keystore corruption.Gabriela Moldovan2023-11-022-1/+30
| | | | |
| * | | | tor-keymgr: Use ArrayVec to avoid an unnecessary allocation.Gabriela Moldovan2023-11-023-2/+5
| | | | |
| * | | | tor-keymgr: Use parse() instead of from_str().Gabriela Moldovan2023-11-021-5/+3
| | | | |
| * | | | tor-keymgr: Add TODO about supporting multiple key denotators.Gabriela Moldovan2023-11-021-0/+5
| | | | |
| * | | | dev doc: Update keymgr paths to mention the new denotator separator.Gabriela Moldovan2023-11-021-3/+3
| | | | |
| * | | | tor-keymgr: Add test for the KeyDenotator impl for TimePeriod.Gabriela Moldovan2023-11-021-0/+11
| | | | |
| * | | | tor-keymgr: Remove unused KeyDenotator::glob() function.Gabriela Moldovan2023-11-021-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | We no longer need this function now that we always match the entire denotator rather than its individual components,
| * | | | tor-keymgr: Add test for ArtiPath denotator validation.Gabriela Moldovan2023-11-021-0/+22
| | | | |
| * | | | tor-keymgr: Update the test for paths with `+` as a disallowed char.Gabriela Moldovan2023-11-021-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `'+'` is now allowed to occur once within an `ArtiPath` (but **not** within an `ArtiPathComponent`), so we need to special case the `"c++"` test.
| * | | | tor-hsservice: Use KeyDenotator::decode instead of manually decoding the ↵Gabriela Moldovan2023-11-021-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | denotator. Note that instead of matching each individual component of a key denotator (e.g. using a glob pattern like `*_*_*`), we now match the entire denotator (using the `*` pattern) and let `KeyDenotator::decode` handle its parsing. In the long run, this approach should reduce code duplication (as the decoding logic for each type is centralized in its `KeyDenotator` implementation) and the need for complex glob patterns. Closes #1070
| * | | | tor-keymgr: Use the new denotator separator instead of underscore.Gabriela Moldovan2023-11-022-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Underscores are used within `ArtiPath`s as visual separators. To reduce ambiguity, we now use a different character for separating the key denotators (e.g. time periods) from the rest of the `ArtiPath`. Closes #1063
| * | | | tor-keymgr: Add a constant for the denotator separator.Gabriela Moldovan2023-11-022-1/+9
| | | | |
| * | | | tor-keymgr: Remove now-outdated TODOs.Gabriela Moldovan2023-11-021-4/+0
| | | | |
| * | | | tor-keymgr: Rename KeyDenotator::display() to KeyDenotator::encode().Gabriela Moldovan2023-11-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This renames the serialization function to `encode()` for consistency with its `KeyDenotator::decode()` counterpart.
| * | | | tor-keymgr: Add KeyDenotator::decode for decoding key denotators.Gabriela Moldovan2023-11-021-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `KeyDenotator::decode` will soon replace the ad-hoc `TimePeriod` parsing logic from ipt_establish.rs. Part of #1070
| * | | | tor-keymgr: Remove unnecessary KeyDenotator impl.Gabriela Moldovan2023-11-021-10/+0
| | | | |
| * | | | tor-keymgr: Remove derive_meta arg from KeyMgr::list_matching (fmt).Gabriela Moldovan2023-11-022-25/+18
| | | | |
| * | | | tor-keymgr: Remove derive_meta arg from KeyMgr::list_matching.Gabriela Moldovan2023-11-022-21/+15
|/ / / / | | | | | | | | | | | | | | | | This addresses the TODO that resulted from this thread https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1677#note_2955700
* | | | Merge branch 'intro2_replay_log' into 'main'Nick Mathewson2023-11-026-1/+482
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Initial replay-log functionality See merge request tpo/core/arti!1725
| * | | replay: Remove false-positive special-casing in testsNick Mathewson2023-11-021-31/+10
| | | | | | | | | | | | | | | | | | | | | | | | (The actual false positive rate for these cases is very small, since the filters are very much not full. I haven't been able to hit one in hours of looping.)
| * | | Add a missing backtick.gabi-2502023-11-021-1/+1
| | | |
| * | | Use io::Result to shorten return type.gabi-2502023-11-021-1/+1
| | | |
| * | | Add BSL-1.0 license to permitted listNick Mathewson2023-11-021-0/+1
| | | |
| * | | Add a replay log to IptMsgHandler.Nick Mathewson2023-11-021-0/+35
| | | | | | | | | | | | | | | | | | | | Right now, this is always an ephemeral log, which isn't right: There are TODO comments here explaining what to do instead.
| * | | hss: Add functionality for a persistent replay log.Nick Mathewson2023-11-024-1/+467
|/ / / | | | | | | | | | See comments for design notes.
* | | Merge branch 'hss-err-misc' into 'main'Ian Jackson2023-11-012-2/+22
|\ \ \ | |/ / |/| | | | | | | | HSS misc tweaks See merge request tpo/core/arti!1718
| * | HSS: impl HasKind for FatalErrorIan Jackson2023-11-011-0/+13
| | |
| * | HSS: publisher: Add ReactorError::Other containing FatalErrorIan Jackson2023-11-011-2/+9
| | |
* | | Merge branch 'warning' into 'main'gabi-2502023-11-011-2/+2
|\ \ \ | | | | | | | | | | | | | | | | tor-keymgr: Fix a broken docs link See merge request tpo/core/arti!1721
| * | | tor-keymgr: Fix a broken docs linkIan Jackson2023-11-011-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: cargo doc --workspace $f --document-private-items 1 | //! [`KeySpecifier`] implementations for hidden service keys. | ^^^^^^^^^^^^ no item named `KeySpecifier` in scope 8 | /// A helper for defining service [`KeySpecifier`]s. | ^^^^^^^^^^^^ no item named `KeySpecifier` in scope
* | | Merge branch 'fix-warning' into 'main'Nick Mathewson2023-10-311-3/+3
|\ \ \ | |/ / |/| | | | | | | | tor-hsservice: Remove unnecessary clone()s. See merge request tpo/core/arti!1719
| * | tor-hsservice: Remove unnecessary clone()s.Gabriela Moldovan2023-10-311-3/+3
|/ / | | | | | | | | `cargo clippy --all-features --tests` is reporting warnings about the unnecessary cloning.
* | Merge branch 'abolish-svc-key-role' into 'main'gabi-2502023-10-3110-238/+606
|\ \ | | | | | | | | | | | | | | | | | | tor-keymgr: Add macros for defining key specifiers. Closes #1069 See merge request tpo/core/arti!1710
| * | tor-keymgr: Add TODO HSS about using derive-dhoc.Gabriela Moldovan2023-10-311-0/+3
| | |
| * | tor-hsclient: Add TODO about using the new define_key_specifiers! macro.Gabriela Moldovan2023-10-301-0/+2
| | |
| * | tor-hsservice: Add tests for define_svc_key_specifier.Gabriela Moldovan2023-10-301-0/+62
| | |
| * | tor-hsservice: Define key specifiers using the new helper macro (fmt).Gabriela Moldovan2023-10-305-40/+21
| | |
| * | tor-hsservice: Define key specifiers using the new helper macro.Gabriela Moldovan2023-10-307-186/+79
| | | | | | | | | | | | Closes #1069
| * | tor-hsservice: Add convenience wrapper around define_key_specifier (fmt).Gabriela Moldovan2023-10-301-2/+2
| | |
| * | tor-hsservice: Add convenience wrapper around define_key_specifier.Gabriela Moldovan2023-10-301-0/+83
| | |
| * | tor-keymgr: Add tests for define_key_specifier!.Gabriela Moldovan2023-10-301-0/+106
| | |
| * | tor-keymgr: Add macro for defining key specifiers.Gabriela Moldovan2023-10-301-0/+241
| | |
| * | tor-keymgr: Move the KeyDenotator trait to tor-keymgr (fmt).Gabriela Moldovan2023-10-302-4/+4
| | |
| * | tor-keymgr: Move the KeyDenotator trait to tor-keymgr.Gabriela Moldovan2023-10-305-48/+45
| | | | | | | | | | | | | | | The trait is no longer sealed because users should be allowed to define their own key denotators.
* | | Remove semver.md files from arti 1.1.10Nick Mathewson2023-10-3110-48/+0
| | |
* | | Remove "publish=false" from tor-hsrproxy.arti-v1.1.10Nick Mathewson2023-10-311-2/+0
| | |
* | | Merge branch 'semver-bumps' into 'main'Nick Mathewson2023-10-3132-211/+211
|\ \ \ | | | | | | | | | | | | | | | | Update versions for today's releases. See merge request tpo/core/arti!1716
| * | | no-dependant bumps for crates with changed dependencies.Nick Mathewson2023-10-315-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-rpcbase patchlevel only, depends on async-utils. tor-llcrypto patchlevel only, depends on basic-utils. tor-hspow patchlevel only, depends on hscrypto. tor-linkspec patchlevel only, depends on basic-utils
| * | | Patch version bumps in crates without breaking changesNick Mathewson2023-10-3128-84/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` These crates have new APIs: tor-async-utils ADDED tor-config ADDED tor-hscrypto ADDED tor-netdoc ADDED, plus BREAKING-experimental. These crates have patch-level changes only: tor-netdir (bugfix only). (re-exposes netdoc) arti-rpcserver (tweaks only, uses nothing that broke.) arti 1.1.10, no stable public APIs. ```
| * | | Minor version bumps in crates with breaking changes.Nick Mathewson2023-10-3128-119/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` tor-basic-utils BREAKING tor-rtmock BREAKING. tor-cert BREAKING tor-cell BREAKING tor-proto BREAKING: re-exposes cell. (Also BREAKING-experimental) tor-chanmgr BREAKING: Re-exposes proto. tor-ptmgr BREAKING: re-exposes tor-chanmgr tor-guardmgr BREAKING: re-exposes proto. (Only for ClockSkew I think?) tor-circmgr BREAKING: re-exposes proto tor-dirclient BREAKING tor-hsclient BREAKING, re-exposes proto. tor-hsservice BREAKING, re-exposes proto. tor-hsrproxy BREAKING arti-client BREAKING: re-exposes proto. arti-hyper: BREAKING, re-exposes arti-client. tor-dirmgr Let's assume BREAKING, very high-level. tor-keymgr BREAKING, but experimental. ```