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.
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