Commit Graph

217 Commits

Author SHA1 Message Date
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 26cf4897eb Use LIKE instead of LOCATE 2015-07-29 12:21:31 -07:00
Roland Shoemaker bc6661f498 Add LOCATE to SQL query to filter registrations with no email contacts, currently breaks tests as SQLite doesn't support this operator 2015-07-27 18:51:15 -07:00
Roland Shoemaker e05f02eb8d Fix formatting 2015-07-27 15:07:26 -07:00
Roland Shoemaker 14700671af Review fixes, the sequel 2015-07-27 15:05:43 -07:00
Roland Shoemaker effe423eed Fix go-jose dep path 2015-07-27 13:11:05 -07:00
Roland Shoemaker 145790d9c3 Review fixes 2015-07-27 12:46:09 -07:00
Roland Shoemaker 5ff23e54d0 Remvoe cruft 2015-07-24 16:38:12 -07:00
Roland Shoemaker 19067da6a9 More tests 2015-07-24 16:36:03 -07:00
Roland Shoemaker 0bac4e4f59 Actually add the file... 2015-07-24 14:54:11 -07:00
Roland Shoemaker a69021f918 Add sendWarning test 2015-07-24 14:53:50 -07:00
Roland Shoemaker 960af78955 cleanup 2015-07-23 17:59:03 -07:00
Roland Shoemaker b5f519d22d Rework how the expiration mailer looks for certificates 2015-07-23 15:33:28 -07:00
Roland Shoemaker 0f238ec986 More initial framework 2015-07-20 18:03:29 -07:00
Roland Shoemaker 9aa4357fdf Initial bulk mailer work 2015-07-20 15:34:42 -07:00