aboutsummaryrefslogtreecommitdiff
path: root/server/store/store.go
AgeCommit message (Collapse)Author
2020-04-13SimplifyBen Burwell
2018-08-23Record request reason in the db instead of loggingNiall Sheridan
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-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
2017-04-15Revoke multiple certs in a single callNiall Sheridan
2017-04-10Add comment for exported methodNiall Sheridan
2017-04-10override the json marshaller's time formatNiall Sheridan
2017-02-19Add grpc signerNiall Sheridan
2017-01-27Remove mongo supportKevin Lyda
Resolves #40
2017-01-22Switch from database/sql to sqlxNiall Sheridan
2017-01-05Move GetPublicKey to the shared `lib` packageNiall Sheridan
2016-10-11Replace the 'datastore' option with a 'database' optionNiall Sheridan
The 'datastore' string option is deprecated and will be removed in a future version. The new 'database' map option is preferred.
2016-10-06Add support for Hashicorp VaultNiall Sheridan
Vault is supported for the following: As a well-known filesystem for TLS cert, TLS key and SSH signing key. For configuration secrets for cookie_secret, csrf_secret, oauth_client_id and oauth_client_secret options.
2016-09-11Allow filtering resultsNiall Sheridan
2016-07-24Add a page for revoking certsNiall Sheridan
Add a template for revocation Use DATETIME type to store created/expires times Require auth for the /admin and /revoke endpoints
2016-07-03first pass at a certificate storeNiall Sheridan