-
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
/v1/log/entries/retrieve needs systematic test coverage. #1041
Comments
I've always been curious why the I assumed that IMO we should remove the redundancy here... if you have the index or entry UUID then use the |
The main benefit would be to fetch multiple log entries in the context of a single HTTP request. |
OH I see. That was probably the entire intent of the separate endpoint? In that case I change my opinion. Fetching a range is good. |
some notes I took while working #1144: the API takes array of entryUUIDs, logIndices, and/or entries; for each of these three:
|
Also should consider searching entries that span multiple shards |
Description
/v1/log/entries/retrieve is one of the more complicated APIs but lacks systematic test coverage and some code paths, like query by proposed entry, appear to have any test cases at all. There continue to be edge case bugs filed against this API. A systematic approach to testing would help harden the API for positive and negative cases.
Would adding this API to
rekor-cli
help? A lot of the e2e tests use the cli. The API is currently only used in a constrained way inverify
.The text was updated successfully, but these errors were encountered: