aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-08Change the primary key on the issued_certs tableNiall Sheridan
In retrospect a primary key that has no relation to the certificate is preferred to using the certificate KeyID. The KeyID is also very large for a primary index. This is a moderately tricky migration, especially for SQLite which has no means of altering the table in this fashion - it involves creating the new table and copying the data. Order of commands also matters - index names are global in SQLite, so the `idx_expires_at` index needs to be created at the correct stages. For MySQL migration the necessary steps are run as a single alter statement to minimise the risk of leaving the migration in an incomplete state if anything aborts. When tested on a table with 250,000 rows (MySQL 5.7) the migration took 3 seconds to complete. As certificates will be requested infrequently the risk of prolonged locking is minimal.
2018-08-07Drop unneeded index idx_revoked_expires_atNiall Sheridan
2018-08-07Add a tool to create empty migrationsNiall Sheridan
2018-08-07Add migrations testsNiall Sheridan
2018-08-07Updates to static content generation, docs and examplesNiall Sheridan
Static content generator finds the root of the git repo and executes from there. Packr will scan subdirs for boxes to be packed.
2018-08-07Move StringSlice into the store packageNiall Sheridan
2018-08-07Unexport store implementationsNiall Sheridan
Return an error if the store isn't known, instead of defaulting to a mem store
2018-08-07Remove obsolete db seed scriptNiall Sheridan
2018-08-07Manage db schema with rubenv/sql-migrateNiall Sheridan
It's currently hard to make changes to the database schema. Use sql-migrate to make incremental changes. Stop hard-coding the database name (the default is still "certs" for backward-compatibility) The `automigrate()` function will automatically run pending migrations. Use a different migration directory per database driver. This carries a cost of duplication, but is easier than creating migrations which will cleanly execute in both SQLite and MySQL. Migrations are shipped using the packr utility.
2018-08-07Use multi-stage build with current Go versionNiall Sheridan
2018-08-06Makefile and README fixesNiall Sheridan
Makefile: - Use goimports to format - Regenerate static files - Check that the git branch is clean README: - Remove section on Docker. To be re-added. - Link to releases
2018-08-06Error if the git client isn't cleanNiall Sheridan
2018-08-05Test against 1.11 beta3Niall Sheridan
2018-08-01Switch to a MakefileNiall Sheridan
2018-08-01Migrate from esc to packr for static filesNiall Sheridan
2018-06-20Update versionsv1.0.0Niall Sheridan
2018-06-20use mysql.NewConfig() to set defaults correctlyNiall Sheridan
2018-06-20Update dependenciesNiall Sheridan
2017-10-19Warn when not using a persistent datastoreNiall Sheridan
2017-10-19Move database config to the server sectionNiall Sheridan
2017-10-18allow whitespace in message (#68)Bob Long
2017-10-18Update Go versionNiall Sheridan
2017-10-18Update dependenciesNiall Sheridan
2017-10-17 Support a message to be passed and logged from client to server (#67)Bob Long
* Support a message to be passed and logged from client to server
2017-08-14Use bold textNiall Sheridan
2017-08-14Add a note about the dangers of relying on dropping privs in GoNiall Sheridan
2017-06-17Disable grpc multiplexerNiall Sheridan
2017-06-17Set the textarea heightNiall Sheridan
2017-06-05Saving private keys (#61)fuero
* enables saving private keys * renames public_file_prefix to key_file_prefix and updates its docs to better reflect the changes
2017-04-15Revoke multiple certs in a single callNiall Sheridan
2017-04-10enable race detectionNiall Sheridan
2017-04-10remove calls to t.Parallel()Niall Sheridan
2017-04-10update dependenciesNiall Sheridan
2017-04-10add a healthcheck handlerNiall Sheridan
2017-04-10obtain the username before revoking the tokenNiall Sheridan
2017-04-10Add comment for exported methodNiall Sheridan
2017-04-10override the json marshaller's time formatNiall Sheridan
2017-04-10fix behaviour of SQLStore.ListNiall Sheridan
2017-04-10Populate all fields during testNiall Sheridan
2017-04-10Add indexesNiall Sheridan
2017-04-10don't log timestampsNiall Sheridan
2017-04-10Ensure resp.Body is closedNiall Sheridan
2017-03-02Add Go to client requirementsNiall Sheridan
2017-02-20Split the servers out of mainNiall Sheridan
2017-02-19update dependenciesNiall Sheridan
2017-02-19Add grpc signerNiall Sheridan
2017-02-19Ignore generated .idea directoryNiall Sheridan
2017-02-16Test against 1.8 and tipNiall Sheridan
2017-02-12Update dependenciesNiall Sheridan
2017-02-12Minor fixupsNiall Sheridan
Correct some flag strings and some format strings Don't fatal when the client config file is missing Make keysigner, certstore and authprovider package-level