aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* hsservice, llcrypto, SecurityResponse: use cfg({true,false})Nick Mathewson2026-05-071-2/+2
|
* hsservice: Port to use derive_deftly(TorConfig)Nick Mathewson2026-02-171-13/+14
| | | | | Some of the behaviors of the existing types here are nonstandard; I've kept them and documented them, to avoid breaking compatibility.
* Merge branch 'intro-dos' into 'main'gabi-2502025-11-251-1/+1
|\ | | | | | | | | arti: Add rate_limit_at_intro to the example config See merge request tpo/core/arti!3493
| * hsservice: Fix typo in rate_limit_at_intro docsGabriela Moldovan2025-11-251-1/+1
| |
* | hsservice: Clarify what max_concurrent_streams_per_circuit doesGabriela Moldovan2025-11-251-0/+5
|/ | | | | | | At first glance, this might seem equivalent to C Tor's `HiddenServiceMaxStreams` option, but it's actually `HiddenServiceMaxStreamsCloseCircuit` (Arti doesn't implement the former).
* arti/tor-hsservice: don't warn on autostarthashcatHitman2025-10-161-5/+2
| | | | | | | The "enabled" config option is back to using a regular `bool`. When unset, it defaults to true, and the service runs as if it had been set. Signed-off-by: hashcatHitman <[email protected]>
* tor-hsservice: TODO - allow changing "enabled"hashcatHitman2025-10-161-0/+2
| | | | | | | | As requested in the review, there's a TODO now so we can come back some day and allow onion services to be started/stopped while the client is running. Signed-off-by: hashcatHitman <[email protected]>
* arti/tor-hsservice: warn on service autostarthashcatHitman2025-10-161-2/+5
| | | | | | | The "enabled" config option now uses `tor_config::BoolOrAuto`. When unset (which defaults to "Auto"), the service will run with a warning. Signed-off-by: hashcatHitman <[email protected]>
* tor-hsservice: add config to disable servicehashcatHitman2025-10-161-0/+7
| | | | | | | | | Added the `enabled` field to the config options for hidden services. The default is `true`. If it is set to `false`, the service won't start. As of this specific commit, it's a hard error; it'll be checked again at an earlier stage where it won't be once the feature is ready. Signed-off-by: hashcatHitman <[email protected]>
* tor-hsservice: Move check for enable_pow without hs-pow-full feature.Wesley Aptekar-Cassels2025-08-141-0/+9
| | | | This also make this check a error rather than a warning.
* tor-hsservice: Add disable_pow_compilation option.Wesley Aptekar-Cassels2025-08-131-4/+8
| | | | | | I'm not 100% on this being here, it seems like it might want to be a option for all onion services, rather than per-service. However, this is good enough for now.
* tor-hsservice: Warn when enable_pow is set on a non hs-pow-full build.Wesley Aptekar-Cassels2025-08-131-1/+0
|
* tor-hsservice: Remove unimplemented config option.Wesley Aptekar-Cassels2025-08-131-10/+0
| | | | | This config option doesn't really apply to Prop 362 (which is what's implemented in Arti), as far as I can tell.
* tor-hsservice: Add pow_rend_queue_depth config option.Wesley Aptekar-Cassels2025-08-131-0/+20
|
* tor-hsservice: Implement enable_pow option.Wesley Aptekar-Cassels2025-08-131-2/+2
| | | | | | 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.
* Add TODO to error if enable_pow is set but feature flag is disabled.Wesley Aptekar-Cassels2024-11-251-0/+1
|
* tor-hsservice: Clarify enable_pow setting TODO.Wesley Aptekar-Cassels2024-11-251-1/+1
|
* arti: Add onion_service.enable_pow option.Wesley Aptekar-Cassels2024-11-251-2/+8
| | | | This currently is not implemented.
* tor-hsservice: Satisfy cargo fmt.Gabriela Moldovan2024-09-121-2/+0
|
* tor-hsservice: Remove the anonymity setting from the config.Gabriela Moldovan2024-09-121-22/+15
| | | | As mentioned in #727, this is not supported yet.
* tor-hsservice: Remove a TODO that is no longer relevant.Gabriela Moldovan2024-08-211-16/+1
| | | | This is now implemented.
* tor-hsservice: Derive getters for OnionServiceConfig, RestrictedDiscoveryConfig.Gabriela Moldovan2024-08-211-6/+3
|
* tor-hsservice: Make restricted_discovery updateable.Gabriela Moldovan2024-08-211-1/+1
|
* tor-hsservice: Create a type for the descriptor publisher's view of the config.Gabriela Moldovan2024-08-211-1/+49
| | | | | Partially addresses https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1603#note_2944902
* tor-hsservice: Remove unnecessary docsrs cfg_attr.Gabriela Moldovan2024-08-071-1/+0
| | | | | The module is correctly documented as "only available on crate feature restricted-discovery" without it.
* tor-hsservice: Add comments about the cfg_attrs around restricted_discovery.Gabriela Moldovan2024-08-071-0/+3
|
* tor-hsservice: Add missing docsrs cfg to restricted_discovery module.Gabriela Moldovan2024-08-061-0/+1
| | | | | | | | | | | Without it, if the `restricted-discovery` feature is compiled out, the module gets documented as: ``` Non-restricted-discovery (Available on non-crate feature `restricted-discovery` only) ``` which is inaccurate.
* tor-hsservice: Remove unused config types.Gabriela Moldovan2024-08-051-79/+0
|
* tor-hsservice: Use restricted config option in OnionServiceConfig.Gabriela Moldovan2024-08-051-13/+30
|
* tor-hsservice: Add restricted discovery configuration.Gabriela Moldovan2024-08-051-1/+8
|
* tor-hsservice: Remove extraneous whitespace.Gabriela Moldovan2024-08-051-2/+2
|
* Switch to derive-deftlyIan Jackson2024-04-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the combination of a number of separate commits, many of which were generated by seddery, and then rebased and squashed. Cargo.toml perl -i~ -pe 's{^derive-adhoc}{derive-deftly = "0.10"}' crates/*/Cargo.toml (not regenerated during rebase) update Cargo.lock `cargo fetch` without --locked (regenerated during rebase) seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{^use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bdefine_derive_adhoc\b}{define_derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bAdhoc\b}{Deftly}g if m{derive}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[derive_adhoc\b}{#[derive_deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{use derive_adhoc}{use derive_deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc\b}{derive_deftly_adhoc} if m{use.*deftly}' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc!}{derive_deftly_adhoc!}' (not regenerated during rebase) Manually add `#[derive_deftly_adhoc]` where needed. seddery git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[adhoc\b}{#[deftly}g' git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc_template}{derive_deftly_template}' (not regenerated during rebase) Manually fix up an import Manually update some builder attrs Manually fix up tor_rtmock::time_core This was missed in my seddery, due to me rebasing the branch and not redoing the seddery.
* hss: Make the limit for streams configurable.Nick Mathewson2024-03-261-5/+14
| | | | Closes #1124.
* tor-hsservice: client auth: Only allow `dir:...` to have valid unicodeIan Jackson2024-03-051-2/+4
| | | | | | | | | | | | We have Display/FromStr for AuthorizedClientConfig. We can't have Display if it can containa PathBuf because a PathBuf may not have a string representation. If we want to support non-unicode in the future, we'll need an escaping scheme and messing around with OsStr. The config scheme here may not be the best, but right now I'm just fixing uses of Path::display.
* tor-hsservice: prelude: Move imports from config.rsIan Jackson2024-03-051-11/+2
|
* tor-hsservice: reconfigure: Allow changing rate_limit_at_introIan Jackson2024-02-211-5/+3
|
* tor-hsservice: reconfigure: Prove we've handled all the fieldsIan Jackson2024-02-211-3/+2
|
* tor-hsservice: config: max_concurrent_streams_per_circuit: comment out (fmt)Ian Jackson2024-02-211-1/+0
| | | | Remove a wanted blank line.
* tor-hsservice: config: max_concurrent_streams_per_circuit: comment outIan Jackson2024-02-211-4/+6
| | | | | This is not implemented. It is better to have it commented out than providing a knob that isn't connected to anything.
* tor-hsservice: reconfigure: reject changing rate_limit_at_intro for nowIan Jackson2024-02-211-0/+6
|
* tor-hsservice: reconfigure: changing num_intro_points is fineIan Jackson2024-02-211-0/+5
|
* tor-hsservice: reconfigure: Formalise field handlingIan Jackson2024-02-211-8/+59
|
* Document allowed numbers of intro points, and make them match CNick Mathewson2024-01-251-7/+17
| | | | | | | Part of #1210. These values are not necessarily the cleverest possible, but they match the C implementation. We can tune them if we need to.
* hss: Pick random intro-point lifetime based on netparamsNick Mathewson2024-01-251-10/+0
| | | | | This makes us more spec-conformant. See discussion at #1210 "question 3".
* fixup! hss: Use 3 hours for IPT_PUBLISH_*.Nick Mathewson2024-01-251-3/+0
|
* hsservice: Make a few more TODOs refer to #1210Nick Mathewson2024-01-121-3/+3
| | | | | (These are about parameters and configuration for the introduction point manager.)
* hsservice: downgrade TODO about "enabled".Nick Mathewson2024-01-121-1/+3
| | | | We don't necessarily need to build this option at all.
* hsservice: Make TODO HSS comments about client auth refer to #1206Nick Mathewson2024-01-121-4/+4
|
* Fix typosDimitris Apostolou2024-01-081-1/+1
|
* hss::config: Downgrade or remove some TODO HSS comments.Nick Mathewson2023-12-121-16/+15
|