Repository navigation
Renew verb [needs revision] - #2338
Conversation
There was a problem hiding this comment.
Rather than being inline, this loop should probably call subroutines, one to handle the config merge and (if it's more than ~5 LOC) one to invoke obtain_cert for that config.
Conflicts: letsencrypt/cli.py
Conflicts: letsencrypt/cli.py
| # file's renewalparams and actually used in the client configuration | ||
| # during the renewal process. We have to record their types here because | ||
| # the renewal configuration process loses this information. | ||
| STR_CONFIG_ITEMS = ["config_dir", "log_dir", "work_dir", "user_agent", |
There was a problem hiding this comment.
log_dir isn't a thing returned by prepare_and_parse_args, I believe this should be logs_dir
|
|
||
|
|
||
| def obtain_cert(config, plugins): | ||
| def obtain_cert(config, plugins, lineage=None): |
There was a problem hiding this comment.
this doesn't seem like it can a) be called without a lineage supplied, or b) called with a lineage of None, as the only place this is called is on line 912 inside of renew.
at worst this is sloppy looking, but not actually harmful
There was a problem hiding this comment.
main calls it; it gets a reference via the VERBS table.
| logger.warning("Renewal configuration file %s lacks " | ||
| "renewalparams. Skipping.", full_path) | ||
| return None | ||
| renewalparams = renewal_candidate.configuration["renewalparams"] |
There was a problem hiding this comment.
this implies that we won't be able to specify authenticator on the command line, since storage.RenewableCert doesn't take cli_config into account when making self.configuration. Are we okay with that
|
LGTM +1 to merge |
Do not merge yet (depends on name_sanity, and also may fail tests and needs additional test coverage, plus some solution to the restart issue)
This is work in progress on adding the renew verb and this version has succeeded in renewing a cert.