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
HTTP-01 challenge response servers that redirect to an HTTPS host break with SimplifiedVAHTTP enabled. The updated code is constructing an invalid URL for the redirected validation HTTP get. E.g.:
An http:// protocol prefix shouldn't be used for requests to port 443. There should also not be an explicit port at all if the protocol is HTTPS and the port is the standard HTTPS port.
Any fixes for this issue should also add an integration test for this scenario.
Any fixes for this issue should also add an integration test for this scenario.
The best path forward for this is to add an HTTPS interface to the challtestsrv with a self-issued certificate that serves HTTP-01 challenge responses. The management interface will also need to be updated to allow adding/removing redirects. That will let us build integration tests for the HTTP-01 redirect logic.
Challenge one: we already start a challtestsrv instance in CI but we disable the HTTP interface by specifying --http01 "":
That's done to avoid clashing with Chisel/Chisel2's standalone HTTP server. Starting a second instance of challtestsrv just for HTTP-01 redirect tests is troublesome because both Chisel and Chisel2 hardcode the port of the management URLs/interface. To accomplish our goal we will need to switch all the existing HTTP-01 integration tests to use the challtestsrv so that it can bind 5002 (The VA's HTTP port).
Challenge two: since we already bind 5001 (the VA's HTTPS port) for TLS-ALPN-01 we need to make sure the updated challtestsrv HTTPS interface can operate without breaking that challenge type & its custom certificate presentation logic.
Since the integration test is a little more involved than I initially expected I've split my bugfix & unit tests into a separate PR that can be reviewed now while I work on the above: #3959
Activity
cpu commentedon Nov 29, 2018
The best path forward for this is to add an HTTPS interface to the challtestsrv with a self-issued certificate that serves HTTP-01 challenge responses. The management interface will also need to be updated to allow adding/removing redirects. That will let us build integration tests for the HTTP-01 redirect logic.
Challenge one: we already start a
challtestsrvinstance in CI but we disable the HTTP interface by specifying--http01 "":boulder/test/startservers.py
Line 95 in 142ff9c
That's done to avoid clashing with Chisel/Chisel2's standalone HTTP server. Starting a second instance of
challtestsrvjust for HTTP-01 redirect tests is troublesome because both Chisel and Chisel2 hardcode the port of the management URLs/interface. To accomplish our goal we will need to switch all the existing HTTP-01 integration tests to use the challtestsrv so that it can bind5002(The VA's HTTP port).Challenge two: since we already bind
5001(the VA's HTTPS port) for TLS-ALPN-01 we need to make sure the updatedchalltestsrvHTTPS interface can operate without breaking that challenge type & its custom certificate presentation logic.Since the integration test is a little more involved than I initially expected I've split my bugfix & unit tests into a separate PR that can be reviewed now while I work on the above: #3959
cpu commentedon Nov 29, 2018
Implemented integration tests in #3960
Use Challtestsrv for HTTP-01 integration tests, add redirect tests (#…