Skip to content

Commit

Permalink
ext_authz: expose fields latency, bytesSent and bytesReceived for CEL…
Browse files Browse the repository at this point in the history
… and logging (#37074)

This PR adds field access support for ext_authz filter state object
`ExtAuthzLoggingInfo`. It exposes simple fields
* latency
* bytesSent
* bytesReceived

This enables usage of ext_authz filter state in access logs, and any
filter/logger using CEL after
envoyproxy/envoy#35698.

Signed-off-by: JACQUES Francois <hypnoce@gmail.com>

Mirrored from https://github.com/envoyproxy/envoy @ 004e6eeaa6b4066f2ba62ca440bbcfb9fb3bc228
  • Loading branch information
update-envoy[bot] committed Nov 18, 2024
1 parent f4dea09 commit c492dde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ message ExtAuthz {
//
// If this is false the filter will not emit stats, but filter_metadata will still be respected if
// it has a value.
//
// Field ``latency_us`` is exposed for CEL and logging when using gRPC or HTTP service.
// Fields ``bytesSent`` and ``bytesReceived`` are exposed for CEL and logging only when using gRPC service.
bool emit_filter_state_stats = 29;
}

Expand Down

0 comments on commit c492dde

Please # to comment.