Commit Graph

800 Commits

Author SHA1 Message Date
Roland Shoemaker 5d5eea7071 switch to only store dns names 2015-05-13 12:08:50 -07:00
Roland Shoemaker 07182500eb add missing rpc methods 2015-05-12 00:08:48 -07:00
Roland Shoemaker a2b3461d6f make CSR content unique in SQL table 2015-05-11 23:07:41 -07:00
Roland Shoemaker d95c552ab4 add denied csr table and AddDeniedCSR + AlreadyDeniedCSR methods for checking, added AddDeniedCSR to ra.NewCertificate 2015-05-11 23:02:39 -07:00
Roland Shoemaker 79b8958f70 fix conflict 2015-05-07 02:07:32 -07:00
Roland Shoemaker df1ff86acd revert to original transactional semantics 2015-05-07 01:55:38 -07:00
Roland Shoemaker 3041423361 dont export the pending/authz utility models 2015-05-06 22:22:31 -07:00
Roland Shoemaker 6a065d5cfc reversing part of the transaction cull 2015-05-06 21:48:55 -07:00
Roland Shoemaker 1cc1df2726 use core objects as models (except for pending/final authz) 2015-05-06 21:45:37 -07:00
Roland Shoemaker ae62792d52 actually use them 2015-05-06 16:47:27 -07:00
Roland Shoemaker 8290206ef8 consistent test style 2015-05-04 15:17:20 -07:00
Roland Shoemaker ca21cce198 some registration + authorization tests 2015-05-03 15:19:06 -07:00
Roland Shoemaker e25c60eaf8 PK typo 2015-05-03 14:08:02 -07:00
Roland Shoemaker 06536fae13 v2 compatible lock column setting 2015-05-03 13:51:11 -07:00
Roland Shoemaker 1597af6d2b fix vet problems 2015-05-03 13:35:15 -07:00
Roland Shoemaker 99f385c56e only add lock cols to tables that need them... 2015-05-03 02:59:45 -07:00
Roland Shoemaker 7a1a7ec32a add opti-lock (for v1) col, fix certificatesStatus typo, better FinalizeAuthorization 2015-05-03 02:29:58 -07:00
Roland Shoemaker 421434f2cb clean up boulderTypeConverter 2015-05-03 01:57:30 -07:00
Roland Shoemaker 0a4affaeba switch rest of functions to gorp, extended TypeConverter 2015-05-02 23:58:19 -07:00
Roland Shoemaker 1cee83c262 add db tags to structs we are embeding, update models, add custom type converter, simplify DumpTables (+ fix it), move GetCert... methods to gorp 2015-05-02 21:28:39 -07:00
Roland Shoemaker 4b27ae253e finish dumpTables and make it public (DumpTables) 2015-05-02 17:08:47 -07:00
Roland Shoemaker 8a6748182e add gorp dep 2015-05-02 16:00:35 -07:00
Jacob Hoffman-Andrews ac78f333f8 Merge branch 'master' into ocsp-table
Conflicts:
	ca/certificate-authority.go
	ca/certificate-authority_test.go
	cmd/boulder-ca/main.go
	cmd/boulder/main.go
	sa/storage-authority.go
	sa/storage-authority_test.go
2015-05-02 11:10:05 -07:00
J.C. Jones a77152e828 Rework Authority "New" methods to obtain AuditLogger from Singleton
- Also ran `go fmt` against these files I was touching anyway:
    sa/storage-authority.go
    va/validation-authority.go
    wfe/web-front-end.go
2015-05-01 21:50:07 -07:00
J.C. Jones e828c61818 Add singleton semantics to Audit Logger, per Issue #135
- Update tests to use the singleton logger
- Update commands to set the audit logger singleton
- Formatting updates to the tests (go fmt)
2015-05-01 21:48:24 -07:00
Jacob Hoffman-Andrews 7733793bb6 Fix test mode boulder instances.
Update initialization stanza.
Revert to inmemory sqlite storage for now.
Remove NOT NULL constraint from some fields.
2015-05-01 19:28:10 -07:00
Jacob Hoffman-Andrews 7352757086 Add test 2015-05-01 16:01:50 -07:00
Jacob Hoffman-Andrews 73603c95cf Add reason code and fix index. 2015-04-30 11:31:36 -07:00
Jacob Hoffman-Andrews 8e30ff81fb Partly done implementation of revoke. 2015-04-29 18:36:26 -07:00
Jacob Hoffman-Andrews 1d2c6a5d7c Split out GetCertificate / GetCertificateByShortSerial.
Also stub out some initial revocation code.
2015-04-29 11:48:08 -07:00
Jacob Hoffman-Andrews 3aa3355b27 TEXT -> VARCHAR(255) 2015-04-29 10:20:56 -07:00
Jacob Hoffman-Andrews f66651bc86 Add revokedDate to certificate status table. 2015-04-28 18:51:15 -07:00
Jacob Hoffman-Andrews ca6e349906 Fix tests. 2015-04-23 20:06:17 -07:00
Jacob Hoffman-Andrews 7145207104 Add initial certificate status in SA.
Also improve test tools.
2015-04-23 19:52:34 -07:00
Jacob Hoffman-Andrews 4d592ee261 Add cert metadata to table schema.
Also restructure table init to DRY it.
2015-04-23 17:57:18 -07:00
Jacob Hoffman-Andrews 32e159d320 Always use %016x when formatting shortSerial. 2015-04-23 16:09:46 -07:00
Roland Shoemaker b63c9f3dcf fixed typo
Not sure how that got changed...
2015-04-23 13:51:09 -07:00
Roland Shoemaker 828ea5641f cleanup 2015-04-22 20:27:42 -07:00
Roland Shoemaker 2c370de691 back to always-init method 2015-04-22 20:15:57 -07:00
Roland Shoemaker 7cf1872d74 typo 2015-04-21 18:44:34 -07:00
Roland Shoemaker 6944f233d4 sqlite doesn't support information_schema table 2015-04-21 17:53:53 -07:00
Roland Shoemaker e43bd98c78 move InitTables to NewSQLStorageAuthority and add checks so tables are only created if they don't exist 2015-04-21 17:46:05 -07:00
Jacob Hoffman-Andrews 7d8ef9a019 Fix tests and tidy up for review. 2015-04-18 23:44:42 -04:00
Jacob Hoffman-Andrews 431ad092eb Query certs by sequential part of serial number.
Also refactor WFE for better initialization and change StorageAuthority to
support this type of query.
2015-04-18 00:48:19 -04:00
Jacob Hoffman-Andrews 84df10fd6e Add empty tests where missing.
This will bring our coverage numbers down to a more meaningful number, and will
mean that we can start aiming to increase them monotonically.
2015-04-07 11:27:33 -07:00
J.C. Jones 33ac212b70 Add logging infrastructure to all authorities and commands 2015-03-24 19:06:11 -07:00
J.C. Jones 4e0aa900c9 Rebase 'lint-errcheck-fixes' of git://github.com/mvdan/boulder to letsencrypt/master
Conflicts:
	cmd/boulder-start/main.go
	core/interfaces.go
	core/objects.go
	core/util.go
	ra/registration-authority.go
	ra/registration-authority_test.go
	rpc/rpc-wrappers.go
	va/validation-authority.go
	wfe/web-front-end.go
2015-03-20 18:01:03 -07:00
Richard Barnes 96bd7e215a Further plumbing of registrations 2015-03-15 15:33:05 -04:00
Daniel Martí 880821801e hash.Hash.Write() never returns an error 2015-03-12 12:18:37 +01:00
Richard Barnes dcdf9954ae Pulling out sa module 2015-03-10 15:21:50 -07:00