Commit Graph

2783 Commits

Author SHA1 Message Date
Roland Shoemaker b92d1b7ca9 Move test_secret file 2016-01-26 15:48:16 -08:00
Roland Shoemaker d1428e164e Add basic test 2016-01-25 11:47:30 -08:00
Roland Shoemaker f02864fb7e Read SMTP password from file 2016-01-24 15:35:04 -08:00
Jacob Hoffman-Andrews 1efa30baf6 Merge pull request #1404 from twstrike/fix_drop_sql_using_docker
Docker image mariadb should be at 10.0
2016-01-22 15:44:30 -08:00
Fan Jiang 71b472dd13 Dockerfile of mariadb is mapping 10 as "10.1.10, 10.1, 10, latest"
Thus lead to the test/drop_users.sql having error, mentioned in #1322
If we don't support mariadb 10.1+ now, we should specify it.
2016-01-22 18:30:44 -05:00
Jeff Hodges f94838914d Merge pull request #1400 from letsencrypt/user_agent
include User-Agent in logEvent
2016-01-22 13:56:34 -08:00
Jeff Hodges b995344132 Merge branch 'master' into user_agent 2016-01-22 12:50:26 -08:00
Jeff Hodges e247285487 Merge pull request #1388 from mbwalas/godeps
Update publicsuffix dependency
2016-01-22 12:49:38 -08:00
mbwalas 72766f8ca8 Merge branch 'master' into godeps 2016-01-22 21:10:18 +01:00
Jacob Hoffman-Andrews 4cab7e37a2 Merge branch 'master' into user_agent 2016-01-22 11:17:08 -08:00
Jacob Hoffman-Andrews 72b034e044 Merge pull request #1389 from hlandauf/profile-selection
Allow CFSSL profiles to be selected by key type
2016-01-22 10:20:46 -08:00
Hugo Landau f49028107e Allow CFSSL profiles to be selected by key type
Allows multiple CFSSL profiles to be defined. A profile is selected by
key type. ECDSA keys get one profile, RSA keys get another.

Either the "profile" config option or the "rsaProfile" and
"ecdsaProfile" config options must be specified. Both cannot be
specified. Specifying "profile" uses the same profile for RSA and ECDSA.

Fixes #1384
2016-01-22 11:00:41 +00:00
mbwalas 091531785f Merge branch 'master' into godeps 2016-01-22 11:25:59 +01:00
Jeff Hodges 068c0e1620 include User-Agent in logEvent
This makes identifying clients with boogs or just weird behavior easier to find.
2016-01-21 17:39:41 -08:00
Jeff Hodges 3f8ed51ba4 Merge pull request #1399 from letsencrypt/nonce_logging
log nonce to and from client
2016-01-21 17:15:04 -08:00
Jacob Hoffman-Andrews b5a2d3dcce Merge branch 'master' into nonce_logging 2016-01-21 16:19:04 -08:00
Jeff Hodges 31fe1a98f8 Merge pull request #1398 from r0ro/fix-dns-authority-check
Fix dns01 authority check
2016-01-21 14:08:38 -08:00
Romain Fliedel e592485229 add omitempty on ValidationRecord Authorities 2016-01-21 21:59:36 +01:00
Jeff Hodges 3214245240 log nonce to and from client
Also, log when a nonce service error occurs.

Updates #1217
2016-01-21 11:54:15 -08:00
Romain Fliedel 5d9191b537 add test to ensure dns validation succeed when dns reply does not contain authority 2016-01-21 16:17:48 +01:00
Romain Fliedel 3e06307e8a only add soa authority response for nxdomain or not entry
This is more what we expect from a dns server.

dig A nx.google.com @ns2.google.com

; <<>> DiG 9.9.5-3ubuntu0.7-Ubuntu <<>> A nx.google.com @ns2.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28643
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;nx.google.com.                 IN      A

;; AUTHORITY SECTION:
google.com.             60      IN      SOA     ns4.google.com. dns-admin.google.com. 112672771 900 900 1800 60

;; Query time: 13 msec
;; SERVER: 216.239.34.10#53(216.239.34.10)
;; WHEN: Thu Jan 21 14:44:06 CET 2016
;; MSG SIZE  rcvd: 81

VS

dig A www.google.com @ns2.google.com

; <<>> DiG 9.9.5-3ubuntu0.7-Ubuntu <<>> A www.google.com @ns2.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18684
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         300     IN      A       64.233.184.99
www.google.com.         300     IN      A       64.233.184.105
www.google.com.         300     IN      A       64.233.184.106
www.google.com.         300     IN      A       64.233.184.104
www.google.com.         300     IN      A       64.233.184.147
www.google.com.         300     IN      A       64.233.184.103

;; Query time: 13 msec
;; SERVER: 216.239.34.10#53(216.239.34.10)
;; WHEN: Thu Jan 21 14:44:32 CET 2016
;; MSG SIZE  rcvd: 128
2016-01-21 15:59:02 +01:00
Romain Fliedel ee36b5f2b4 don't expect all txt dns replies to contain an authority section
Server *MAY* return an authority section, especially on NXDOMAIN
the server will return an SOA authority response in order to
provide the nxdomain ttl value.
Otherwise there is no need for such section.
Dns client should be checking the header aa flags to check if the
response is authoritative and not check the presence of authority
section.
2016-01-21 15:25:31 +01:00
Marcin Walas bf4d44ae09 Merge branch 'godeps' of https://github.com/mbwalas/boulder into godeps 2016-01-21 10:46:11 +01:00
Marcin Walas 77b771c81e Update publicsuffix dependency 2016-01-21 10:45:12 +01:00
Roland Bracewell Shoemaker 4bf7ae5fa0 Merge pull request #1385 from letsencrypt/remove-verifycsr
Remove superfluous VerifyCSR method
2016-01-20 13:13:12 -08:00
Marcin Walas 2d08180640 Update publicsuffix dependency 2016-01-20 20:32:41 +01:00
Richard Barnes a39be0a85d Remove superfluous VerifyCSR method 2016-01-20 10:32:01 -05:00
Jacob Hoffman-Andrews 3ed79880d1 Merge pull request #1357 from hlandauf/ecdsa-account-key-support
ECDSA account key support
2016-01-13 23:09:24 -08:00
Hugo Landau 5c9be5385b ECDSA account key support 2016-01-14 06:56:35 +00:00
Roland Bracewell Shoemaker b92a876bd8 Merge pull request #1375 from letsencrypt/update-travis-go
Update Go to 1.5.3 in Travis.
2016-01-13 15:44:39 -08:00
Jacob Hoffman-Andrews d6aa970a09 Update Go to 1.5.3 in Travis. 2016-01-13 14:14:08 -08:00
Jacob Hoffman-Andrews 8ea73dac24 Merge pull request #1372 from letsencrypt/default-keypolicy
Add default value for KeyPolicy.
2016-01-12 12:21:55 -08:00
Jacob Hoffman-Andrews 6d33280249 Add default value for KeyPolicy.
This maintains our deployability guidelines, so the latest Boulder can be run
with the previous version of the config.
2016-01-12 12:14:36 -08:00
Jacob Hoffman-Andrews a6c07265a8 Merge pull request #1071 from hlandauf/fix-localhost-mysql
Fix localhost mysql
2016-01-12 10:26:07 -08:00
Hugo Landau d7ff9ebe04 Specifying MySQL users at 127.0.0.1 breaks if using IPv6
Specifying MySQL grants @'127.0.0.1' is liable to break when used on a
host which specifies localhost as resolving to ::1 as well as 127.0.0.1.
This causes test failure on some systems.

This change ensures that the test database creation scripts enable
connection from ::1.

e.g.:
  mysql -u sa boulder_sa_integration -h ::1
2016-01-12 03:41:16 +00:00
Jeff Hodges abb63beeea Merge pull request #1369 from letsencrypt/default-from
Add a default from address so mailer works.
2016-01-11 19:08:32 -08:00
Jacob Hoffman-Andrews 636816995d Add a default from address so mailer works. 2016-01-11 18:48:22 -08:00
Roland Bracewell Shoemaker 11e9a83bb8 Merge pull request #1368 from letsencrypt/mailer-repeated
Reuse a single connection to SMTP server.
2016-01-11 16:08:06 -08:00
Jacob Hoffman-Andrews 556afa3547 Reuse a single connection to SMTP server.
Also, add a Subject config field and use TLS-wrapped SMTP if appropriate.
2016-01-11 15:51:54 -08:00
Roland Bracewell Shoemaker 463ab45e38 Merge pull request #1364 from bretthoerner/fix-invalid-godeps
Fix invalid Godeps.json
2016-01-11 10:27:57 -08:00
Brett Hoerner 3d7413ae41 Fix invalid Godeps.json 2016-01-11 09:08:17 -06:00
Roland Bracewell Shoemaker 0de0ed550b Merge pull request #1324 from letsencrypt/dns-errors-fix
Report DNS status codes in detail.
2016-01-08 17:41:10 -08:00
Jacob Hoffman-Andrews d5acf9d2b5 Restore expectedCount. 2016-01-08 16:55:13 -08:00
Jacob Hoffman-Andrews 62f1e66bdb Merge branch 'master' of github.com:letsencrypt/boulder into dns-errors-fix 2016-01-08 14:14:38 -08:00
Jacob Hoffman-Andrews 40167f3da3 Merge remote-tracking branch 'le/master' into dns-errors-fix
Conflicts:
	bdns/dns.go
	bdns/dns_test.go
	mocks/mocks.go
	ra/registration-authority.go
	ra/registration-authority_test.go
2016-01-08 14:07:05 -08:00
Jeff Hodges 55828c0acf Merge pull request #1178 from duesee/test_wrong_signature
Added test: CA must reject CSRs with invalid signatures.
2016-01-08 13:11:23 -08:00
Jacob Hoffman-Andrews 78f43d8a4c Add context errors. 2016-01-08 13:04:00 -08:00
Damian Duesentrieb ad742c01d9 Updated call to NewCertificateAuthorityImpl 2016-01-08 14:30:22 +01:00
Damian Duesentrieb 491a76a6f6 Merge remote-tracking branch 'upstream/master' into test_wrong_signature 2016-01-08 14:08:37 +01:00
Jeff Hodges a47b712ac8 Merge pull request #1352 from letsencrypt/mail-from
Add a 'From' field to mailer config
2016-01-07 15:18:50 -08:00