grpc access logs: include passed in command parsers when validating commands#42915
Conversation
18b765e to
a903416
Compare
|
cc @wbpcode |
1d7ad8d to
e3925b1
Compare
|
Thanks for this contribution. But
|
We use a udp listener with dns filter (similar to this example)
whats the suggestion to fix envoy rejecting listener config due to command not being recognized in this case?
|
Sorry, I didn't make it clear. I mean, at the listener level, we cannot access the single DNS query attributes anyway, right? Then, we we need to configure the DNS command that? Could we remove the UDP listener's access logger or to update listener level format? |
|
/wait |
b406204 to
c99ca13
Compare
|
From slack conversation: the issue seems to be that non built in command parsers are not taken into account when validating commands, updated PR to fix that |
|
Could you please add some integration tests to reproduce the issue and verify the change? |
4417392 to
ae18ab9
Compare
| EXPECT_EQ(DNS_RESPONSE_CODE_NO_ERROR, response_ctx_->getQueryResponseCode()); | ||
| } | ||
|
|
||
| class DnsFilterAccessLogIntegrationTest |
There was a problem hiding this comment.
Maybe put the new access log integration tests in a new file: dns_filter_access_log_integration_test.cc?
Otherwise LGTM!
|
@yanjunxiang-google @wbpcode cc @farmpiggie |
|
Need to resolve conflicts. And pinging @yanjunxiang-google @wbpcode for more reviews. |
|
I think @yanavlasov didn't aware this when merge anohter PR. Sorry @AntonKanug. But the integration tests self still make sense. Could you merge main and then we can merge this new tests? Anyway, I think your problem has been resolved? |
|
Agree! At this point, please merge main and commit the tests added. Thanks for the contribution! @AntonKanug |
|
LGTM |
|
Looks like this needs a main merge |
Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com> u Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com> format Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com> test Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com> update Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com> u Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com>
Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com>
Signed-off-by: Wesley Hung <whung@palantir.com> Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com>
Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com>
20c6ad0 to
df91fac
Compare
Fixes: #43396
Commit Message: grpc access logs: include passed in command parsers when validating commands
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
Fixes listener initializing errors when using custom tag substitution for dns filter logs.