Commit Graph

9 Commits

Author SHA1 Message Date
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