Repository navigation
Use pebble-challtestrv cmd, letsencrypt/challtestsrv package. - #3980
Conversation
Now that Pebble has a `pebble-challtestsrv` we can remove the `challtestrv` package and associated command from Boulder. I switched CI to use `pebble-challtestsrv`. Notably this means that we have to add our expected mock data using the HTTP management interface. The Boulder-tools images are regenerated to include the `pebble-challtestsrv` command. Using this approach also allows separating the TLS-ALPN-01 and HTTPS HTTP-01 challenges by binding each challenge type in the `pebble-challtestsrv` to different interfaces both using the same VA HTTPS port. Mock DNS directs the VA to the correct interface. The load-generator command that was previously using the `challtestsrv` package from Boulder is updated to use a vendored copy of the new `github.org/letsencrypt/challtestsrv` package.
|
Godep import order and generated mocks seem rather unhappy. |
Blech. Will investigate later today. |
The new boulder-tools images pulled in an updated gomock version. Without regenerating these mocked resources there is a diff detected in CI.
|
CI on this branch is jammed up from a Travis outage ⌛ 👀 |
|
Note: CI is passing now but I haven't included unit tests results for the updated As prompted I've updated the |
|
Some progress... I tried running the tests on a clean VM with IPv6 enabled, as the root user and the
Seems like a similar case as the other test. Frustrating! |
jsha
left a comment
There was a problem hiding this comment.
Just the one small typo; otherwise looks good!
| [4431, 'boulder-wfe2 --config %s' % os.path.join(default_config_dir, "wfe2.json")], | ||
| [4000, 'boulder-wfe --config %s' % os.path.join(default_config_dir, "wfe.json")], | ||
| [6000, './bin/gsb-test-srv -apikey my-voice-is-my-passport'], | ||
| # NOTE(@cpu): We specify explicit bind addresses for -https01 and |
There was a problem hiding this comment.
| # NOTE(@cpu): We specify explicit bind addresses for -https01 and | |
| # NOTE(@cpu): We specify explicit bind addresses for -http01 and |
There was a problem hiding this comment.
In this case it isn't a typo. There are -http01 and -https01 args for the challtestsrv. One for the HTTP interface, one for HTTPS.
Overall the names of the pebble-challtestsrv CLI args could probably be updated to be clearer (e.g. -dns01 is used for both ACME DNS-01 TXTs and more broadly for mock DNS) but that would be an issue to address in Pebble & update here.
Does that make sense?
|
After discussion with @jsha and @rolandshoemaker and another failure to get the |
Now that Pebble has a
pebble-challtestsrvwe can remove thechalltestrvpackage and associated command from Boulder. I switched CI to usepebble-challtestsrv. Notably this means that we have to add our expected mock data using the HTTP management interface. The Boulder-tools images are regenerated to include thepebble-challtestsrvcommand.Using this approach also allows separating the TLS-ALPN-01 and HTTPS HTTP-01 challenges by binding each challenge type in the
pebble-challtestsrvto different interfaces both using the same VAHTTPS port. Mock DNS directs the VA to the correct interface.
The load-generator command that was previously using the
challtestsrvpackage from Boulder is updated to use a vendored copy of the newgithub.org/letsencrypt/challtestsrvpackage.Vendored dependencies change in two ways:
golang.org/x/net/are added by way of transitive dependency through the challtestsrv package.Unit tests are confirmed to pass for
gomock:For
/x/netall tests pass except two/x/net/icmpTestDiag.gotest casesthat we have agreed are OK to ignore.
Resolves #3962 and #3951