-
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 bounds on number of elements in api/v1/log/entries/retrieve #1011
Conversation
Currently set the limit to 10 entries, we can increase it if users request it. Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
can you also add the limit to the various fields in |
yup, added! |
Codecov Report
@@ Coverage Diff @@
## main #1011 +/- ##
==========================================
+ Coverage 41.41% 41.45% +0.04%
==========================================
Files 70 70
Lines 6863 6867 +4
==========================================
+ Hits 2842 2847 +5
Misses 3724 3724
+ Partials 297 296 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
28a4447
to
d0f528d
Compare
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
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.
lgtm
For rollout there are options:
Post GA we will need to be following some combination of 1&2 for any breaking or risky change. |
I'm open to 2 or 3 for this change. @bobcallaway or @var-sdk, any preferences? |
I think a notification period (email and slack), wait a few days, then roll it out with a potential breakage would be fine. |
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
SGTM. Had to fix a merge conflict, if someone could LGTM this :) |
Currently set the limit to 10 entries, we can increase it if users request it.
It's difficult to know how much this will affect users. Based on parsing Rekor logs in the last 1 week, there are 290 requests to this endpoint that took >1s, which I'm assuming was requesting more than 10 entries (but could also just be related to something else). A lot of these logs are manual testing @var-sdk and I were doing, and there aren't any logs on the weekend. If anyone has suggestions on how to roll this out I'm happy to make changes.
closes #901
logs query
Signed-off-by: Priya Wadhwa priya@chainguard.dev
cc @var-sdk