Commit Graph

2425 Commits

Author SHA1 Message Date
Damian Duesentrieb 6ab862836b Improve installation instructions 2015-11-20 00:43:37 +01:00
Jacob Hoffman-Andrews 584dae7437 Merge pull request #1151 from letsencrypt/go-jose-update
Update to latest go-jose
2015-11-19 11:13:03 -08:00
Jacob Hoffman-Andrews 0970beedd9 Merge branch 'master' into go-jose-update 2015-11-19 07:46:15 -08:00
Jacob Hoffman-Andrews 63d7d73917 Merge pull request #1142 from kelunik/master
Trim trailing whitespace for validation payloads
2015-11-19 07:36:00 -08:00
Niklas Keller a5028b3ba5 Modity test for payloads with trailing whitespace 2015-11-19 06:44:09 +01:00
Niklas Keller 03ef42dd3a Move trailing whitespace into constant 2015-11-19 06:44:09 +01:00
Niklas Keller 599c204ae9 Trim trailing whitespace for validation payloads 2015-11-19 06:44:09 +01:00
bifurcation aa81682c30 Merge branch 'master' into go-jose-update 2015-11-18 21:37:59 -08:00
Richard Barnes 604f629957 Update to latest go-jose 2015-11-18 21:37:33 -08:00
Jeff Hodges 9b7f2c787a Merge pull request #1164 from letsencrypt/fix-log-level
Restore stdoutLevel to 7.
2015-11-18 20:45:53 -08:00
Jacob Hoffman-Andrews 7852ec9afe Restore stdoutLevel to 7. 2015-11-18 20:39:46 -08:00
Roland Bracewell Shoemaker 18ecc731ab Merge pull request #1146 from letsencrypt/randomize_challenges_for
randomize output of PolicyAuthority.ChallengesFor
2015-11-18 11:32:44 -08:00
Jeff Hodges d2b6cc0e98 randomize output of PolicyAuthority.ChallengesFor
This shuffles both the challenges and the combinations returned while
keeping them in sync.

Fixes #1069.
2015-11-18 11:14:11 -08:00
Jeff Hodges 658f86ef79 Merge pull request #1155 from jcjones/dns_over_tcp
Only use TCP for DNS.
2015-11-18 11:11:35 -08:00
J.C. Jones 31aaef3f4e Only use TCP for DNS.
Since Boulder always requests DNSSEC records, in practice DNS responses often
exceed the IP MTU.

Boulder installations expect to have a local DNS resolver, and all modern DNS
resolvers support TCP connections. Since miekg/dns does not perform an
"attempt udp, timeout, retry via tcp" approach, it's simpler and more reliable
to always use TCP for internal DNS resolution. This makes failures more
obvious as well.

Also change the integration test DNS server to TCP.
2015-11-18 10:54:08 -07:00
Richard Barnes 0835ee8db3 Update VA and WFE to use revised nonce mechanisms in go-jose 2015-11-17 13:50:17 -08:00
Richard Barnes 8f6a95f9a8 Update go-jose 2015-11-17 13:50:17 -08:00
Jeff Hodges 5754622f40 Merge pull request #1144 from letsencrypt/quiet-more-logs
Inihibit more logs from going to stdout.
2015-11-16 11:40:38 -08:00
Roland Bracewell Shoemaker 24010ee4a9 Merge branch 'master' into quiet-more-logs 2015-11-16 11:34:54 -08:00
Jeff Hodges 41d7b69550 Merge pull request #1148 from letsencrypt/short-nonce
Check for short nonces
2015-11-16 11:30:29 -08:00
Jacob Hoffman-Andrews 538df43438 Merge branch 'master' into short-nonce 2015-11-16 11:21:24 -08:00
Jacob Hoffman-Andrews 59b92132e7 Add a TODO. 2015-11-16 09:43:45 -08:00
Jacob Hoffman-Andrews ed1fef72eb Merge branch 'master' of github.com:letsencrypt/boulder into quiet-more-logs 2015-11-16 09:36:54 -08:00
Jacob Hoffman-Andrews 284f472b1e Inihibit more logs from going to stdout.
Follow up on https://github.com/letsencrypt/boulder/issues/852,
there were a couple of spots I missed.
2015-11-15 11:34:31 -08:00
Jacob Hoffman-Andrews cd4e6efc84 Merge pull request #1141 from letsencrypt/move-config
Move config structs into config.go.
2015-11-13 20:25:56 -08:00
Roland Bracewell Shoemaker a4e3e7464c Merge branch 'master' into move-config 2015-11-13 18:03:04 -08:00
Roland Bracewell Shoemaker 15dbe4c9fa Merge pull request #1140 from letsencrypt/update_le_go_jose
fix le fork of go-jose again
2015-11-13 15:05:40 -08:00
Jacob Hoffman-Andrews 1b0838cf99 Move config structs into config.go.
Part of https://github.com/letsencrypt/boulder/issues/1052. I'll be adding some
new config structs, and want everything in a consistent place.
2015-11-13 14:57:07 -08:00
Jeff Hodges 7bd22352ba fix le fork of go-jose again 2015-11-13 14:48:05 -08:00
Jeff Hodges dbbd60430c Merge pull request #1133 from letsencrypt/less-log
Improve logging.
2015-11-12 12:42:55 -08:00
Jeff Hodges b89d130235 Merge branch 'master' into less-log 2015-11-12 12:23:45 -08:00
Jeff Hodges af83b734eb Merge pull request #1121 from letsencrypt/no-500-dns
Don't serve 500's on DNS timeout.
2015-11-12 12:23:28 -08:00
Jacob Hoffman-Andrews 47bae156e5 Move config structs into config.go. 2015-11-12 12:01:14 -08:00
Jacob Hoffman-Andrews f2b86769d2 Merge branch 'master' into no-500-dns 2015-11-11 18:20:48 -08:00
Jacob Hoffman-Andrews 083359a97d Add test for ProblemDetailsFromDNSError.
Also, remove case for temporary errors, which we don't need to handle specially.
2015-11-11 18:05:55 -08:00
Jacob Hoffman-Andrews 0c9b2a71d2 Fix DNS RTT stat to .A 2015-11-11 17:27:20 -08:00
Jacob Hoffman-Andrews 2fc0f3143e Improve logging.
Consolidate initialization of stats and logging from each main.go into cmd
package.

Define a new config parameter, `StdoutLevel`, that determines the maximum log
level that will be printed to stdout. It can be set to 6 to inhibit debug
messages, or 0 to print only emergency messages, or -1 to print no messages at
all.

Remove the existing config parameter `Tag`. Instead, choose the tag from the
basename of the currently running process. Previously all Boulder log messages
had the tag "boulder", but now they will be differentiated by process, like
"boulder-wfe".

Shorten the date format used in stdout logging, and add the current binary's
basename.

Consolidate setup function in audit-logger_test.go.

Note: Most CLI binaries now get their stats and logging from the parameters of
Action. However, a few of our binaries don't use our custom AppShell, and
instead use codegangsta/cli directly. For those binaries, we export the new
StatsAndLogging method from cmd.

Fixes https://github.com/letsencrypt/boulder/issues/852
2015-11-11 16:52:42 -08:00
Jeff Hodges bc28021ddb Merge pull request #1132 from letsencrypt/integration-fixes
Integration test fixes
2015-11-11 14:06:16 -08:00
Jeff Hodges 86c52c4c2d Merge branch 'master' into integration-fixes 2015-11-11 14:00:19 -08:00
Roland Bracewell Shoemaker d9a0df0f3f Merge pull request #1131 from letsencrypt/mod_security_accept
set an Accept header on VA HTTP requests
2015-11-11 13:58:53 -08:00
Jeff Hodges 646ec00595 Merge branch 'master' into integration-fixes 2015-11-11 13:54:27 -08:00
Jacob Hoffman-Andrews 2e83cb1ef1 Add new dns package. 2015-11-11 13:48:20 -08:00
Jacob Hoffman-Andrews 02d5aa5831 Integration test fixes
In https://github.com/letsencrypt/boulder/pull/1110 we put
the activate command in the wrong place so it didn't run if
LETSENCRYPT_PATH was set.

Also remove SIMPLE_HTTP_PORT which is no longer necessary. It was used to keep
the build passing as the client transitioned ports. The client now defaults to
5002.
2015-11-11 13:43:46 -08:00
Jeff Hodges fe69a965e5 set an Accept header on VA HTTP requests
This fixes some mysterious breakages that Let's Encrypt users that also
used mod_security on their domains had.

There's some back and forth about whether the mod_security rule is wise,
but that's captured in a mod_security ticket linked from this PR's
ticket.

This patch is a one-line fix with no probable downside. We're not likely
to want to do many more things to satisfy misunderstandings around HTTP
but this seems fine to help our people out.

Fixes #1019.
2015-11-11 13:43:02 -08:00
Roland Bracewell Shoemaker 6b8f27d070 Merge pull request #1130 from letsencrypt/fix-nonce-race
Fix some races in nonce.go
2015-11-11 13:39:55 -08:00
Jacob Hoffman-Andrews e24314a0fb Move problemDetailsFromDNSError into new package. 2015-11-11 12:56:30 -08:00
Jacob Hoffman-Andrews 8b2c50bc65 Return pointer from NewNonceService. 2015-11-11 12:47:38 -08:00
Jacob Hoffman-Andrews c6bb0ad45b Merge branch 'master' into fix-nonce-race 2015-11-11 12:35:43 -08:00
Jacob Hoffman-Andrews dc4af5b364 Print errors and use pointer receivers. 2015-11-11 12:35:18 -08:00
Jacob Hoffman-Andrews e3669c24c7 Fix some races in nonce.go 2015-11-11 12:28:20 -08:00