From eb99016e1629e690e55633de6fc63a14c53e7ea2 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Thu, 19 Oct 2017 22:05:34 +0100 Subject: Warn when not using a persistent datastore --- README.md | 1 + server/store/mem.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 6eb9de6..acbabdd 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ Exception to this: the `http_logfile` option **ONLY** writes to local files. - `cookie_secret`: string. Authentication key for the session cookie. This can be a secret stored in a [vault](https://www.vaultproject.io/) using the form `/vault/path/key` e.g. `/vault/secret/cashier/cookie_secret`. - `csrf_secret`: string. Authentication key for CSRF protection. This can be a secret stored in a [vault](https://www.vaultproject.io/) using the form `/vault/path/key` e.g. `/vault/secret/cashier/csrf_secret`. - `http_logfile`: string. Path to the HTTP request log. Logs are written in the [Common Log Format](https://en.wikipedia.org/wiki/Common_Log_Format). The only valid destination for logs is a local file path. +- `database`: See below. ### database diff --git a/server/store/mem.go b/server/store/mem.go index 68c5a13..c4fe14c 100644 --- a/server/store/mem.go +++ b/server/store/mem.go @@ -2,6 +2,7 @@ package store import ( "fmt" + "log" "sync" "time" @@ -94,6 +95,7 @@ func (ms *MemoryStore) clear() { // NewMemoryStore returns an in-memory CertStorer. func NewMemoryStore() *MemoryStore { + log.Println("WARNING: Using memory store to record issued certs.") return &MemoryStore{ certs: make(map[string]*CertRecord), } -- cgit v1.2.3