Creating Traffic Filters
Filters can be saved from the traffic viewer and then used to prevent traffic from ever reaching Speedscale. Most users will create filters using this UI. Filter rules are stored in Speedscale cloud and applied by the Speedscale Forwarder. Once a filter is applied to the forwarder, no traffic will leave your network that is prohibited by the filter.
Here's how you apply them:
- Open the Traffic Viewer and select your service
- Apply filters to narrow down the traffic to only the request/response pairs that you want to allow.
- Click the Create Filter button in the top right of the filter section:
- Give the filter a unique ID (no spaces) - make sure to remember it.
- Change the
filterRule
configured in yourvalues.yaml
file of the operator helm chart to the filter rule name you entered in step 4. After updating or overriding the value, then run thehelm upgrade
command for the changes to take effect. You should seeSPEEDSCALE_FILTER_RULE
is now properly set on thespeedscale-forwarder
config map in your cluster.
Remember, if you get stuck you can get help quickly on the Speedscale slack