You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/waf/managed-rules/payload-logging/configure.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,17 @@ title: Configure payload logging in the dashboard
3
3
pcx_content_type: how-to
4
4
sidebar:
5
5
order: 2
6
+
label: Configure in the dashboard
6
7
head:
7
8
- tag: title
8
9
content: Configure payload logging for a managed ruleset in the dashboard
9
-
10
10
---
11
11
12
12
Configure payload logging for a ruleset in the ruleset configuration page.
13
13
14
14
:::note
15
15
16
-
Only users with the [Super Administrator role](/fundamentals/setup/manage-members/roles/) can configure payload logging and decrypt payloads in the Cloudflare dashboard. Other users can decrypt payloads if they have access to the logs and to the private key.
16
+
Only users with the [Super Administrator role](/fundamentals/setup/manage-members/roles/) can configure payload logging and decrypt payloads in the Cloudflare dashboard. Other users can decrypt payloads if they have access to the logs and to the private key.
17
17
:::
18
18
19
19
Do the following:
@@ -28,9 +28,9 @@ Do the following:
28
28
29
29
4. After reading and understanding the implications of enabling payload logging, select one of the available options:
30
30
31
-
***Generate key pair using your web browser**: Generates a key pair (a private and a public key) in your browser and configures payload logging with the generated public key.
31
+
-**Generate key pair using your web browser**: Generates a key pair (a private and a public key) in your browser and configures payload logging with the generated public key.
32
32
33
-
***Use my own public key**: Enter a public key [generated by the `matched-data-cli` command-line tool](/waf/managed-rules/payload-logging/command-line/generate-key-pair/).
33
+
-**Use my own public key**: Enter a public key [generated by the `matched-data-cli` command-line tool](/waf/managed-rules/payload-logging/command-line/generate-key-pair/).
Copy file name to clipboardExpand all lines: src/content/docs/waf/managed-rules/payload-logging/index.mdx
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,46 +3,54 @@ pcx_content_type: concept
3
3
title: Log the payload of matched rules
4
4
sidebar:
5
5
order: 11
6
-
7
6
---
8
7
9
-
import { GlossaryTooltip } from"~/components"
8
+
import { GlossaryTooltip } from"~/components";
10
9
11
10
The WAF allows you to log the request information that triggered a specific rule of a managed ruleset. This information is known as the payload. Payload logging is especially useful when diagnosing the behavior of WAF rules. Since the values that triggered a rule may contain sensitive data, they are encrypted with a customer-provided public key so that only you can examine them later.
12
11
13
12
:::note
14
13
15
-
16
14
This feature is only available for customers on an Enterprise plan.
17
15
18
-
19
16
:::
20
17
21
-
Each managed ruleset has its own payload logging configuration. To enable the feature, configure a public key to encrypt the logged payload by doing one of the following:
18
+
## Turn on payload logging
22
19
23
-
* Generate a key pair directly in the dashboard (Cloudflare will **only** save the generated public key)
24
-
* Enter your own public key
20
+
Each managed ruleset has its own payload logging configuration. To turn on payload logging, configure a public key to encrypt the logged payload by doing one of the following:
21
+
22
+
- Generate a key pair directly in the Cloudflare dashboard
23
+
- Use your own public key
25
24
26
25
Once enabled, the WAF saves the payload of any rule matches for the managed ruleset configured with payload logging, encrypting the payload with your public key.
27
26
27
+
For more information, refer to [Configure payload logging in the dashboard](/waf/managed-rules/payload-logging/configure/) or [Configure payload logging via API](/waf/managed-rules/payload-logging/configure-api/).
28
+
29
+
:::caution[Important remarks]
30
+
31
+
- When you generate a key pair in the dashboard, Cloudflare will only save the generated public key, not the private key. You must store your private key safely.
32
+
- Cloudflare will not save the matched payload if the action of the matched rule is _Log_.
33
+
34
+
:::
35
+
36
+
## View payload content
37
+
28
38
To view the content of the payload in clear text, do one of the following:
29
39
30
-
* In the Security Events page (**Security** > **Events**), enter your private key to decrypt the payload of a log entry directly in the browser. Refer to [View the payload content in the dashboard](/waf/managed-rules/payload-logging/view/) for details.
40
+
- In the Security Events page (**Security** > **Events**), enter your private key to decrypt the payload of a log entry directly in the browser. Refer to [View the payload content in the dashboard](/waf/managed-rules/payload-logging/view/) for details.
31
41
32
-
* Decrypt the payload in the command line using the `matched-data-cli` tool. Refer to [Decrypt the payload content in the command line](/waf/managed-rules/payload-logging/command-line/decrypt-payload/) for details.
42
+
- Decrypt the payload in the command line using the `matched-data-cli` tool. Refer to [Decrypt the payload content in the command line](/waf/managed-rules/payload-logging/command-line/decrypt-payload/) for details.
33
43
34
-
* Decrypt the matched payload in your [Logpush](/logs/about/) job using a Worker before storing the logs in your <GlossaryTooltipterm="SIEM">SIEM system</GlossaryTooltip>. Refer to [Store decrypted matched payloads in logs](/waf/managed-rules/payload-logging/decrypt-in-logs/) for details.
44
+
- Decrypt the matched payload in your [Logpush](/logs/about/) job using a Worker before storing the logs in your <GlossaryTooltipterm="SIEM">SIEM system</GlossaryTooltip>. Refer to [Store decrypted matched payloads in logs](/waf/managed-rules/payload-logging/decrypt-in-logs/) for details.
35
45
36
46
:::caution[Important]
37
47
38
-
39
48
All Cloudflare logs are encrypted at rest. Encrypting the payload content adds a second layer of encryption for the matched values that triggered a WAF rule.
40
49
41
50
Make sure you store your private key safely. If you lose the private key, configure payload logging with a new public key. The payload of new requests will be encrypted with the new public key.
42
51
43
52
Cloudflare cannot decrypt encrypted payloads, since this operation requires your private key. Cloudflare staff will never ask for the private key.
0 commit comments