This change swaps the in-memory persistence for a filesystem-backed KV store wrapped by History.
Through the use of an internal atomic state pointer, the Authority struct is now thread-safe and responds with the correct state (esp. CA certs) even under concurrent calls to SetManifest. It also anticipates out-of-band modifications of persistence and syncs accordingly, which should make it ready for a distributed setup.
This change swaps the in-memory persistence for a filesystem-backed KV store wrapped by
History
.Through the use of an internal atomic state pointer, the
Authority
struct is now thread-safe and responds with the correct state (esp. CA certs) even under concurrent calls toSetManifest
. It also anticipates out-of-band modifications of persistence and syncs accordingly, which should make it ready for a distributed setup.