dirauth: Make voting flag threshold tunable via torrc

Remove UPTIME_TO_GUARANTEE_STABLE, MTBF_TO_GUARANTEE_STABLE,
TIME_KNOWN_TO_GUARANTEE_FAMILIAR WFU_TO_GUARANTEE_GUARD and replace each
of them with a tunnable torrc option.

Related to #40652

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2022-08-04 10:03:19 -04:00
parent 681c15a32d
commit 8bf1a86ae1
5 changed files with 69 additions and 31 deletions
+9 -4
View File
@@ -1,5 +1,10 @@
o Minor features (dirauth):
- Add an AuthDirVoteGuard torrc option that can allow authorities to assign
the Guard flag to the given fingerprints/country code/IPs. This is a
needed feature mostly for defense purposes in case a DoS hits the network
and relay start losing the Guard flags too fast. Closes ticket 40652.
- Add an AuthDirVoteGuard torrc option that can allow authorities to
assign the Guard flag to the given fingerprints/country code/IPs. This
is a needed feature mostly for defense purposes in case a DoS hits the
network and relay start losing the Guard flags too fast.
- Make UPTIME_TO_GUARANTEE_STABLE, MTBF_TO_GUARANTEE_STABLE,
TIME_KNOWN_TO_GUARANTEE_FAMILIAR WFU_TO_GUARANTEE_GUARD tunable from
torrc.
- Add a torrc option to control the Guard flag bandwidth threshold
percentile. Closes ticket 40652.