| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Closes #1083
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1083
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `IptManager` now reports its status as `Recovering` (with the
`latest_error` set to `IptError::FaultyIpt`) if it doesn't have enough
good IPTs to publish. Its status is `Degraded` if it has published some
IPTs, but needs to establish more.
Note: unconditionally setting `latest_error` to `IptError::FaultyIpt` is
not entirely correct. We will need to get the actual errors, if any,
from the `IptEstablisher`.
Part of #1083
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `OnionServiceStatus` API can now report errors coming from
`IptManager`.
Part of #1083
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1083
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`State::Degraded` means we've successfully published a number of
introduction points, but we would like to have more.
Part of #1083
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Since these are `*StatusSender` APIs, it seems more idiomatic to call
them `send*`.
|
| |/ / /
| | |
| | |
| | |
| | | |
We don't have blank lines between the other variants, so let's remove
this one too for consistency.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
tor-keymgr: Error type improvements
Closes #1115
See merge request tpo/core/arti!1960
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
`InvalidKeyPathComponentValue::Slug` now has to wrap a `String`, because
we can't get `HsIdParse` errors as static strings.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1960#note_2994317
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
The tor-keymgr crate *is* documented, but could use a better README and
some examples and/or usage guides.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This rewords the docs for clarity.
Part of #1115
|
| | | | |
| | | |
| | | |
| | | | |
This removes a remnant of a now-gone TODO.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
It appears within the public API (it is the error type returned from
`KeySpecifierComponent`), so let's make it public.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, `InvalidKeyPathComponentValue` was a single error type, with
the error message hard-coded to "invalid key denotator". This was wrong,
because this error is used for other types of invalid components too
(not just for invalid denotators).
Part of #1115
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
All `KeyPathError` variants now include the `ArtiPath` that caused the
error.
Part of #1115
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1115
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The offending `ArtiPath` should be included in the error.
Part of #1115
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Originally, these functions converted to and from `ArtiPathComponent`.
In !1931, we replaced `ArtiPathComponent` with `Slug` without renaming
the conversion functions. Since we're converting to and from `Slug` now,
I think it makes sense to rename them too.
Part of #1115
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
tor-keymgr: Return KeystoreEntryDescriptors from KeyMgr::list_matching
Closes #1271
See merge request tpo/core/arti!1988
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
I am not so sure it makes sense to unify these functions, so let's
remove the TODO.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1271
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1271
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
NB: `KeyMgr::remove_with_type` will need to be renamed to
`KeyMgr::remove_entry`.
Part of #1271
|
| | | | |
| | | |
| | | |
| | | | |
We will soon use this in `KeyMgr`.
|
| | | | |
| | | |
| | | |
| | | | |
Part of #1271
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This type will soon replace `(KeyPath, KeyType)` in
`KeyMgr::list_matching`.
The KeystoreEntry documentation mentions a couple of functions that
don't exist right now (they will be added in a subsequent commit).
Part of #1271
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
cargo_audit: Add an exception for RUSTSEC-2024-0014.
See merge request tpo/core/arti!1990
|
| |/ / / /
| | | |
| | | |
| | | |
| | | | |
We should migrate to `slotmap`, but in the meantime let's just add an
exception to unblock CI.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
Refactor and improve error hinting.
Closes #1165
See merge request tpo/core/arti!1986
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Instead of using complicated match statements, use downcasting
to find error types that define specific hints. This also lets us
define a reasonable hint-extractor for anyhow::Error, and use it
when reporting errors in main.
I've left an implementation of hint() in `impl Error`, to
avoid breaking backward compatibility.
Closes #1165.
|