Skip to content

Commit 97ad52c

Browse files
committed
policy partials
1 parent 3afe762 commit 97ad52c

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

src/content/docs/cloudflare-one/policies/gateway/network-policies/common-policies.mdx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ The following example consists of two policies: the first allows specific users
175175

176176
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
177177

178-
| Selector | Operator | Value | Logic | Action |
179-
| -------------- | ------------- | ---------------- | ----- | ------ |
180-
| Destination IP | in | `10.0.0.0/8` | And | Allow |
181-
| User Email | matches regex | `.*@example.com` | | |
182-
178+
<Render file="gateway/policies/restrict-access-to-private-networks-allow" product="cloudflare-one" params={{ selector: "Destination IP", value: "10.0.0.0/8" }} />
183179
</TabItem>
184180

185181
<TabItem label="API">
@@ -208,9 +204,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rule \
208204

209205
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
210206

211-
| Selector | Operator | Value | Action |
212-
| -------------- | -------- | ------------ | ------ |
213-
| Destination IP | in | `10.0.0.0/8` | Block |
207+
<Render file="gateway/policies/restrict-access-to-private-networks-block" product="cloudflare-one" />
214208

215209
</TabItem>
216210

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
inputParameters: selector;;value
3+
---
4+
5+
| Selector | Operator | Value | Logic | Action |
6+
| -------------- | ------------- | ---------------- | ----- | ------ |
7+
| {props.selector} | in | <code>{props.value}</code> | And | Allow |
8+
| User Email | matches regex | `.*@example.com` | | |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
{}
3+
---
4+
5+
| Selector | Operator | Value | Action |
6+
| -------------- | -------- | ------------ | ------ |
7+
| Destination IP | in | `10.0.0.0/8` | Block |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
{}
3+
---
4+
5+
| Selector | Operator | Value | Logic | Action |
6+
| -------------- | ------------- | ---------------- | ----- | ------ |
7+
| Host | in | `wiki.internal.local` | And | Allow |
8+
| User Email | matches regex | `.*@example.com` | | |

0 commit comments

Comments
 (0)