summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/publish.rs
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* tor-dirclient: Avoid copying bytes that we want to POST.Nick Mathewson2026-05-121-3/+12
| | | | | This required a change to the hsservice tests, which previously assumed that we'd perform one write per request.
* tor-hssrvice: port to web-time-compat.Nick Mathewson2026-03-261-1/+0
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* tor-hsservice: Fix clippy.Wesley Aptekar-Cassels2025-08-131-3/+2
|
* tor-hsservice: Implement enable_pow option.Wesley Aptekar-Cassels2025-08-131-0/+1
| | | | | | This does not currently allow this option to be changed at runtime, although the code is structured so that allowing it to be changed at runtime won't be too hard. This is tracked by #2082.
* tor-hsservice: Reenable publisher test in hs-pow-full.Wesley Aptekar-Cassels2025-08-131-2/+1
| | | | MockExecutor now supports the features needed for this test to work.
* tor-hsservice: Add PowManager to OnionServiceStatus.Wesley Aptekar-Cassels2025-08-131-3/+4
|
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-9/+9
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* tor-hsservice: Add consensus params for Prop 362.Wesley Aptekar-Cassels2025-08-051-0/+1
| | | | | | | | | | | This adds the three new parameters specified in Prop 362 [0]. Two of these replace hardcoded defaults in the code. The third, HiddenServiceProofOfWorkV1ServiceIntroTimeoutSeconds, is not implemented yet, but will be in a future commit. [0]: https://spec.torproject.org/proposals/362-update-pow-control-loop.html
* hs: Use the new Tunnel interface for onion serviceDavid Goulet2025-08-051-9/+6
|
* hs*: Include SourceInfo when making HsDesc requests.Nick Mathewson2025-07-101-0/+4
|
* tor-hsservice: Make PowManager persist state.Wesley Aptekar-Cassels2025-05-271-1/+4
|
* tor-hsservice: Add ReplayLog to PowManager.Wesley Aptekar-Cassels2025-05-271-1/+13
|
* tor-hsservice: Add PoW priority queue and checking of solves.Wesley Aptekar-Cassels2025-05-271-1/+2
|
* tor-hsservice: Initial parts of PowManager.Wesley Aptekar-Cassels2025-05-271-0/+23
| | | | | | | This adds PowManager, as described in doc/dev/notes/service-side-pow.md, hooks it into IptManager and Publisher, and adds code to publish and rotate seeds, and to keep a updated list of Verifier instances for currently active seeds.
* *: use std::io::Error::other in many placesNick Mathewson2025-05-151-1/+1
| | | | | | | The `IoError::other` function is an easier way to say `IoError::new(IoErrorKind::Other, ...)`. It's been around since 1.74, but clippy started warning about the more verbose version in 1.87.
* tor-rtcompat: Rename BlockOn to ToplevelBlockOnIan Jackson2025-03-041-1/+1
| | | | | | | | | | We're going to distinguish top-level runtime entry, from *re*-entry to an existing executor. It is most convenient to rename this trait first. Documentation of the distinction will come later. (We're going to retain the function name `block_on`, but we want the trait to be more obviously a top-level only thing, though, so we give it a name that will hopefully avoid it peroulating throughout the codebase..)
* tor-hsservice: pass through the `CfgPathResolver`Steven Engler2024-11-181-0/+9
|
* tor-keymgr: Rename the primary keystore for clarity.Gabriela Moldovan2024-09-231-2/+2
| | | | | | | | | | Previously, arti's primary keystore was referred to as its "default" keystore. However, "default" is inaccurate here: there is no way to meaningfully override this "default" (the "default" store acts as the main keystore). Throughout the codebase, we query all keystores for keys (including the secondary ones), but only ever write to the default/primary keystore. This is OK for now, because it enables us to have one mutable keystore, and multiple secondary, read-only stores.
* tor-hsservice: Remove the anonymity setting from the config.Gabriela Moldovan2024-09-121-2/+1
| | | | As mentioned in #727, this is not supported yet.
* Merge branch 'bug_1613' into 'main'gabi-2502024-09-121-1/+6
|\ | | | | | | | | | | | | Bug 1613: Add support for inserting externally generated and removing arbitrary service discovery keys Closes #1613 See merge request tpo/core/arti!2396
| * tor-keymgr: add an overwrite flag to KeyMgr::insert()Morgan2024-09-101-1/+6
| |
* | tor-hsservice: Remove outdated comment about publisher.Gabriela Moldovan2024-09-091-17/+0
| | | | | | | | The descriptor publisher docs live in the `publisher` module.
* | tor-hsservice: Fill out the missing descriptor publisher docs.Gabriela Moldovan2024-09-091-1/+4
| | | | | | | | Closes #1216
* | tor-hsservice: Add basic tests for publisher status reporting.Gabriela Moldovan2024-09-091-3/+22
|/
* Rename tor-keys crate to tor-key-forgeDavid Goulet2024-09-041-1/+1
| | | | Signed-off-by: David Goulet <[email protected]>
* tor-keymgr: Use tor-keys crate and remove dead codeDavid Goulet2024-09-041-1/+2
| | | | | | | | | | | Everything copied in the previous commits to tor-keys is now removed and tor-keys crate is used accross the code. Minor changes to tor-keys to accomodate this change. Part of #1137 Signed-off-by: David Goulet <[email protected]>
* tor-hsservice: Make the reactor take a reference to the config.Gabriela Moldovan2024-08-211-1/+1
| | | | This resolves a clippy warning.
* tor-hsservice: Move authorized_clients out of RunningOnionService.Gabriela Moldovan2024-08-131-9/+0
| | | | | | We now create the authorized_clients in the publisher (we don't need the authorized_clients anywhere else, so it makes little sense to keep them in `RunningOnionService`).
* tor-hsservice: Use the configured authorized clients when encrypting the ↵Gabriela Moldovan2024-08-051-0/+10
| | | | descriptor.
* tor-hsservice: Resolve dead code warnings in publisher tests.Gabriela Moldovan2024-07-091-11/+7
|
* tor-hsservice: Remove unused code (fmt).Gabriela Moldovan2024-07-091-1/+1
|
* tor-hsservice: Remove unused code.Gabriela Moldovan2024-07-091-1/+1
| | | | This is being reimplemented as #1292
* tor-hsservice: Remove unused publisher functions.Gabriela Moldovan2024-07-091-8/+0
| | | | | | | This removes a couple of unimplemented functions. These were supposed to be the starting point for #1217, but we won't be implementing that any time soon.
* tor-hsservice: Remove unnecessary allow.Gabriela Moldovan2024-07-091-1/+0
| | | | Note: #1217 is still open and we may want to implement it at some point.
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* Run rustfmtIan Jackson2024-03-051-3/+3
| | | | | This alphabetises the imports, ready for us to do some more manual tidying.
* tor-hsservice: prelude: Promote imports from reactor.rsIan Jackson2024-03-051-0/+3
| | | | Move these two publisher-specific imports to publish.rs.
* tor-hsservice: prelude: Promote imports from descriptor.rsIan Jackson2024-03-051-0/+1
| | | | Move these two publisher-specific imports to publish.rs.
* tor-hsservice: prelude: Move imports from publish.rsIan Jackson2024-03-051-13/+1
|
* tor-hsservice: Move svc.rs contents into lib.rsIan Jackson2024-03-051-1/+1
|
* tor-hsservice: Hide IptLocalId field, and provide test constructorIan Jackson2024-03-051-2/+2
|
* tor-hsservice: Move publish out of svcIan Jackson2024-03-051-0/+665