You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only save renewal parameters that differ from the defaults #421
Right now every config attribute at the time a cert was obtained gets saved in the renewal parameters section of the renewal config file. This will contain extraneous information that may confuse users and discourage them from editing other parts of the renewal config.
One of a bigger reductions would be to simply filter out all config parameters for all plugins p s.t. p != authenticator and p != installer (e.g. when you letsencrypt -c apache run, there is no need to store config values for nginx plugin). Note that it is guaranteed that all plugin config values are prefixed by the unique plugin name and that the prefix will not be used in any of the core config options.
We should also decide whether to store the differences from default values, as opposed to storing all of the parameters (which is possibly independent of filtering the saved parameters by name).
I think it'd be much better to save those parameters that were supplied directly by the user, so that explicitly requested defaults are persisted and not amendable by updates to constants.py. However, there might not be an obvious argparse/ConfigArgParse API for that.
Activity
kuba commentedon May 16, 2015
One of a bigger reductions would be to simply filter out all config parameters for all plugins
ps.t.p != authenticator and p != installer(e.g. when youletsencrypt -c apache run, there is no need to store config values fornginxplugin). Note that it is guaranteed that all plugin config values are prefixed by the unique plugin name and that the prefix will not be used in any of the core config options.schoen commentedon May 20, 2015
We should also decide whether to store the differences from default values, as opposed to storing all of the parameters (which is possibly independent of filtering the saved parameters by name).
pde commentedon May 22, 2015
Diffing all the options against the defaults, so that most of them go away, seems like the right answer to this.
[-]Don't save extraneous renewal parameters[/-][+]Only save renewal parameters that differ from the defaults[/+]kuba commentedon Jun 9, 2015
I think it'd be much better to save those parameters that were supplied directly by the user, so that explicitly requested defaults are persisted and not amendable by updates to
constants.py. However, there might not be an obviousargparse/ConfigArgParseAPI for that.bmw commentedon Feb 19, 2016
Closing in favor of #2277