-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ability to enable/disable specific rekor API endpoints #1080
Conversation
Signed-off-by: Bob Callaway <bcallaway@google.com>
This seems fine, just curious what the context is. |
Signed-off-by: Bob Callaway <bcallaway@google.com>
If we wanted isolation of specific read-only VS write-only paths for scaling, it might be useful to be able to narrow the API surface down. This also removes a couple incorrect middleware handlers and caching rules that no longer apply. |
Codecov Report
@@ Coverage Diff @@
## main #1080 +/- ##
==========================================
- Coverage 64.10% 63.65% -0.45%
==========================================
Files 82 82
Lines 7482 7534 +52
==========================================
Hits 4796 4796
- Misses 2065 2116 +51
- Partials 621 622 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
code looks good, don't forget to update https://github.com/sigstore/sigstore-website/tree/docs/content/en/rekor too. |
Not sure I follow here... Rekor itself is stateless, if we had a bunch only doing reads I'm not sure how that would help with the database scaling. Would we point them at read only replicas of mysql/trillian or something? |
That's one possibility. We could set up read replicas in other regions so the read path continues to operate even if our write instance goes down. The other goodness here might be splitting read & write paths within a cluster, so a query of death bug in write wouldn't completely take down read. |
Signed-off-by: Bob Callaway <bobcallaway@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, look good! Thanks for adding in the validation/panic in case someone mis-types the endpoint.
Signed-off-by: Bob Callaway bcallaway@google.com