seedwing-io / seedwing-proxy

Policy-enforcing Artifact Proxy
Apache License 2.0
2 stars 3 forks source link

Update to compile #1

Closed lkatalin closed 1 year ago

lkatalin commented 1 year ago

This seems to have gotten out of sync with opa-client, notably the fact that OpenPolicyAgentClient is no longer a struct but now a trait. This PR brings in new changes from opa-client.

Note 1: The opa-client dependency should not be pinned to my branch, but to the main branch. I will update this if the corresponding PR is merged.

Note 2: I placed a dummy struct in PolicyEngine::evaluate() just as a placeholder to have a parameter for the new query() function signature. This should become something more reasonable and I can update it if there are any suggestions.