Skip to content
Snippets Groups Projects
Commit eb99016e authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Warn when not using a persistent datastore

parent fc5cd742
Branches
Tags
No related merge requests found
...@@ -113,6 +113,7 @@ Exception to this: the `http_logfile` option **ONLY** writes to local files. ...@@ -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`. - `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`. - `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. - `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 ### database
......
...@@ -2,6 +2,7 @@ package store ...@@ -2,6 +2,7 @@ package store
import ( import (
"fmt" "fmt"
"log"
"sync" "sync"
"time" "time"
...@@ -94,6 +95,7 @@ func (ms *MemoryStore) clear() { ...@@ -94,6 +95,7 @@ func (ms *MemoryStore) clear() {
// NewMemoryStore returns an in-memory CertStorer. // NewMemoryStore returns an in-memory CertStorer.
func NewMemoryStore() *MemoryStore { func NewMemoryStore() *MemoryStore {
log.Println("WARNING: Using memory store to record issued certs.")
return &MemoryStore{ return &MemoryStore{
certs: make(map[string]*CertRecord), certs: make(map[string]*CertRecord),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment