grpc access logs: include passed in command parsers when validating commands#42915
grpc access logs: include passed in command parsers when validating commands#42915AntonKanug wants to merge 6 commits intoenvoyproxy:mainfrom
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 |
a69afac to
b406204
Compare
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>
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? |
|
|
||
| const std::string record_name = parseDnsNameRecord(buffer, available_bytes, offset); | ||
| uint64_t available_bytes_uint64 = available_bytes; | ||
| const std::string record_name = parseDnsNameRecord(buffer, available_bytes_uint64, offset); |
There was a problem hiding this comment.
emm, this change seems to be just a cleanup, not related to the issue, right?
There was a problem hiding this comment.
yeah unrelated to the issue, size_t vs uint64_t caused problems when running tests on my mac
8b2622e to
4417392
Compare
Signed-off-by: Wesley Hung <whung@palantir.com>
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!
Signed-off-by: Anton Kanugalawattage <antondilon@gmail.com>
|
@yanjunxiang-google @wbpcode cc @farmpiggie |
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.