Skip to content

Only save renewal parameters that differ from the defaults #421

Closed

Description

@schoen

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.

Activity

  1. self-assigned this
    on May 16, 2015
  2. added this to the 1.0 for launch milestone on May 16, 2015
  3. kuba commented on May 16, 2015

    @kuba
    Contributor

    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.

  4. schoen commented on May 20, 2015

    @schoen
    ContributorAuthor

    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).

  5. pde commented on May 22, 2015

    @pde
    Member

    Diffing all the options against the defaults, so that most of them go away, seems like the right answer to this.

  6. changed the title [-]Don't save extraneous renewal parameters[/-] [+]Only save renewal parameters that differ from the defaults[/+] on May 22, 2015
  7. kuba commented on Jun 9, 2015

    @kuba
    Contributor

    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.

  8. modified the milestones: , 1.0 for launch, 2.0 on Oct 16, 2015
  9. bmw commented on Feb 19, 2016

    @bmw
    Member

    Closing in favor of #2277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions