summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* HSS: Start making builders for config structs.Nick Mathewson2023-09-071-7/+50
| | | | Note a few issues encountered while doing so.
* HSS: adjust two options.Nick Mathewson2023-09-071-4/+1
| | | | | | | | | For rate-limiting, we make it optional. If it isn't set, we don't tell the intro to rate-limit. We condense our two max-streams options into one. We had two options here because we were looking for feature parity with C, but I think I had misunderstood what C provides.
* hss: Add configuration fields for onion services.Nick Mathewson2023-08-281-4/+87
|
* tor-hsservice: Use real HsNickname in configIan Jackson2023-08-231-4/+4
|
* tor-hsservice: About half of an IPT ManagerIan Jackson2023-08-231-1/+3
| | | | There are many TODOs and no tests, but it does compile.
* hsservice: Adapt data structures from onion-service-notes.mdNick Mathewson2023-07-311-0/+25
Also, removed some older structures that don't make sense in the current design. Closes #970