tor/src/feature/hs
David Goulet 04b0263974 hs-v3: Require reasonably live consensus
Some days before this commit, the network experienced a DDoS on the directory
authorities that prevented them to generate a consensus for more than 5 hours
straight.

That in turn entirely disabled onion service v3, client and service side, due
to the subsystem requiring a live consensus to function properly.

We know require a reasonably live consensus which means that the HSv3
subsystem will to its job for using the best consensus tor can find. If the
entire network is using an old consensus, than this should be alright.

If the service happens to use a live consensus while a client is not, it
should still work because the client will use the current SRV it sees which
might be the previous SRV for the service for which it still publish
descriptors for.

If the service is using an old one and somehow can't get a new one while
clients are on a new one, then reachability issues might arise. However, this
is a situation we already have at the moment since the service will simply not
work if it doesn't have a live consensus while a client has one.

Fixes #40237

Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-01-12 09:46:35 -05:00
..
hs_cache.c hs-v3: Require reasonably live consensus 2021-01-12 09:46:35 -05:00
hs_cache.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_cell.c Merge remote-tracking branch 'nickm/ticket30454_034_01_squashed' into ticket30454_035_01 2019-05-22 11:43:55 -04:00
hs_cell.h Merge remote-tracking branch 'nickm/ticket30454_034_01_squashed' into ticket30454_035_01 2019-05-22 11:43:55 -04:00
hs_circuit.c hs: v3 single onion services fall back to 3-hop intro for unreachable nodes 2019-08-23 16:22:49 +10:00
hs_circuit.h hs: v3 single onion services fall back to 3-hop intro for unreachable nodes 2019-08-23 16:22:49 +10:00
hs_circuitmap.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_circuitmap.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_client.c hs-v3: Require reasonably live consensus 2021-01-12 09:46:35 -05:00
hs_client.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_common.c hs-v3: Require reasonably live consensus 2021-01-12 09:46:35 -05:00
hs_common.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_config.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_config.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_control.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_control.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_descriptor.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_descriptor.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_ident.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_ident.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_intropoint.c Merge remote-tracking branch 'nickm/ticket30454_034_01_squashed' into ticket30454_035_01 2019-05-22 11:43:55 -04:00
hs_intropoint.h Merge remote-tracking branch 'nickm/ticket30454_034_01_squashed' into ticket30454_035_01 2019-05-22 11:43:55 -04:00
hs_service.c hs-v3: Require reasonably live consensus 2021-01-12 09:46:35 -05:00
hs_service.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_stats.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hs_stats.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
hsdir_index_st.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00