feat: Warn on missing signing keys when persisting challenges (#1088)
This commit is contained in:
parent
7e1b5d9951
commit
abf6c8de57
7 changed files with 37 additions and 6 deletions
|
|
@ -11,10 +11,9 @@ import (
|
|||
"go.etcd.io/bbolt"
|
||||
)
|
||||
|
||||
// Sentinel error values used for testing and in admin-visible error messages.
|
||||
// Sentinel error value used for testing and in admin-visible error messages.
|
||||
var (
|
||||
ErrBucketDoesNotExist = errors.New("bbolt: bucket does not exist")
|
||||
ErrNotExists = errors.New("bbolt: value does not exist in store")
|
||||
ErrNotExists = errors.New("bbolt: value does not exist in store")
|
||||
)
|
||||
|
||||
// Store implements store.Interface backed by bbolt[1].
|
||||
|
|
@ -150,6 +149,10 @@ func (s *Store) cleanup(ctx context.Context) error {
|
|||
})
|
||||
}
|
||||
|
||||
func (s *Store) IsPersistent() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (s *Store) cleanupThread(ctx context.Context) {
|
||||
t := time.NewTicker(time.Hour)
|
||||
defer t.Stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue