confidential-containers / simple-kbs

Key Broker Server for SEV(-ES)
Apache License 2.0
10 stars 12 forks source link

Extensible request parsing #14

Closed fitzthum closed 2 years ago

fitzthum commented 2 years ago

Revamp request parsing to be extensible, clearer, and have better error handling. Now you can add a new secret type by implementing the SecretType trait. I also added some unit tests. Note that there is no unit test for secret bundles yet because secret bundles aren't yet supported in the database code.

This fixes #6 and helps with #7.

Note that the policy db test is still failing. That is orthogonal to this PR and will hopefully be resolved soon.

@dubek