-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Filter out unknown fields in ProtoApiScrubber #43222
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
base: main
Are you sure you want to change the base?
Conversation
… for the CheckField() method to 100 to avoid stack overflows. Signed-off-by: nick <[email protected]>
… for the CheckField() method to 100 to avoid stack overflows. Signed-off-by: nick <[email protected]>
…to unknown_field_filter Signed-off-by: nick <[email protected]>
…to unknown_field_filter Signed-off-by: nick <[email protected]>
…to unknown_field_filter Signed-off-by: nick <[email protected]>
|
Hi @nickshokri, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
Signed-off-by: nickshokri <[email protected]>
…to unknown_field_filter Signed-off-by: nick <[email protected]>
…to unknown_field_filter Signed-off-by: nick <[email protected]>
| Fix on-demand TLS selector to enforce session resumption settings. | ||
| - area: ext_authz | ||
| change: | | ||
| Fixed the gRPC ext_authz client to respect ``status_on_error`` configuration when gRPC calls fail. |
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.
I think there's something wrong with the release notes. Please fix.
| if (field->kind() == Protobuf::Field_Kind_TYPE_MESSAGE || | ||
| field->kind() == Protobuf::Field_Kind_TYPE_ENUM) { | ||
| return FieldCheckResults::kPartial; | ||
| if (field_depth < 100) { |
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.
High-level comment: it is not clear to me why the value of 100 is chosen as the maximal value. On a highly busy system, this value may need to be smaller, no?
Would it make sense to have this value configurable?
Signed-off-by: nickshokri <[email protected]>
Commit Message: Add an unknown field filter in the ProtoApiScrubber's CheckField() method. A max depth cap of 100 was also added to prevent stack overflow.
Additional Description: Note that AI was used for creating the unit tests
Risk Level: Low
Testing: Added unit tests and confirmed they pass
Docs Changes: Added to ProtoApiScrubber documentation the existence of an unknown field filter
Release Notes: Added section under "minor changes"
Platform Specific Features: N/A