Skip to content

Renew verb [needs revision] - #2338

Merged
SwartzCr merged 103 commits into
masterfrom
renew_verb
Feb 6, 2016
Merged

SwartzCr merged 103 commits into
masterfrom
renew_verb

Conversation

@schoen

@schoen schoen commented Feb 2, 2016

Copy link
Copy Markdown
Contributor

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.

@pde pde added this to the 0.4.0 milestone Feb 2, 2016
Comment thread letsencrypt/cli.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread letsencrypt/cli.py Outdated
# 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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log_dir isn't a thing returned by prepare_and_parse_args, I believe this should be logs_dir

Comment thread letsencrypt/cli.py


def obtain_cert(config, plugins):
def obtain_cert(config, plugins, lineage=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main calls it; it gets a reference via the VERBS table.

Comment thread letsencrypt/cli.py
logger.warning("Renewal configuration file %s lacks "
"renewalparams. Skipping.", full_path)
return None
renewalparams = renewal_candidate.configuration["renewalparams"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@SwartzCr

SwartzCr commented Feb 6, 2016

Copy link
Copy Markdown
Contributor

LGTM +1 to merge

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants