Applying Rules to Production
A DLP rule masks traffic once a forwarder applies it. Each forwarder applies one baseline rule to everything it captures, plus any group rules whose scope covers its cluster. This page covers the baseline. Group rules need no forwarder setting: they apply because of their scope.
Masking happens in your cluster, before captured traffic is sent to Speedscale cloud. It applies to traffic captured from then on. Snapshots captured earlier are not changed.
Check the Rule Before Rollout
Test a rule on representative traffic before it reaches production. The video shows a rule tested on synthetic traffic, with the original and masked payloads compared side by side.
To test against your own recordings, proxymock dlp test previews what a rule changes. See Author DLP and Filter Rules Locally.
Select the Rule for a Forwarder
Two forwarder settings control DLP:
| Setting | Helm value | Meaning |
|---|---|---|
SPEEDSCALE_DLP_CONFIG | dlp.config | The id of the baseline rule. |
WITH_DLP | dlp.enabled | Turns masking on or off without forgetting which rule is selected. |
In the dashboard, open Infrastructure, select the forwarder, and set Redaction rule. Or set the Helm values at install time:
dlp:
enabled: true
config: payments-pii
Changing either setting restarts the forwarder. Editing the rule itself does not: save it in the dashboard or push it with speedctl, and forwarders that use it pick up the change.
Name a rule without a scope as the baseline. A forwarder applies its baseline to all traffic and ignores any scope on it, so a group rule chosen here would mask every workload.
Roll Out
- Apply the rule to a forwarder in a test cluster.
- Send traffic that contains the fields you mask, and create a snapshot.
- Check the snapshot: masked fields show
REDACTED-tokens, and fields you did not mask are unchanged. - Apply the same rule to the production forwarder.
- Create a production snapshot and check it the same way.
Confirm Masking
Open an RRPair in Traffic or in a snapshot and look for REDACTED- values where the sensitive data was. An RRPair that DLP changed shows the id of the rule that masked it, and the id links to the rule.
If a field is still visible, see Troubleshooting.
Next Steps
- DLP Rules for Multiple Groups: let each group mask its own workloads on a shared forwarder.
- Generating Test Data: replace
REDACTED-tokens before replay.