aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/status.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-hsservice: Remove outdated comment.Wesley Aptekar-Cassels2025-08-131-5/+0
| | | | We do in fact need multiple locations to hold the sender.
* tor-hsservice: Rename InternalPowError to PowError.Wesley Aptekar-Cassels2025-08-131-1/+1
|
* tor-hsservice: Reenable publisher test in hs-pow-full.Wesley Aptekar-Cassels2025-08-131-10/+2
| | | | MockExecutor now supports the features needed for this test to work.
* tor-hsservice: Add PowManager to OnionServiceStatus.Wesley Aptekar-Cassels2025-08-131-15/+56
|
* tor-hsservice: Add PoW priority queue and checking of solves.Wesley Aptekar-Cassels2025-05-271-3/+3
|
* tor-hsservice: Add is_fully_reachable() methodClara Engler2025-03-131-0/+10
| | | | | | | | | This commit adds a `is_fully_reachable()` method to `tor_hsservice::status::State` in order to check whether the hidden service is believed to be fully reachable. See #1887 Fixes #1890
* tor-hsservice: Change the error type in Problem::DescriptorUpload.Gabriela Moldovan2024-09-091-2/+23
| | | | | | | | We will need to return a list of descriptor upload errors. We can't return a `Vec<RetryError<DescUploadError>>` here because `DescUploadError` is a lower-level error type that can't express that e.g. the upload timed out.
* tor-hsservice: Add basic tests for publisher status reporting.Gabriela Moldovan2024-09-091-1/+30
|
* tor-hsservice: Add Degraded{Unr,R}eachable onion svc states.Gabriela Moldovan2024-09-091-2/+15
| | | | | | | | | Currently, the `DegradedReachable` status is only reported by the the IPT manager and `DegradedUnreachable` is unused. Soon we'll the publisher reporting `DegradedReachable` or `DegradedUnreachable` or `Running`, depending on how the descriptor uploads went.
* tor-hsservice: Remove dead_code allows.Gabriela Moldovan2024-09-091-4/+1
| | | | | These aren't dead code anymore, with the exception of `PublisherStatusSender::send_recovering`, which isn't used.
* Fix some rustdoc warnings.Nick Mathewson2024-03-121-2/+2
| | | | | These are mostly about explicitly linking to things that were already in scope.
* fix: fix typosDimitris Apostolou2024-03-091-1/+1
|
* tor-hsservice: prelude: Move most imports from status.rsIan Jackson2024-03-051-10/+1
|
* tor-hsservice: Replace placeholder IptError with the real IptError type.Gabriela Moldovan2024-02-191-1/+1
|
* tor-hsservice: Clarify what State::Recovering means.Gabriela Moldovan2024-02-191-10/+9
|
* tor-hsservice: Expand on State::Broken reachability notes.Gabriela Moldovan2024-02-191-1/+1
|
* tor-hsservice: Expand on reachability notes.Ian Jackson2024-02-191-2/+2
|
* tor-hsservice: Add an IptError type for status reporting.Gabriela Moldovan2024-02-191-1/+4
| | | | | | | The `OnionServiceStatus` API can now report errors coming from `IptManager`. Part of #1083
* tor-hsservice: Document the `State`s in which the service is reachable.Gabriela Moldovan2024-02-191-0/+30
| | | | Part of #1083
* tor-hsservice: Add a Degraded onion service status.Gabriela Moldovan2024-02-191-0/+14
| | | | | | | `State::Degraded` means we've successfully published a number of introduction points, but we would like to have more. Part of #1083
* tor-hsservice: Rename note_<status> to send_<status>.Gabriela Moldovan2024-02-191-7/+7
| | | | | Since these are `*StatusSender` APIs, it seems more idiomatic to call them `send*`.
* tor-hsservice: Remove extraneous blank line.Gabriela Moldovan2024-02-191-1/+0
| | | | | We don't have blank lines between the other variants, so let's remove this one too for consistency.
* tor-hsservice: Fix a broken doc link.Gabriela Moldovan2024-01-251-1/+1
|
* tor-hsservice: Implement {Publisher, IptMgr}StatusSender.Gabriela Moldovan2024-01-241-23/+54
|
* tor-hsservice: Implement OnionServiceStatus::current_problem.Gabriela Moldovan2024-01-241-1/+9
|
* tor-hsservice: Rename OnionServiceStatus fields.Gabriela Moldovan2024-01-241-7/+7
| | | | The new names are shorter and just as descriptive.
* tor-hsservice: Remove outdated TODO.Gabriela Moldovan2024-01-241-2/+0
|
* tor-hsservice: Add separate status structs for the svc subsystems.Gabriela Moldovan2024-01-241-7/+48
|
* tor-hsservice: Replace StartupError with Problem.Gabriela Moldovan2024-01-241-10/+16
|
* tor-hsservice: Reassign a TODO to #1194.Gabriela Moldovan2024-01-241-2/+2
| | | | | The key expiration status is only relevant if the service is running in "offline mode", so these TODOs should be part of #1194.
* tor-hsservice: Remove unused field.Gabriela Moldovan2024-01-241-4/+0
| | | | This field is unused now that we have `ipt_mgr_state` and `publisher_state`.
* tor-hsservice: Add separate StatusSender types for the publisher and IPT mgr.Gabriela Moldovan2024-01-241-0/+10
| | | | | | For updating the underlying component statuses of an `OnionServiceStatus. Part of #1083
* hsservice: Downgrade TODO HSS about having a type not be Clone.Nick Mathewson2024-01-121-1/+1
| | | | The type is crate-internal, so changing this is not blocking.
* hsservice: Convert TODOs about status to "TODO (#1083)"Nick Mathewson2024-01-121-5/+5
|
* tor-hsservice: Add functions to update the IPT mgr/publisher states.Gabriela Moldovan2023-12-111-7/+21
| | | | Part of #1083
* tor-hsservice: Derive service state from the state of its components.Gabriela Moldovan2023-12-111-1/+20
| | | | | | | | | | | | | | We need to know the status of each component to be able to report the overall status of the service. Without this change, the service (and its components) have no way of knowing if a given transition is valid: if the state of a component (say, the IPT manager) is `Bootstrapping`, `Recovering` or `Broken`, a transition out of the current state is only valid if it is initiated by the same component that caused the current state (for example, if the publisher sets the state to `Recovering`, the IPT manager should not be allowed to trigger an overall state transition to `Running`). Part of #1083
* tor-hsservice: Trim trailing whitespace.Gabriela Moldovan2023-12-111-1/+1
|
* Add a "Shutdown" status, and clarify places where status should change.Nick Mathewson2023-12-071-2/+8
|
* Add a status API to OnionService.Nick Mathewson2023-12-071-5/+147
| | | | | | (This doesn't yet send any status events.) Begins work on arti#1083.
* hsservice: Adapt data structures from onion-service-notes.mdNick Mathewson2023-07-311-0/+6
| | | | | | | Also, removed some older structures that don't make sense in the current design. Closes #970
* Downgrade every "TODO HS" in tor-hsserviceNick Mathewson2023-06-201-1/+1
| | | | These are all service-specific, and not client-specific.
* Sketch an API for onion services.Nick Mathewson2023-01-241-0/+4