Commit Graph

1390 Commits

Author SHA1 Message Date
Roland Shoemaker 4a26a515c9 Switch to shared struct 2015-08-10 16:20:11 -07:00
Roland Shoemaker e9855dd41e Add method comments 2015-08-10 15:36:26 -07:00
Roland Shoemaker 62ae2efe95 Fix merge stompage 2015-08-10 15:29:13 -07:00
Roland Shoemaker b01ee02d35 Merge master 2015-08-10 15:13:47 -07:00
Roland Shoemaker df8e83a2b8 Trim commented code 2015-08-10 15:13:04 -07:00
Jacob Hoffman-Andrews 0d3ba489f8 Merge pull request #600 from jgillula/existing-cert
Command-line tool for importing existing certs
2015-08-10 15:11:30 -07:00
Roland Shoemaker 5540729b56 Finished policy-loader 2015-08-10 14:32:53 -07:00
Roland Shoemaker 541971471a Flesh out the policy db loader tool 2015-08-10 13:58:32 -07:00
Jeremy Gillula d7b0b11648 Fixing more merge issues 2015-08-10 12:19:04 -07:00
Jeremy Gillula e9b24cfafd Merge remote-tracking branch 'origin/master' into existing-cert
Conflicts:
	cmd/boulder-ra/main.go
	cmd/boulder/main.go
	cmd/shell.go
	core/objects.go
	policy/policy-authority_test.go
	test/boulder-config.json
2015-08-10 12:02:01 -07:00
Roland Shoemaker 6315068ead Merge master 2015-08-10 11:58:02 -07:00
Roland Shoemaker 43a40d55c9 Allow whitelist to be enforcable + remove blacklist file 2015-08-10 11:56:49 -07:00
Roland Shoemaker d41432d797 Merge pull request #570 from letsencrypt/turn_on_python_tests
re-enable the letsencrypt client integration tests
2015-08-10 11:24:18 -07:00
Jacob Hoffman-Andrews cb2156817d Update test.sh comment re: Python client failure. 2015-08-10 10:31:21 -07:00
Roland Shoemaker fe2d02c067 Merge pull request #598 from letsencrypt/compile-fail
Fail startservers.py when compile fails.
2015-08-08 16:24:03 -07:00
Jeff Hodges 7f44d22604 use URL.Path until TravisCI gets 1.5
Either we'll figure out how to get it added or they will.
2015-08-08 02:08:47 -07:00
Jeff Hodges 42a626f9fc fix comment about db URLs and trim dbConnect 2015-08-07 23:30:01 -07:00
Jeff Hodges b08e6e0bad use MariaDB in integration tests and start.py
This changes moves from using SQLite in the integration tests and in the
test/boulder-config.json.

It does not port the unit tests over, unfortunately. That's a much more
invasive change.

This also updates the Dockerfile to include the MariaDB and RabbitMQ
requirements of start.py as well as adjusts the CMD to expose the
boulder server to the host machine. The Dockerfile also needed to have
its Go version bumped and the test.sh had to grow some explict
"function"s.

Updates #132
2015-08-07 23:22:52 -07:00
Jacob Hoffman-Andrews bcfb935472 Fail startservers.py when compile fails. 2015-08-07 17:55:43 -07:00
Roland Shoemaker 212bf67670 Add validation record sanity checking 2015-08-07 16:41:40 -07:00
Roland Shoemaker f9c78d5db2 Don't blank out validation reocrds 2015-08-07 15:28:42 -07:00
Roland Shoemaker 1ed355520f Merge pull request #594 from jgillula/enforce-amqps
Enforce amqps
2015-08-07 15:23:38 -07:00
Roland Shoemaker 17fa56ae91 Initialize validation record 2015-08-07 15:15:05 -07:00
Roland Shoemaker 3d540cf4b4 Merge branch 'master' into store-ips 2015-08-07 15:09:43 -07:00
Roland Shoemaker c41cda04f7 Review fixes pt. 1 2015-08-07 15:09:08 -07:00
Jeremy Gillula 553b72ed3b gofmt loves to change my whitespace 2015-08-07 14:15:48 -07:00
Jeremy Gillula e64b555496 Now with more clear error messages! 2015-08-07 14:09:27 -07:00
Jeremy Gillula 00120e2106 Clarifying a comment: if the insecure flag is not set we default to assuming secure (and requiring AMQPS in the URL and the TLS config info to be set) 2015-08-07 14:06:51 -07:00
Jeremy Gillula d9b1f3d453 Added enforcement of AMQPS. If the insecure flag is true, then we also require the URL to be AMQPS and the TLS config info to be set, otherwise we fail out. If insecure is true, then we don't check for anything else. 2015-08-07 14:04:12 -07:00
Jacob Hoffman-Andrews 139e36981d Merge pull request #591 from letsencrypt/monolith-conf
Remove dangling monolith config section
2015-08-06 19:09:40 -07:00
Roland Shoemaker eba0f8f4e2 Remove dangling monolith config section 2015-08-06 17:00:04 -07:00
Roland Shoemaker 1a2825138d Actually wire everything into the PADB 2015-08-06 16:57:38 -07:00
Roland Shoemaker 1bd02fbeb3 Add comments so lint will shut up 2015-08-06 16:23:11 -07:00
Roland Shoemaker ab2a7fce28 Merge branch 'master' into blacklist 2015-08-06 16:11:54 -07:00
Roland Shoemaker 8ee990b966 typo 2015-08-06 16:11:27 -07:00
Roland Shoemaker a888baf488 Initial PADB work for white/blacklists 2015-08-06 16:09:54 -07:00
Roland Shoemaker c84661ea13 Merge pull request #589 from letsencrypt/sha256_jwk
correct unique indexing of Registrations
2015-08-06 14:59:02 -07:00
Jeff Hodges 390464ddf4 correct unique indexing of Registrations
Fixes #579 (which blocks #132).

This changes the SA to use a unique index on the sha256 of a
Registration's JWK's public key data instead of on the full serialized
JSON of the JWK. This corrects multiple problems:

 1. MySQL/Mariadb no longer complain about key's being larger than the
 largest allowed key size in an index
 2. We no longer have to worry about large keys not being seen as unique
 3. We no longer have to worry about the JWK's JSON being serialized with its inner keys in different orders and causing incorrectly empty queries or non-unique writes.

This change also hides the details of how Registrations are stored in
the database from the other services outside of SA. This will give us
greater flexibility if we need to move them to another database, or
change their schema, etc.

Also, adds some tests for NoSuchRegistration in the SA.
2015-08-06 14:19:19 -07:00
Roland Shoemaker 461725bc48 Merge pull request #588 from letsencrypt/exp_mailer_db
use GetRegistration RPC outside of SA
2015-08-06 14:07:31 -07:00
Jeff Hodges 4ea94ee67f correct queue names in AdminRevoker and Exp Mailer 2015-08-06 13:52:46 -07:00
Roland Shoemaker 5f97c6752a Merge pull request #585 from letsencrypt/acme_url
use pointer to AcmeURL everywhere
2015-08-06 10:59:50 -07:00
Jeff Hodges c0de206f29 fix a go vet warning in expiration-mailer 2015-08-06 02:49:04 -07:00
Jeff Hodges 1c08a27748 use GetRegistration RPC outside of SA
We move the admin-revoker and expiration-mailer to using the
SA.GetRegistration RPC method instead of digging into the database
itself.

This allows the hiding of the registration model layer inside of SA, so
we can do fancy things with sha256 for the unique index inside of
it. This will happen in a later commit. See #579.

By exposing fewer details about how Registration is stored, we gain more
flexibility to fix up how its stored.

In the expiration-mailer, the performance hit for the early filtering of
mailto is likely neglibible and possibly even a benefit given the cost
of joins to the memory of MySQL.

If need be, we can built a bulk RPC layer for SA that provides the data
we need in findExpiringCertificates. It'll be easier than trying to
scale and change the storage layer underneath for each consumer.
2015-08-06 02:10:54 -07:00
Jeff Hodges 0f03494d56 use pointer to AcmeURL everywhere
This has the benefit of not requiring us to copy very fat url.URL
objects when we pass them to funcs or call their methods.
2015-08-05 18:23:38 -07:00
Roland Shoemaker 33f5f61fea Remove AddressFilter remnant + constant-ize the VA timeout 2015-08-05 16:56:41 -07:00
Roland Shoemaker 8d046a6e0d Review fixes + remove IPv6 2015-08-05 13:47:59 -07:00
Roland Shoemaker bc7bd8e0d4 Merge master 2015-08-05 13:05:40 -07:00
bifurcation bf4ac4f2a2 Merge pull request #575 from letsencrypt/grace
Gracefully shutdown RPC servers on SIGINT/SIGTERM (and move reconnection logic out of binaries)
2015-08-05 15:46:10 -04:00
Roland Shoemaker 8ad00b0025 Update NewAmqpRPCServer comment 2015-08-05 11:57:44 -07:00
Jacob Hoffman-Andrews 30624a332d Merge pull request #554 from letsencrypt/remove-monolith
Remove monolith
2015-08-05 11:45:44 -07:00