From 25d0da34be000f9628f472f8dd4b93190e9d1ada Mon Sep 17 00:00:00 2001 From: Kostiantyn Bukliei Date: Thu, 2 Oct 2025 23:12:51 +0300 Subject: [PATCH] feat: increase cloudflare auth token ttl to 7 days --- cloudflare/policies/main.tf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cloudflare/policies/main.tf b/cloudflare/policies/main.tf index dd2b957..b013436 100644 --- a/cloudflare/policies/main.tf +++ b/cloudflare/policies/main.tf @@ -13,9 +13,10 @@ resource "cloudflare_zero_trust_list" "family_emails" { } resource "cloudflare_zero_trust_access_policy" "allow_myself" { - account_id = var.cloudflare_account_id - name = "Allow myself, by OTP via email" - decision = "allow" + account_id = var.cloudflare_account_id + name = "Allow myself, by OTP via email" + decision = "allow" + session_duration = "168h" # 7d include = [ { email = { @@ -29,6 +30,7 @@ resource "cloudflare_zero_trust_access_policy" "allow_myself_and_family" { account_id = var.cloudflare_account_id name = "Allow myself & Olena by OTP via email" decision = "allow" + session_duration = "168h" # 7d include = [ { email_list = cloudflare_zero_trust_list.family_emails