(Re-)apply connection settings on start-up for grids joined via "cheat codes" #578
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the behavior of
Tahoe.startto check for and (re-)apply connection-related grid-settings to the local Tahoe nodedir in the event that the grid was joined previously via a "cheat code" (or if its name happens to match that of any of the grid names declared in the configuration files found ingridsync/resources/providers...). This change is intended to address the general problem in which user's the local grid-configuration (and/or the grid-configuration declared in a Recovery Key) might become out-of-date or otherwise stop working (due, e.g., to irrecoverable server-failures). In such cases, updating Gridsync to a newer build/version that contains a newer/correct grid-configuration file (ingridsync/resources/providers) will result in the user's local grid-configuration becoming updated accordingly. Only configuration changes that relate to connecting to the storage grid in question (such as the introducer fURL, the erasure-coding parameters, and the contents ofservers.yaml) will be applied; all other user preferences, etc. will remain intact.More specifically though, this (in conjunction with #576) is intended to provide a means for allowing users of Least Authority's "HRO Cloud" to re-connect to the grid (whose old/current grid-configuration is presently broken...).