summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* tor-hsservice: Soup up plumbing for ipt_relay_rotation_timeIan Jackson2023-11-271-0/+10
| | | | | This will mean if we refer to it in more places, we'll still only have one place to change it.
* Improve documentation in/around DosParams extensionNick Mathewson2023-11-201-1/+8
| | | | | | It does not help that C tor has a set of parameters and a set of configuration options with exactly the same names which configure the same thing in two slightly different ways.
* hss: Take intro_dos extension from configuration and send it.Nick Mathewson2023-11-201-0/+39
| | | | Closes #723.
* Implement build_auth_clients()Neel Chauhan2023-10-111-1/+2
|
* hss: Implement a reconfigure function.Nick Mathewson2023-10-051-0/+26
|
* hss: Give Config a nickname accessor.Nick Mathewson2023-10-041-0/+7
|
* arti: Make onion_services serialize as a map.Nick Mathewson2023-10-031-0/+5
| | | | This lets us write `[onion_services.allium_cepa]`.
* hss: Rename the "name" config field to "nickname".Nick Mathewson2023-10-031-1/+1
|
* hss: Temporarily disable POW config items.Nick Mathewson2023-10-031-4/+5
| | | | | We plan to ship without them at first, so we may as well remove them.
* hss: Make more of the configuration defaultable.Nick Mathewson2023-10-031-0/+2
|
* hss: Make configs and builders implement more traits.Nick Mathewson2023-10-031-3/+5
|
* hss: Flatten limit and pow fields into main configNick Mathewson2023-09-191-46/+25
| | | | | | See thread at https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1599#note_2944510 for information about why `flatten` doesn't work here.
* hss: make config subbuilders get flattened.Nick Mathewson2023-09-191-0/+2
| | | | This matches our design.
* hss: Make the config builders serde.Nick Mathewson2023-09-191-9/+17
| | | | | Temporarily disable descriptor encryption configuration while we figure out how it should work (see #1028)
* tor-hsservice: Derive PartialEq for Anonimity and DescEncryptionConfig.Gabriela Moldovan2023-09-181-2/+2
| | | | | | | | | | | This will enable the descriptor publisher to tell whether it needs to update the descriptor. When the publisher is notified of an `OnionServiceConfig` change, it checks whether the `anonimity` or `encrypt_descriptor` fields have changed. If they have, it rebuilds and republishes the descriptor using the new values (note: the publisher changes will be implemented in a future commit).
* Allow max_concurrent_streams_per_circuit to be impossibly high.Nick Mathewson2023-09-071-1/+1
|
* hsservice: add TODO about authorized client pluginsNick Mathewson2023-09-071-0/+5
|
* add a TODO about rate limits and their relationship.Nick Mathewson2023-09-071-0/+4
|
* hsservice: Make configs members pub(crate).Nick Mathewson2023-09-071-5/+5
|
* HSS: Parser/encoder for AuthorizedClientConfigNick Mathewson2023-09-071-2/+54
|