-
Notifications
You must be signed in to change notification settings - Fork 23
feat: Set request size limits in Rekor #1271
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
Conversation
Reviewer's GuideThis pull request introduces a configurable MaxRequestBodySize parameter across Rekor and SecureSign components by extending CRDs, adding the field to the API types with a default, wiring it into the controller deployment args, updating deepcopy logic, and adjusting tests. Class diagram for updated RekorSpec structclassDiagram
class RekorSpec {
+Auth *auth
+int64 *MaxRequestBodySize
}
RekorSpec --> Auth
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @jourdee-lab - I've reviewed your changes - here's some feedback:
- Consider adding validation for MaxRequestBodySize (e.g., ensuring it’s positive and within reasonable bounds) so misconfigured values are rejected early.
- You might want to always emit the --max_request_body_size flag (using the default when unset) to ensure the deployed server config is explicit and won’t drift if upstream defaults change.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider adding validation for MaxRequestBodySize (e.g., ensuring it’s positive and within reasonable bounds) so misconfigured values are rejected early.
- You might want to always emit the --max_request_body_size flag (using the default when unset) to ensure the deployed server config is explicit and won’t drift if upstream defaults change.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Add a configurable HTTP request body size limit to Rekor by extending the CRD and API, updating deepcopy logic, and forwarding the flag to the server deployment
New Features:
Enhancements:
Tests: