Skip to content

Reorganize tor config files in tor minimal test#1411

Merged
stevenengler merged 2 commits intoshadow:devfrom
stevenengler:reorganize-tor-test
Jun 9, 2021
Merged

Reorganize tor config files in tor minimal test#1411
stevenengler merged 2 commits intoshadow:devfrom
stevenengler:reorganize-tor-test

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

This adds a torrc-defaults file for each host in the template directory. These files include conf/tor.common.torrc and one or more more conf/tor.something.torrc files. Since the bandwidth values are the same for each host, they were moved into conf/tor.common.torrc. This simplifies the Shadow config file.

The Shadow config file still has some command line options such as --Nickname exit2 and --Bridge 100.0.0.1:9111 that we could move into individual torrc files for each host in the template directory, but I decided to leave them in the Shadow config since these options use values that are specified elsewhere in the Shadow config. For example the Nickname should be the same as the Shadow host name, and the Bridge IP address should be the same as another host in the config file that specifies ip_address_hint.

@stevenengler stevenengler added Type: Maintenance Refactoring, cleanup, documenation, or process improvements Component: Testing Unit and integration tests and frameworks labels Jun 9, 2021
@stevenengler stevenengler self-assigned this Jun 9, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 9, 2021

Codecov Report

Merging #1411 (1ed10dd) into dev (7a4943c) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #1411   +/-   ##
=======================================
  Coverage   54.11%   54.12%           
=======================================
  Files         138      138           
  Lines       20438    20438           
  Branches     5163     5163           
=======================================
+ Hits        11061    11062    +1     
+ Misses       6463     6462    -1     
  Partials     2914     2914           
Flag Coverage Δ
tests 54.12% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/host/thread_ptrace.c 49.50% <0.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a4943c...1ed10dd. Read the comment docs.

@stevenengler stevenengler force-pushed the reorganize-tor-test branch from 2812d11 to 1ed10dd Compare June 9, 2021 18:42
@stevenengler stevenengler requested a review from robgjansen June 9, 2021 18:54
Copy link
Copy Markdown
Member

@robgjansen robgjansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks! Your reasons for keeping some of the Tor options in the shadow config make sense.

(Note that when setting up the structure for tornettools, we should include a middle and a guard or entry torrc files, and maybe remove the non-exit torrc; I could imagine wanting to configure something only on the guards but not the middles, and the non-exit torrc does not allow for that.)

@stevenengler
Copy link
Copy Markdown
Contributor Author

This is great, thanks! Your reasons for keeping some of the Tor options in the shadow config make sense.

(Note that when setting up the structure for tornettools, we should include a middle and a guard or entry torrc files, and maybe remove the non-exit torrc; I could imagine wanting to configure something only on the guards but not the middles, and the non-exit torrc does not allow for that.)

One issue with doing it that ways is that there isn't really a way of specifying a relay as only a middle, since all relays (excluding exits, but that's a consensus setting and could technically change) will also be used as guards.

@stevenengler stevenengler merged commit 601c109 into shadow:dev Jun 9, 2021
@stevenengler stevenengler deleted the reorganize-tor-test branch June 9, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Testing Unit and integration tests and frameworks Type: Maintenance Refactoring, cleanup, documenation, or process improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants