Skip to content
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

Push rate limiting down into rekor client #60

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

jonjohnsonjr
Copy link
Collaborator

This requires us to fork a small package from sigstore/rekor, but it gives us a few benefits:

We rate limit per HTTP request, which is more aligned with the actual rate limit (rather than per rekor client method call).

We rate limit the innermost transport, which means retries won't bypass the limit.

We can modify the default transport to use a pooled transport, which should reuse connections, which should be faster with concurrent requests.

This requires us to fork a small package from sigstore/rekor, but it
gives us a few benefits:

We rate limit per HTTP request, which is more aligned with the actual
rate limit (rather than per rekor client method call).

We rate limit the innermost transport, which means retries won't bypass
the limit.

We can modify the default transport to use a pooled transport, which
should reuse connections, which should be faster with concurrent
requests.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr merged commit 3923539 into chainguard-dev:main Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants