Commit Graph

22 Commits

Author SHA1 Message Date
Samantha Frank bcea93640e
Capture the contents of the User-Agent Header where possible (#25) 2025-04-09 15:51:28 -04:00
Jacob Hoffman-Andrews 986f82c46b
http-01: remove MaxVersion restriction (#23) 2023-12-06 10:10:50 -08:00
Jacob Hoffman-Andrews 6944a3943f
fix DoH response writer (#22) 2023-12-05 09:19:12 -08:00
Jacob Hoffman-Andrews 6b7134b734
Add DoH support for DNS challenges and fake data (#21) 2023-12-04 17:00:21 -08:00
Jacob Hoffman-Andrews 9c61e5ca70
Reduce TLS support in HTTPS redirection path (#19)
This allows testing Boulder's code to log when old TLS versions are
used.
2022-03-18 19:24:00 -07:00
Roman Inflianskas c35d6f448f
README: remove word "command" since this is a library only package (#17) 2021-12-17 16:13:46 -08:00
Jacob Hoffman-Andrews fdd87b467c
Update miekg/dns to latest. (#16) 2021-10-19 16:29:41 -07:00
Jacob Hoffman-Andrews ff9b44bc76
Avoid logging on a clean server shutdown. (#15)
Go's ListenAndServe methods return an error with the text "Server
close", even on a clean shutdown. We should suppress this spurious error
so it doesn't mask more meaningful ones.

Also, update to a more recent golangci-lint and exempt some lints in order
to fix the build.
2021-10-19 15:19:43 -07:00
Ludovic Fernandez 5b8a09ae3d
ci: update golangci-lint and check go modules (#12)
* chore: update golangci-lint.
* chore: validate go modules and vendor.
* fix: go modules files.
* fix: vendor folder content.
2020-02-12 13:03:30 -05:00
Daniel McCarney 0dd24b5fe4 CI: Fixes for Go 1.13 (#11)
See also https://github.com/letsencrypt/gorepotemplate/pull/7
2019-09-06 10:21:39 -07:00
Daniel McCarney 749354b3bb dns: add support for mocking SERVFAIL responses. (#10) 2019-08-27 10:36:20 -07:00
Ryan Souza 285efd6fac Add simple support for CNAMEs as DNS aliases (#7)
- supports create/read/destroy and DNS lookup of CNAME record for hosts
- supports one level of "aliasing" by resolving CNAME in mock DNS server
2019-03-29 09:10:51 -04:00
Daniel McCarney 26580cb73a CI: use latest stable Go version (#6) 2019-03-15 09:38:27 -07:00
Daniel McCarney 618ad7ccc3 Add linting, README badges, code coverage, code of conduct. (#5)
This PR breaks API compatibility by renaming the exported `IdPeAcmeIdentifier` field to `IDPeAcmeIdentifier`.

I'll cut a new major release the next time something beyond tidying up comes along.
2019-02-27 10:53:31 -08:00
Ludovic Fernandez 37390bc3ad fix: don't panic with unknown DNS question type. (#4)
* fix: don't panic with unknown DNS question type.
* fix: typos.
* refactor: use dns.Fqdn
2019-01-04 11:48:40 -05:00
Daniel McCarney 17a3d105f3
Track challenge server request history. (#3)
Its useful for testing purposes to be able to find out what requests have been processed by the challenge test servers.

For example it may be useful to see that redirects were properly followed or that CAA tree climbing resulted in the expected DNS queries.
2018-12-14 16:44:22 -05:00
Daniel McCarney 495441a888
Merge pull request #2 from letsencrypt/followups
Comment tweaks and delete fixes.
2018-12-06 15:08:31 -05:00
Jacob Hoffman-Andrews 6d791a1366 Comment tweaks and delete fixes.
Fix some style/clarity things in the comments.

Also, remove the "if" guards around several delete statements. The
delete builtin is a no-op if the field doesn't exist, so we don't need
those guards.
2018-12-06 12:03:37 -08:00
Jacob Hoffman-Andrews 73f30826cc
Initial challtestsrv package & vendored deps. (#1)
Boulder has a nice handy [`challtestsrv` package and command][1] used for integration tests.
It's small, stand-alone, and useful enough to live in its own repo. This will make it
easy for Boulder's load-generator to use the common package and for Pebble's
pebble-challtestsrv command to use it as well.

The `challtestsrv` package is ported over from Boulder mostly-as is with a few
small improvements. Notably:

* The TLS-ALPN-01 and HTTPS HTTP-01 features were split into two separate binds.
  This helps us preserve strict TLS-ALPN-01 challenge responses while also supporting
  HTTP-01 -> HTTPS HTTP-01 redirects. (See https://github.com/letsencrypt/boulder/issues/3962)
* The "FAKE_DNS" env var is removed. Now there is a default IPv4 and a default
  IPv6 address that can be set via the management API. These default addresses are
  used for A/AAAA query responses when there is not a more specific mock.
* Hardcoded Boulder specific mock DNS data is removed. In its place are new
  management API functions for adding/removing mock A, AAAA, and CAA records
* The output is less noisy now. The DNS server no longer prints a line per reply.

[1]: 9e39680e3f/test/challtestsrv
2018-12-06 12:00:08 -08:00
Daniel ede5da43c3 go mod tidy results 2018-12-05 12:59:03 -05:00
Daniel 5002395252 Initial challtestsrv package & vendored deps.
Boulder has a nice handy [`challtestsrv` package and
command](9e39680e3f/test/challtestsrv)
used for integration tests. Its small and useful enough to live in its
own repo. This will make it easy for Boulder's load-generator to use the
common package and for Pebble's pebble-challtestsrv command to use it as
well.

The `challtestsrv` package is ported over from Boulder mostly-as is with
a few small improvements. Notably:

* The TLS-ALPN-01 and HTTPS HTTP-01 features were split into two
separate binds. This helps us preserve strict TLS-ALPN-01 challenge
responses while also supporting HTTP-01 -> HTTPS HTTP-01 redirects. (See
https://github.com/letsencrypt/boulder/issues/3962)
* The "FAKE_DNS" env var is removed. Now there is a default IPv4 and
a default IPv6 address that can be set via the management API. These
default addresses are used for A/AAAA query responses when there is not
a more specific mock.
* Hardcoded Boulder specific mock DNS data is removed. In its place are
new management API functions for adding/removing mock A, AAAA, and CAA
records
* The output is less noisy now. The DNS server no longer prints a line
per reply.
2018-12-05 12:40:26 -05:00
Daniel McCarney 12823aef76
Initial commit 2018-12-05 12:27:19 -05:00