Envoy filter example
This project demonstrates the linking of additional filters with the Envoy binary.
A new filter
echo2 is introduced, identical modulo renaming to the existing
filter. Integration tests demonstrating the filter's end-to-end behavior are
For an example of additional HTTP filters, see here.
To build the Envoy static binary:
git submodule update --init
bazel build //:envoy
To run the
echo2 integration test:
bazel test //:echo2_integration_test
To run the regular Envoy tests from this project:
bazel test @envoy//test/...
How it works
BUILD file introduces a new Envoy static binary target,
that links together the new filter and
echo2 filter registers itself during the static initialization phase of the
Envoy binary as a new filter.