Commit Graph

165 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews 322da1f6a1 Remove LockCol from issuedNames.
Also, limit size of reversedName column to 640.
2015-09-30 16:38:36 -07:00
Jacob Hoffman-Andrews f476432449 Store a DB of issued names.
Add counting for issued names within a given time period.

First part of https://github.com/letsencrypt/boulder/issues/864.
2015-09-28 19:37:50 -07:00
Richard Barnes c1c3d1e871 Changes to core, sa, policy 2015-09-28 10:51:55 -04:00
Richard Barnes 1a9fd9b455 Update to latest ACME spec 2015-09-28 10:10:06 -04:00
Richard Barnes 5d19a37783 Add authorized keys to DB/SA 2015-09-10 22:32:47 -04:00
Jacob Hoffman-Andrews ffcd1c866d Make challenge URI a display-time property.
Challenge URIs should be determined by the WFE at fetch time, rather than stored
alongside the challenge in the DB. This simplifies a lot of the logic, and
allows to to remove a code path in NewAuthorization where we create an
authorization, then immediately save it with modifications to the challenges.

This change also gives challenges their own endpoint, which contains the
challenge id rather than the challenge's offset within its parent authorization.
This is also a first step towards replacing UpdateAuthorization with
UpdateChallenge: https://github.com/letsencrypt/boulder/issues/760.
2015-09-09 16:23:45 -04:00
Richard Barnes 1f86f45781 Add account key to storage model and DB 2015-08-26 21:36:28 -04:00
Roland Shoemaker d58198e035 Add validationRecord logic to challenge model and schema 2015-08-21 15:19:32 -07:00
Roland Shoemaker 68b2e30059 Marshal AcmeURL in the model handler instead of type converter 2015-08-21 13:12:01 -07:00
Roland Shoemaker a28ffbecf6 Merge branch 'master' into challenge-table 2015-08-20 20:33:24 -07:00
Jeff Hodges f1738eb593 add copyright to sa/model.go 2015-08-20 10:27:44 -07:00
Roland Shoemaker 2cfe6a6884 Cleanup 2015-08-18 18:53:08 -07:00
Roland Shoemaker c5a38e61d1 Error fix 2015-08-18 16:49:54 -07:00
Roland Shoemaker 69edf779b5 Switch to real model vs. view 2015-08-18 16:38:06 -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