Cloud DLP Filter for Envoy is a WebAssembly ("Wasm") HTTP filter for Envoy sidecar proxies inside an Istio service mesh. DLP Filter for Envoy captures proxy data plane traffic and sends it for inspection to Cloud DLP, where the payload is scanned for sensitive data, including PII.
DLP Filter for Envoy works with Istio, and uses the envoy-wasm fork of the envoyproxy repository. Because the Wasm Application Binary Interface (ABI) is not yet stabilized, DLP Filter is likely to break between Istio minor version updates.
Note: DLP Filter for Envoy uses the Cloud DLP service for scanning traffic, and is subject to Cloud DLP pricing.
For a quick overview of how to use Cloud DLP in a service mesh using the DLP Filter for Envoy, watch the following video:
Before building the DLP Filter for Envoy, ensure the following components are installed:
- Bazel (For installation instructions, see Installing Bazel on the Bazel website.)
To build the proxy container with DLP Filter for Envoy, do the following:
First, compile the DLP Filter for Envoy in the plugin/ folder:
( cd plugin/ && bazel build :filter.wasm )
The built DLP Filter will be here:
plugin/bazel-bin/filter.wasm
Run tests on the filter you just built:
bazel test //test/plugin/... && ./run_integ_tests.sh
Build the proxy image with the filter by running the following command:
bazel run //container:dlp_proxy
The proxy image is installed in the local container image repository with the following name and
tag: bazel/container:dlp_proxy
.
You can verify installation by running the following command:
docker images | grep dlp_proxy
This produces output similar to below:
bazel/container dlp_proxy a56a854415c5 50 years ago 306MB
For information about how to start using DLP Filter for Envoy quickly, see the following quickstart:
See docs/contributing.md.
To send us feedback about the DLP Filter or Cloud DLP, please contact us through the Cloud DLP support page.