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/reference/exposed-credentials-check.mdx
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,10 @@ To enable the Cloudflare Exposed Credentials Check Managed Ruleset for a given z
52
52
53
53
This example deploys the Cloudflare Exposed Credentials Check Managed Ruleset to the `http_request_firewall_managed` phase of a given zone (`{zone_id}`) by creating a rule that executes the managed ruleset. The rules in the managed ruleset are executed for all incoming requests.
54
54
55
-
1. Invoke the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation to obtain the definition of the entry point ruleset for the `http_request_firewall_managed` phase. You will need the [zone ID](/fundamentals/setup/find-account-and-zone-ids/) for this task.
@@ -80,7 +83,13 @@ This example deploys the Cloudflare Exposed Credentials Check Managed Ruleset to
80
83
}
81
84
```
82
85
83
-
2. If the entry point ruleset already exists (that is, if you received a `200 OK` status code and the ruleset definition), take note of the ruleset ID in the response. Then, invoke the [Create a zone ruleset rule](/api/operations/createZoneRulesetRule) operation to add an `execute` rule to the existing ruleset deploying the Cloudflare Exposed Credentials Check Managed Ruleset (with ID <RuleIDid="c2e184081120413c86c3ab7e14069605" />). By default, the rule will be added at the end of the list of rules already in the ruleset.
86
+
2. <Render
87
+
file="rulesets/api-zone/step2-create-rule"
88
+
params={{
89
+
deploymentItem:
90
+
"Cloudflare Exposed Credentials Check Managed Ruleset (with ID `c2e184081120413c86c3ab7e14069605`)",
@@ -130,7 +139,14 @@ This example deploys the Cloudflare Exposed Credentials Check Managed Ruleset to
130
139
}
131
140
```
132
141
133
-
3. If the entry point ruleset does not exist (that is, if you received a `404 Not Found` status code in step 1), create it using the [Create a zone ruleset](/api/operations/createZoneRuleset) operation. Include a single rule in the `rules` array that executes the Cloudflare Exposed Credentials Check Managed Ruleset (with ID <RuleIDid="c2e184081120413c86c3ab7e14069605" />) for all incoming requests in the zone.
142
+
3. <Render
143
+
file="rulesets/api-zone/step3-create-ruleset"
144
+
params={{
145
+
deploymentItem:
146
+
"Cloudflare Exposed Credentials Check Managed Ruleset (with ID `c2e184081120413c86c3ab7e14069605`)",
Copy file name to clipboardExpand all lines: src/content/docs/waf/managed-rules/reference/sensitive-data-detection.mdx
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,10 @@ To enable Cloudflare Sensitive Data Detection for a given zone using the API, cr
48
48
49
49
This example deploys the Cloudflare Sensitive Data Detection managed ruleset to the `http_response_firewall_managed` phase of a given zone (`{zone_id}`) by creating a rule that executes the managed ruleset. The rules in the managed ruleset are executed for all incoming requests.
50
50
51
-
1. Invoke the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation to obtain the definition of the entry point ruleset for the `http_response_firewall_managed` phase. You will need the [zone ID](/fundamentals/setup/find-account-and-zone-ids/) for this task.
@@ -76,7 +79,13 @@ This example deploys the Cloudflare Sensitive Data Detection managed ruleset to
76
79
}
77
80
```
78
81
79
-
2. If the entry point ruleset already exists (that is, if you received a `200 OK` status code and the ruleset definition), take note of the ruleset ID in the response. Then, invoke the [Create a zone ruleset rule](/api/operations/createZoneRulesetRule) operation to add an `execute` rule to the existing ruleset deploying the Cloudflare Sensitive Data Detection managed ruleset (with ID <RuleIDid="e22d83c647c64a3eae91b71b499d988e" />). By default, the rule will be added at the end of the list of rules already in the ruleset.
82
+
2. <Render
83
+
file="rulesets/api-zone/step2-create-rule"
84
+
params={{
85
+
deploymentItem:
86
+
"Cloudflare Sensitive Data Detection managed ruleset (with ID `e22d83c647c64a3eae91b71b499d988e`)",
@@ -126,7 +135,14 @@ This example deploys the Cloudflare Sensitive Data Detection managed ruleset to
126
135
}
127
136
```
128
137
129
-
3. If the entry point ruleset does not exist (that is, if you received a `404 Not Found` status code in step 1), create it using the [Create a zone ruleset](/api/operations/createZoneRuleset) operation. Include a single rule in the `rules` array that executes the Cloudflare Sensitive Data Detection managed ruleset (with ID <RuleIDid="e22d83c647c64a3eae91b71b499d988e" />) for all incoming requests in the zone.
138
+
3. <Render
139
+
file="rulesets/api-zone/step3-create-ruleset"
140
+
params={{
141
+
deploymentItem:
142
+
"Cloudflare Sensitive Data Detection managed ruleset (with ID `e22d83c647c64a3eae91b71b499d988e`)",
0 commit comments