edgelesssys / contrast

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

coordinator: enable returning seed to user #604

Closed burgerdev closed 3 months ago

burgerdev commented 3 months ago

This PR consolidates Authority.setManifest (authority) and Authority.SetManifest (userapi) after the refactoring in #583. This is more or less a move of the function body from one file to another, except that the generated seed could now be returned to the user (for that to work, however, bae8e7f needs to change the Manifest definition first).

I tried to ensure that all test cases removed from authority_test.go are reflected in userapi_test.go, and it turned out we already covered most of it there.