summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | tor-keymgr: Introduce InvalidKeyPathComponentValue errorsIan Jackson2023-12-073-15/+74
| | | | | | | | | | | | | | | | | | | | | | | | This is a variant in KeyPathError, which contains the actual wrong value, and the key name. But it is also a unit struct to return from the trait impl. This replaces ArtiPathError::InvalidDenotator.
| * | tor-hsservice: Prepare for different denotator error handlingIan Jackson2023-12-071-5/+6
| | | | | | | | | | | | | | | Save the ArtiPathComponent in a variable and separate out the Ok(tp) for clarity. No functional change.
| * | tor-keymgr: Have KeySpecifierComponent::from_component take a refIan Jackson2023-12-072-7/+7
| | | | | | | | | | | | | | | Call sites are shortly going to need the component on the error path, so this function ought probably not to consume it.
| * | tor-keymgr: Make two errors not be CopyIan Jackson2023-12-071-1/+1
| | | | | | | | | | | | | | | | | | This is a hostage to fortune. (In a previous version of !1796 I wanted to make it untrue.)
| * | tor-keymgr: KeySpecifierDefault: role: allow runtime valueIan Jackson2023-12-071-15/+72
| | | | | | | | | | | | Make it possible for the role to be a field.
| * | tor-keymgr: KeySpecifierDefault: Use meta as strIan Jackson2023-12-071-3/+6
| | | | | | | | | | | | This saves on some stringify! and improves error checking.
| * | tor-keymgr: KeySpecifierDefault: fixed_path_component featureIan Jackson2023-12-071-0/+29
| | |
| * | tor-keymgr: KeySpecifierDefault: recast field loopIan Jackson2023-12-071-1/+2
| | | | | | | | | | | | | | | We're going to do another per-field thing that doesn't want this condition.
| * | tor-keymgr: KeySpecifierDefault: ctor_path featureIan Jackson2023-12-071-8/+47
| | |
| * | tor-keymgr: KeySpecifierDefault: Document attributes more formallyIan Jackson2023-12-071-1/+20
| | | | | | | | | | | | | | | | | | The `summary` attribute refers to a field in KeyPathInfo but this field isn't public. We can refer to builder, but there should be getters or something.
| * | tor-keymgr: KeySpecifierDefault: Move dead code allowIan Jackson2023-12-071-5/+1
| | |
| * | tor-keymgr: KeyPathInfo: Provide builder() methodIan Jackson2023-12-071-4/+11
| | | | | | | | | | | | Otherwise the KeyPathInfo rustdocs don't have a method for making one.
| * | tor-keymgr: Replace assert_key_specifier_rountrip macro with function (fmt)Ian Jackson2023-12-072-26/+8
| | | | | | | | | | | | Formatting churn at call sites.
| * | tor-keymgr: Replace assert_key_specifier_rountrip macro with functionIan Jackson2023-12-073-45/+50
| | | | | | | | | | | | The new function checks both directions. The (misspelled) macro didn't.
| * | tor-keymgr: provide KeySpecifierComponentViaDisplayFromStr and use itIan Jackson2023-12-073-39/+24
| | | | | | | | | | | | Now the only manual impl is TimePeriod, which is indeed special.
| * | ArtiPaths: derive FromStr for ArtiPath ArtiPathComponent HsNickname (fmt)Ian Jackson2023-12-072-4/+27
| | | | | | | | | | | | Mandatory horrible formatting.
| * | ArtiPaths: derive FromStr for ArtiPath ArtiPathComponent HsNicknameIan Jackson2023-12-072-0/+3
| | |
* | | Merge branch 'hss_status' into 'main'Nick Mathewson2023-12-075-13/+184
|\ \ \ | | | | | | | | | | | | | | | | Add a status API to OnionService. See merge request tpo/core/arti!1797
| * | | Add a "Shutdown" status, and clarify places where status should change.Nick Mathewson2023-12-074-5/+19
| | | |
| * | | Add a status API to OnionService.Nick Mathewson2023-12-073-11/+168
| |/ / | | | | | | | | | | | | | | | (This doesn't yet send any status events.) Begins work on arti#1083.
* | | Merge branch 'new-toml' into 'main'Nick Mathewson2023-12-0710-21/+33
|\ \ \ | |/ / |/| | | | | | | | upgrade to toml 0.8.8 See merge request tpo/core/arti!1794
| * | upgrade to toml 0.8.8Nick Mathewson2023-12-0510-21/+33
| |/
* | Merge branch 'warn' into 'main'Ian Jackson2023-12-062-5/+6
|\ \ | | | | | | | | | | | | tor-keymgr: Fix some docs warnings See merge request tpo/core/arti!1803
| * | tor-keymgr: Fix some docs warningsIan Jackson2023-12-062-5/+6
| | | | | | | | | | | | | | | Fixes cargo doc --locked --workspace --all-features --document-private-items
* | | Merge branch 'audit' into 'main'gabi-2502023-12-061-4/+4
|\| | | | | | | | | | | | | | Update zerocopy See merge request tpo/core/arti!1804
| * | Update zerocopyIan Jackson2023-12-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The version in our lockfile was yanked because of this bug https://github.com/google/zerocopy/pull/672 Our use of zerocopy is only via ahash and AFAICT it doesn't provide it with any affected types. It's not clear to me if the bug is an unsoundness bug. There isn't a RustSec advisory atm.
* | | Merge branch 'publisher-wallclock-bug' into 'main'Ian Jackson2023-12-061-3/+12
|\ \ \ | |/ / |/| | | | | | | | tor-hsservice: Add more info to an internal error. See merge request tpo/core/arti!1799
| * | tor-hsservice: Add more info to an internal error (fmt).Gabriela Moldovan2023-12-051-6/+7
| | |
| * | tor-hsservice: Add more info to an internal error.Gabriela Moldovan2023-12-051-1/+9
|/ / | | | | | | | | Logging the current time and the start of the time period might help us debug #1143 (we'll at least know how far off `now` is from `start`).
* | Merge branch 'expire-old-keys' into 'main'gabi-2502023-12-0518-143/+720
|\ \ | |/ |/| | | | | | | | | tor-keymgr, tor-hsservice: Add functions for extracting key info and add KeystoreSweeper Closes #1127 and #1043 See merge request tpo/core/arti!1784
| * tor-hsservice: Fix clippy warning.Gabriela Moldovan2023-12-051-1/+1
| |
| * tor-hsservice: Wrap some long lines in a helper macro.Gabriela Moldovan2023-12-051-4/+11
| |
| * tor-keymgr: Update wording in TODO.Gabriela Moldovan2023-12-051-1/+1
| |
| * tor-hsservice: Add a cross-reference to KeystoreSweeper.Gabriela Moldovan2023-12-051-0/+7
| |
| * tor-keymgr: Call inventory::collect in the dummy keymgr too.Gabriela Moldovan2023-12-051-0/+2
| | | | | | | | | | Not calling it results in an error (it instantiates the plugin registry for our type).
| * tor-keymgr: Mention KeyMgr::describe in the KeyInfoExtractor docs.Gabriela Moldovan2023-12-051-0/+3
| |
| * tor-keymgr: Remove outdated references to KeyDenotator.Gabriela Moldovan2023-12-051-6/+6
| |
| * tor-keymgr: Explain when KeySpecifierComponent should be implemented.Gabriela Moldovan2023-12-051-0/+6
| |
| * tor-keymgr: Abolish the KeyDenotator trait in favour of KeyPathComponent (fmt).Gabriela Moldovan2023-12-053-9/+19
| |
| * tor-keymgr: Abolish the KeyDenotator trait in favour of KeyPathComponent.Gabriela Moldovan2023-12-053-68/+29
| |
| * tor-keymgr: Use Bug instead of KeyPathInfoBuild.Gabriela Moldovan2023-12-051-6/+5
| |
| * tor-keymgr: Describe the key, not the specifier in the test key summaries.Gabriela Moldovan2023-12-051-5/+5
| |
| * tor-keymgr: Add some helpers to KeyPathInfoBuilder.Gabriela Moldovan2023-12-051-1/+84
| |
| * tor-keymgr: Use a BTreeMap for the extra_info.Gabriela Moldovan2023-12-051-2/+2
| | | | | | | | We probably want these values to be in the same order each time.
| * tor-hsservice: Stop the KeystoreSweeper task when the service exits (fmt).Gabriela Moldovan2023-12-053-57/+62
| |
| * tor-hsservice: Stop the KeystoreSweeper task when the service exits.Gabriela Moldovan2023-12-052-7/+30
| |
| * tor-hsservice: Make shutdown a broadcast channel.Gabriela Moldovan2023-12-052-11/+13
| | | | | | | | | | We will soon need another component to be able to subscribe to the shutdown signal.
| * tor-hsservice: Move remove_if_expired macro inside task (fmt).Gabriela Moldovan2023-12-051-9/+3
| |
| * tor-hsservice: Move remove_if_expired macro inside task.Gabriela Moldovan2023-12-051-37/+22
| |
| * tor-keymgr: Add TODO about allowing users to specify the spec_name.Gabriela Moldovan2023-12-051-2/+1
| | | | | | | | This also removes a TODO that doesn't make sense anymore.