chainloop icon indicating copy to clipboard operation
chainloop copied to clipboard

feat: reunify discover endpoints

Open migmartri opened this issue 1 year ago • 0 comments

Currently, the referrer API service contains two endpoints, one public and one private

https://github.com/chainloop-dev/chainloop/blob/ab86233ffb7f57307b6032b18aea416d5799bfcf/app/controlplane/api/controlplane/v1/referrer.proto#L26-L33

The private one returns information from any of your organizations while the public one only information stored in the public index.

There is a common use-case where we want to call both the private and the public one and merge the results, this requires two API calls.

We could look into extending the private endpoint to support a flag that says smth like include_public that internally will make sure it also fetches the info from the public index.

We could look into having a single endpoint but that will require more work since one of them does not have any authorization, and will require many core changes

migmartri avatar Apr 23 '24 09:04 migmartri