edgelesssys / contrast

Deploy and manage confidential containers on Kubernetes
https://docs.edgeless.systems/contrast
GNU Affero General Public License v3.0
161 stars 6 forks source link

coordinator: use history in authority #551

Closed burgerdev closed 2 weeks ago

burgerdev commented 3 weeks ago

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.

katexochen commented 2 weeks ago

Let's wait with the merge until after v0.7.0.