Skip to content
Snippets Groups Projects
  1. Apr 22, 2022
    • Ian Jackson's avatar
      logfiles: Introduce LogfileListConfigBuilder · 79decd4a
      Ian Jackson authored
      In
        !462 (comment 2797697)
      we decided not to do this.
      
      However, having looked again at the way the FallbackList works, I
      think there is a lot of value in making these two things (and anything
      else like them[1]) as similar as possible.
      
      [1] At least PreemptiveCircuitConfig.initial_predicted_ports and
      NetworkConfig.authorities need the same treatment, and perhaps also
      GuardUsage.restrictions (although there is no
      GuardRestrictionBuilder).
      
      In the irc discussion I imagined `LogfilesConfigBuilder` as opposed to
      `LogfileConfigBuilder` (differing only in the `s`) which would be bad,
      but we can use `List` instead.
      
      We do *not* need to abstract away the validated version of the config.
      Providing a type alias helps the derive_builder sub_builder DTRT
      without needing special overrides.
      
      I have split this commit so that we can drop it, if we conclude it's
      not wanted.
      79decd4a
    • Ian Jackson's avatar
      logfiles: Adjust LoggingConfigBuilder::file and impl Deserialize · 33565ea6
      Ian Jackson authored
      Change LoggingConfigBuilder to contain Vec<LogfileConfigBuilder>,
      not Option<Vec<LogfileConfig>>.  That makes it sane to Deserialize.
      
      Replace LoggingConfigBuilder's file(Vec<>) setter with the methods
      discussed in
        tpo/core/arti!462 (comment 2797697)
      33565ea6
    • Ian Jackson's avatar
      logfiles Rename LogfileConfig::file to files · 211cb195
      Ian Jackson authored
      It's a plural, and that fact is going to be exposed via serde, if it
      isn't already.
      211cb195
    • Ian Jackson's avatar
      fallback list: Introduce and use FallbackListBuilder · 962b6c32
      Ian Jackson authored
      Now the network fallbacks configuration wants to Deserialize
      a Vec<FallbackDirBuilder>, rather than validated Vec<FallbackDir>.
      
      Methods on FallbackListBuilder are as per
        tpo/core/arti!462 (comment 2797697)
      mutatis mutandi for the fact that this struct has only fallbacks in it.
      962b6c32
    • Ian Jackson's avatar
      fallback list: Move default list into tor-guardmgr · 61425a96
      Ian Jackson authored
      This is where the FallbackList type is.  We are going to want to
      provide a builder too, which ought to impl Default.
      
      This means that the default value for the type must be next to the
      type.  In any case, it was anomalous that it wasn't.
      
      This commit is pure code motion.
      61425a96
    • Ian Jackson's avatar
      impl From<SubfieldBuildError> for ConfigBuildError · 91a8bc0c
      Ian Jackson authored
      We are going to be using sub-field builders.
      91a8bc0c
  2. Apr 21, 2022
  3. Apr 20, 2022
  4. Apr 14, 2022
  5. Apr 13, 2022
  6. Apr 12, 2022
  7. Apr 11, 2022
  8. Apr 08, 2022
Loading