Skip to content

Renewer - #404

Merged
pde merged 91 commits into
masterfrom
renewer
May 26, 2015
Merged

pde merged 91 commits into
masterfrom
renewer

Conversation

@schoen

@schoen schoen commented May 11, 2015

Copy link
Copy Markdown
Contributor

I'm creating this pull request because the renewer functionality is now working and is passing our tests.

There are several outstanding problems or concerns that I'm aware of:

  • This is dependent on the cli branch (which I think has already been merged into master). (But, as discussed below, this branch breaks some of the functionality of that branch!)
  • Although all the unit tests still pass, the integration between the cert enrollment and the revoker is now missing, and so the revoker will potentially no longer be able to actually revoke certs. We should consider changes to storage.py and the revoker so that they work together properly and no revoker functionality is lost.
  • The initial version of this PR breaks CLI verbs other than run. The reason for this is that there are now three separate actions instead of two: we now have obtaining a cert (auth), enrolling it in the renewal database (a function of storage.py rather than of a configurator plugin), and deploying it in a server (install). The taxonomy of CLI verbs from the CLI branch was based on the separation of auth/install, and does not consider whether or not to perform enroll. Also, the interface of some of the client methods that the other CLI branch verbs used has changed to reflect integration with the renewer branch. So, these verbs probably need to be rethought quite a bit.
  • There is some discussion to be had about how to store or represent renewer defaults, perhaps using constant.py instead of the DEFAULTS variable in the renewer and storage code. Especially relevant is default file paths for renewal configs, which need to come from somewhere somehow.
  • The current version uses /tmp/etc instead of /etc, which should be changed, but then some tests may affect the system's real /etc directory.
  • We should look more closely at file permissions for the creation of the /etc/letsencrypt hierarchy and individual files within it.
  • Serializing the renewal parameters (the config of the client at the time that a cert was originally obtained) results in saving a whole bunch of extraneous information in the renewal config file that I'm pretty sure will scare or confuse users who want to look at that file.
  • We also need to think about whether to explicitly write the default renew/deploy intervals into the renewal config file in order to more clearly advise the user of the possibility of changing those intervals.
  • Actually running the renewer produces an error "[Errno 2] No such file or directory" from a source that I haven't managed to track down yet. Mysteriously, this doesn't crash or harm the renewal process at all, and the renewal still completes successfully.
  • I haven't tested whether we can inhibit successive autorenewals if autorenewal is attempted multiple times without deployment (that is, if we run the renewer 20 times during the autorenew-is-appropriate interval for a lineage before we reach the autodeploy-is-appropriate interval for that lineage, do we get 1 renewal operation or 20?). I have code to look at the most recent version as opposed to the deployed version, but I'm not sure whether that code is currently being used.

I'm happy to talk about some or all of these before we apply the PR.

Seth Schoen and others added 30 commits April 21, 2015 19:12
…to renewer

Conflicts:
	letsencrypt/client/client.py
	letsencrypt/client/interfaces.py
	letsencrypt/scripts/main.py

This merge only addresses the "run" verb; the other client verbs still
need work to address the way they integrate with the renewal database.
Comment thread letsencrypt/constants.py

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.

Could we just use a dict here, without wrapping it in the ConfigObj?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.56%) to 94.9% when pulling fcd8670 on renewer into 58156a2 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.57%) to 94.9% when pulling b8a024b on renewer into ead60d8 on master.

jsha and others added 6 commits May 21, 2015 18:58
Use cert_dir instead of cert_path
Restore server_url
When creating a unique file, only loop for EEXISTS, not other OS errors like
  permission denied.
Pass uid explicitly to make_or_verify_dir.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.57%) to 94.91% when pulling 5c6d833 on renewer into 149cd56 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.57%) to 94.91% when pulling 1cddd0f on renewer into 149cd56 on master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.55%) to 94.89% when pulling b2b7027 on renewer into 6283ced on master.

pde added a commit that referenced this pull request May 26, 2015
Automatically renew certificates!
@pde
pde merged commit 9bc9abe into master May 26, 2015
@schoen
schoen deleted the renewer branch May 29, 2015 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants