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
[xDS] pass HTTP filter name to GenerateServiceConfig()
method.
#32976
Conversation
GenerateServiceConfig()
method
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.
Looks good! Feel free to merge after addressing the outstanding comment.
@@ -303,7 +303,8 @@ TEST_F(XdsFaultInjectionFilterTest, ModifyChannelArgs) { | |||
TEST_F(XdsFaultInjectionFilterTest, GenerateServiceConfigTopLevelConfig) { | |||
XdsHttpFilterImpl::FilterConfig config; | |||
config.config = Json::Object{{"foo", "bar"}}; | |||
auto service_config = filter_->GenerateServiceConfig(config, nullptr); | |||
auto service_config = | |||
filter_->GenerateServiceConfig(config, nullptr, "" /*filter_name=*/); |
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.
Please change this to be /*filter_name=*/""
.
Same thing throughout.
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.
Thanks, Mark! Fixed.
GenerateServiceConfig()
methodGenerateServiceConfig()
method.
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 with 1 comment
…c#32976) We need the RBAC filter name as the `policy_name` field in audit logging context.
We need the RBAC filter name as the
policy_name
field in audit logging context.