summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/config.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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