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/partials/cloudflare-one/warp/warp-sessions-gateway.mdx
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,51 @@
3
3
4
4
---
5
5
6
+
import { TabItem, Tabs } from"~/components";
7
+
6
8
You can enforce WARP session timeouts on any Gateway Network and HTTP policy that has an Allow action. If you do not specify a session timeout, the WARP session will be unlimited by default.
7
9
8
10
Session timeouts have no impact on Gateway DNS policies. DNS policies remain active even when a user needs to re-authenticate.
9
11
10
12
To configure a session timeout for a Gateway policy:
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to either **Gateway** > **Firewall Policies**. Choose either **Network** or **HTTP**.
13
17
2. Add a policy and select the *Allow* action. Alternatively, choose any existing *Allow* policy.
14
18
3. Under **Step 4 - Configure policy settings**, select **Edit** next to **Enforce WARP client session duration**.
15
19
4. Enter a session expiration time in `1h30m0s` format and save.
16
20
5. Save the policy.
17
21
22
+
</TabItem>
23
+
<TabItemlabel="Terraform (v5)">
24
+
25
+
1. Add the following permission to your [`cloudflare_api_token`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/api_token):
26
+
-`Zero Trust Write`
27
+
28
+
2. Choose a Network (`l4`) or HTTP (`http`) Allow policy. Use the [`check_session` argument](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_gateway_policy) to enable and configure a session timeout:
Session checks are now enabled for the application protected by this policy. Users can continue to reach applications outside of the policy definition.
0 commit comments