Repository navigation
Standalone authenticator - #232
Conversation
|
@schoen, could you please fix all of the build errors? Thanks! Since Travis CI has been moody recently, it's best to run the tests locally, using |
(As an alternative to commenting out this function, which is currently totally unused. The function does have tests; they just don't cover the failure cases.)
There was a problem hiding this comment.
docstring: split out one-liner
There was a problem hiding this comment.
you could fit it in much less space using hanigng indent
Conflicts: letsencrypt/client/CONFIG.py letsencrypt/client/tests/apache/dvsni_test.py letsencrypt/client/tests/challenge_util_test.py
Conflicts: letsencrypt/client/client.py letsencrypt/client/le_util.py letsencrypt/client/tests/apache/dvsni_test.py letsencrypt/client/tests/challenge_util_test.py
|
@schoen Have you considered what I said (#letsencrypt) about forking, threads and signals? |
|
Oh, I hadn't read the channel recently, so I didn't see that. Thanks for pointing it out! I also suspect that threads might be a simpler and more elegant way to do this because we can get updating of variables for free as a simple way to communicate between threads. I was originally planning to use threads but @pde described some quite severe performance problems in a prior project that used Python threads for a network server. It's possible that the scale and setting of this server are such that those problems wouldn't apply to us. If anyone rewrites this using threads, I'm happy to test it, and I'll definitely consider doing so myself as well. I think I'll have to work on a few other things on the client before returning to this topic, though. I did notice that the signal handler in the parent process affects the behavior of the client, and I have a TODO note on that (we should set the signal handler back to SIG_DFL in the parent process as soon as we believe or know that the child has exited). We could raise it to the level of an issue in the issue tracker, but it's probably just like 4 lines of code to fix it. |
This branch implements a standalone authenticator, part of the so-called standalone configurator or null configurator functionality. The authenticator uses the plugin API and can start a TCP listener to complete DVSNI challenges without the use of a web server.
There are unit tests for all functions, including some functions that are not currently called, with pretty complete code coverage (a few failure cases are not yet tested). We also found that this can be substituted in place of the Apache configurator's authenticator, and we do get all the way to certificate issuance and deployment.
There is currently no way to choose to use the standalone authenticator from inside of the user interface (or at all). James and I have been talking about this; there will need to be UI changes in the main LE client in order to be able to choose this instead of the Apache configurator and perhaps ultimately to detect automatically which configurator ought to be used.
Two things for discussion, which don't necessarily need to be resolved prior to merging:
Choosing to use abbreviated DVSNI would require making changes on the verifier side too (for interoperability), as well as a judgment that this is indeed safer than using bindings for full-fledged TLS libraries on both sides.