| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | | | tor-rtmock: simplify/reorganise MockRuntimeBuilder::build | Ian Jackson | 2023-11-01 | 1 | -4/+3 | |
| | | | | | | | | | | | | | | | | | | | | | Always reify a default SimpleMockTimeProvider, and then apply the starting_wallclock to it. This will make the next change fit. | |||||
| | * | | | tor-hsservice: timeout_track: Remove some unnecessary allows | Ian Jackson | 2023-11-01 | 1 | -3/+1 | |
| | | | | | | | | | | | | | | | | | Retain the TODO for making this properly pub somewhere. | |||||
| * | | | | Merge branch 'keymgr-globs' into 'main' | gabi-250 | 2023-11-02 | 8 | -84/+176 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor-keymgr: Address various keymgr tech debt items Closes #1070 and #1063 See merge request tpo/core/arti!1722 | |||||
| | * | | | | tor-keymgr: Add TODO about adding helper for implementing KeyDenotator. | Gabriela Moldovan | 2023-11-02 | 1 | -0/+2 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Map all errors to KeystoreCorruptionError (fmt). | Gabriela Moldovan | 2023-11-02 | 1 | -4/+2 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Map all errors to KeystoreCorruptionError. | Gabriela Moldovan | 2023-11-02 | 1 | -2/+2 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Use KeystoreCorruptionError instead of internal!. | Gabriela Moldovan | 2023-11-02 | 1 | -3/+3 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Add an error type for keystore corruption (fmt). | Gabriela Moldovan | 2023-11-02 | 2 | -4/+4 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Add an error type for keystore corruption. | Gabriela Moldovan | 2023-11-02 | 2 | -1/+30 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Use ArrayVec to avoid an unnecessary allocation. | Gabriela Moldovan | 2023-11-02 | 3 | -2/+5 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Use parse() instead of from_str(). | Gabriela Moldovan | 2023-11-02 | 1 | -5/+3 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Add TODO about supporting multiple key denotators. | Gabriela Moldovan | 2023-11-02 | 1 | -0/+5 | |
| | | | | | | ||||||
| | * | | | | dev doc: Update keymgr paths to mention the new denotator separator. | Gabriela Moldovan | 2023-11-02 | 1 | -3/+3 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Add test for the KeyDenotator impl for TimePeriod. | Gabriela Moldovan | 2023-11-02 | 1 | -0/+11 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Remove unused KeyDenotator::glob() function. | Gabriela Moldovan | 2023-11-02 | 1 | -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 Moldovan | 2023-11-02 | 1 | -0/+22 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Update the test for paths with `+` as a disallowed char. | Gabriela Moldovan | 2023-11-02 | 1 | -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 Moldovan | 2023-11-02 | 1 | -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 Moldovan | 2023-11-02 | 2 | -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 Moldovan | 2023-11-02 | 2 | -1/+9 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Remove now-outdated TODOs. | Gabriela Moldovan | 2023-11-02 | 1 | -4/+0 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Rename KeyDenotator::display() to KeyDenotator::encode(). | Gabriela Moldovan | 2023-11-02 | 1 | -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 Moldovan | 2023-11-02 | 1 | -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 Moldovan | 2023-11-02 | 1 | -10/+0 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Remove derive_meta arg from KeyMgr::list_matching (fmt). | Gabriela Moldovan | 2023-11-02 | 2 | -25/+18 | |
| | | | | | | ||||||
| | * | | | | tor-keymgr: Remove derive_meta arg from KeyMgr::list_matching. | Gabriela Moldovan | 2023-11-02 | 2 | -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 Mathewson | 2023-11-02 | 6 | -1/+482 | |
| |\ \ \ \ | |_|/ / |/| | | | | | | | | | | | Initial replay-log functionality See merge request tpo/core/arti!1725 | |||||
| | * | | | replay: Remove false-positive special-casing in tests | Nick Mathewson | 2023-11-02 | 1 | -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-250 | 2023-11-02 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | Use io::Result to shorten return type. | gabi-250 | 2023-11-02 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | Add BSL-1.0 license to permitted list | Nick Mathewson | 2023-11-02 | 1 | -0/+1 | |
| | | | | | ||||||
| | * | | | Add a replay log to IptMsgHandler. | Nick Mathewson | 2023-11-02 | 1 | -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 Mathewson | 2023-11-02 | 4 | -1/+467 | |
| |/ / / | | | | | | | | | | See comments for design notes. | |||||
| * | | | Merge branch 'hss-err-misc' into 'main' | Ian Jackson | 2023-11-01 | 2 | -2/+22 | |
| |\ \ \ | |/ / |/| | | | | | | | | HSS misc tweaks See merge request tpo/core/arti!1718 | |||||
| | * | | HSS: impl HasKind for FatalError | Ian Jackson | 2023-11-01 | 1 | -0/+13 | |
| | | | | ||||||
| | * | | HSS: publisher: Add ReactorError::Other containing FatalError | Ian Jackson | 2023-11-01 | 1 | -2/+9 | |
| | | | | ||||||
| * | | | Merge branch 'warning' into 'main' | gabi-250 | 2023-11-01 | 1 | -2/+2 | |
| |\ \ \ | | | | | | | | | | | | | | | | | tor-keymgr: Fix a broken docs link See merge request tpo/core/arti!1721 | |||||
| | * | | | tor-keymgr: Fix a broken docs link | Ian Jackson | 2023-11-01 | 1 | -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 Mathewson | 2023-10-31 | 1 | -3/+3 | |
| |\ \ \ | |/ / |/| | | | | | | | | tor-hsservice: Remove unnecessary clone()s. See merge request tpo/core/arti!1719 | |||||
| | * | | tor-hsservice: Remove unnecessary clone()s. | Gabriela Moldovan | 2023-10-31 | 1 | -3/+3 | |
| |/ / | | | | | | | | | `cargo clippy --all-features --tests` is reporting warnings about the unnecessary cloning. | |||||
| * | | Merge branch 'abolish-svc-key-role' into 'main' | gabi-250 | 2023-10-31 | 10 | -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 Moldovan | 2023-10-31 | 1 | -0/+3 | |
| | | | | ||||||
| | * | | tor-hsclient: Add TODO about using the new define_key_specifiers! macro. | Gabriela Moldovan | 2023-10-30 | 1 | -0/+2 | |
| | | | | ||||||
| | * | | tor-hsservice: Add tests for define_svc_key_specifier. | Gabriela Moldovan | 2023-10-30 | 1 | -0/+62 | |
| | | | | ||||||
| | * | | tor-hsservice: Define key specifiers using the new helper macro (fmt). | Gabriela Moldovan | 2023-10-30 | 5 | -40/+21 | |
| | | | | ||||||
| | * | | tor-hsservice: Define key specifiers using the new helper macro. | Gabriela Moldovan | 2023-10-30 | 7 | -186/+79 | |
| | | | | | | | | | | | | | Closes #1069 | |||||
| | * | | tor-hsservice: Add convenience wrapper around define_key_specifier (fmt). | Gabriela Moldovan | 2023-10-30 | 1 | -2/+2 | |
| | | | | ||||||
| | * | | tor-hsservice: Add convenience wrapper around define_key_specifier. | Gabriela Moldovan | 2023-10-30 | 1 | -0/+83 | |
| | | | | ||||||
| | * | | tor-keymgr: Add tests for define_key_specifier!. | Gabriela Moldovan | 2023-10-30 | 1 | -0/+106 | |
| | | | | ||||||
| | * | | tor-keymgr: Add macro for defining key specifiers. | Gabriela Moldovan | 2023-10-30 | 1 | -0/+241 | |
| | | | | ||||||
