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
There has been an effort to generalize the "Authenticators" (modules that can perform server specific challenges) and "Installers" (modules that will install certificates/perform configuration optimizations)
This has led to the ability to select the appropriate Authenticator/Installer at run-time. Imagine someone would like to design a class that can install certificates on a Postfix server, but naturally... Postfix cannot solve the current ACME challenges by itself. This would allow the client to pair the stand-alone authenticator with the postfix installer. This has been discussed in issue #149.
This abstraction, allowing different Authenticators/Installers to operate with one another, brings up a few concerns.
Different Installers will have different capabilities for optimization. It isn't reasonable to require all Installers to support the same optimizations. Right now, the interface requires functions like enable_hsts or enable_redirection. The client then goes through the list of known optimizations...
I believe the optimization capabilities that the client invokes should be determined by the Installer, not the client. I see many potential ways to solve the problem, but I figure there might be a design pattern we can adopt that is appropriate to the situation. Does anyone have any pointers or thoughts?
In a similar vein, different Authenticators will have different preferences for performing challenges. Right now, the preferences are hard-coded into CONFIG.py. This information should instead be communicated by the Authenticator itself. I was planning to create a "get_challenge_preferences" function in the Authenticator interface, but I thought I would open the discussion up in case there is a better overall solution.
Update: I fixed up the Authenticator API in #162 and decided to go with a get_chall_pref(domain) function. There are quite a few detailed comments in the merge.
I have also made a pass at cleaning up the Installer API and have placed the code in the installer_api branch.
I am proposing the following changes...
All of the enable_* functions will be represented by a single enhance(domain, enhancement, options) function within the Installer API for the reasons stated in the previous comment. An example can be found here
Installer's can state their intended capabilities with a supported_enhancements() function. All of the available client known enhancements are listed in CONFIG.ENHANCEMENTS Most notably, HSTS will be implemented using an "http-header" enhancement. Thanks @pde for the suggestion. (Installers shoudl be able to handle enhancements like HPKP with the same enhance call).
There are fewer Installer API calls which now all deal with domains. With this transition, I believe I have removed all references to virtualhosts in client.py. I have left the removed functions as comments for the time being to allow for comparison, although I don't think there will be any controversy. The functions that I removed have been bothering me for quite some time and just needed a chance to coordinate the Apache code and client.py. I don't believe they will be controversial.
I believe this greatly simplifies the interface and should make coding for a variety of platforms easier.
Activity
jdkasten commentedon Jan 15, 2015
Update: I fixed up the Authenticator API in #162 and decided to go with a get_chall_pref(domain) function. There are quite a few detailed comments in the merge.
I have also made a pass at cleaning up the Installer API and have placed the code in the installer_api branch.
I am proposing the following changes...
I believe this greatly simplifies the interface and should make coding for a variety of platforms easier.
Initial attempt at API modification and associated changes