cf-terraforming icon indicating copy to clipboard operation
cf-terraforming copied to clipboard

Generating Page Rules Failing on some attributes

Open dasunsrule32 opened this issue 4 years ago • 6 comments

Confirmation

  • [X] My issue isn't already found on the issue tracker.
  • [X] I have replicated my issue using the latest version of the library and it is still present.

cf-terraforming version

cf-terraforming v0.3.0

Expected outcome

To correctly generate the existing actions for cloudflare_page_rule. They are not all getting generated due to the errors below.

Actual outcome

DEBU[0001] initialising Terraform in .
DEBU[0002] reading Terraform schema for Cloudflare provider DEBU[0002] beginning to read and build cloudflare_page_rule resources DEBU[0002] got unknown attribute configuration: key zone_id, value , value type DEBU[0002] unexpected attribute struct type for block cache_key_fields DEBU[0002] unexpected attribute struct type for block cache_ttl_by_status DEBU[0002] unexpected attribute struct type for block forwarding_url DEBU[0002] unexpected attribute struct type for block minify DEBU[0002] got unknown attribute configuration: key always_online, value , value type DEBU[0002] got unknown attribute configuration: key always_use_https, value , value type DEBU[0002] got unknown attribute configuration: key automatic_https_rewrites, value , value type DEBU[0002] got unknown attribute configuration: key browser_cache_ttl, value , value type DEBU[0002] got unknown attribute configuration: key browser_check, value , value type DEBU[0002] got unknown attribute configuration: key bypass_cache_on_cookie, value , value type DEBU[0002] got unknown attribute configuration: key cache_by_device_type, value , value type DEBU[0002] got unknown attribute configuration: key cache_deception_armor, value , value type DEBU[0002] got unknown attribute configuration: key cache_level, value , value type DEBU[0002] got unknown attribute configuration: key cache_on_cookie, value , value type DEBU[0002] got unknown attribute configuration: key disable_apps, value , value type DEBU[0002] got unknown attribute configuration: key disable_performance, value , value type DEBU[0002] got unknown attribute configuration: key disable_railgun, value , value type DEBU[0002] got unknown attribute configuration: key disable_security, value , value type DEBU[0002] got unknown attribute configuration: key edge_cache_ttl, value , value type DEBU[0002] got unknown attribute configuration: key email_obfuscation, value , value type DEBU[0002] got unknown attribute configuration: key explicit_cache_control, value , value type DEBU[0002] got unknown attribute configuration: key host_header_override, value , value type DEBU[0002] got unknown attribute configuration: key ip_geolocation, value , value type DEBU[0002] got unknown attribute configuration: key mirage, value , value type DEBU[0002] got unknown attribute configuration: key opportunistic_encryption, value , value type DEBU[0002] got unknown attribute configuration: key origin_error_page_pass_thru, value , value type DEBU[0002] got unknown attribute configuration: key polish, value , value type DEBU[0002] got unknown attribute configuration: key resolve_override, value , value type DEBU[0002] got unknown attribute configuration: key respect_strong_etag, value , value type DEBU[0002] got unknown attribute configuration: key response_buffering, value , value type DEBU[0002] got unknown attribute configuration: key rocket_loader, value , value type DEBU[0002] got unknown attribute configuration: key security_level, value , value type DEBU[0002] got unknown attribute configuration: key server_side_exclude, value , value type DEBU[0002] got unknown attribute configuration: key sort_query_string_for_cache, value , value type DEBU[0002] got unknown attribute configuration: key ssl, value , value type DEBU[0002] got unknown attribute configuration: key true_client_ip_header, value , value type DEBU[0002] got unknown attribute configuration: key waf, value , value type DEBU[0002] got unknown attribute configuration: key zone_id, value , value type DEBU[0002] unexpected attribute struct type for block cache_key_fields DEBU[0002] unexpected attribute struct type for block cache_ttl_by_status DEBU[0002] unexpected attribute struct type for block forwarding_url DEBU[0002] unexpected attribute struct type for block minify

Steps to reproduce

cf-terraforming generate -a account_id -z zone_id --resource-type "cloudflare_page_rule" -v

References

No response

dasunsrule32 avatar Aug 30 '21 20:08 dasunsrule32

Can you please provide the API response for your page rules and what values you are currently missing here?

jacobbednarz avatar Aug 30 '21 20:08 jacobbednarz

I was able to verify all of the following actions were missing from the generated terraform:

  • always_use_https
  • cache_key
  • disable_security
  • disable_performance
  • disable_railgun
  • disable_apps

For instance, one of the generated rules missing the always_use_https missing. These rules were all blank like below, as this is the only action they had enabled:

resource "cloudflare_page_rule" "terraform_managed_resource_id-num" {
  priority = 59
  status = "active"
  target = "tld2.tld.domain.edu/"
  actions {
  }
}

Via the Cloudflare API, it has the correct rules output for this same entry:

    {
      "id": "id-num",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld2.tld.domain.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 59,
      "status": "active",
      "created_on": "2021-08-09T22:11:48.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },

dasunsrule32 avatar Aug 30 '21 23:08 dasunsrule32

Can you provide the full API response (not truncated)? I can then use that in some tests to find out why this isn't working for you given we should already have coverage here.

jacobbednarz avatar Aug 31 '21 00:08 jacobbednarz

I suppose I could, but that would be a ton of scrubbing... haha

I'll see if I can allocate some bandwidth for this tomorrow.

dasunsrule32 avatar Aug 31 '21 00:08 dasunsrule32

Here is a subset of the rules that are not working properly, the list has been shortened and scrubbed, but it the complete output of the API response. Let me know if this helps or not. Thank you. :)

Command used get API response:

curl -X GET "https://api.cloudflare.com/client/v4/zones/zone_id/pagerules" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: auth-key-string" \
     -H "Content-Type: application/json" | jq

Response:

{
  "result": [
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 59,
      "status": "active",
      "created_on": "2021-08-09T22:11:48.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain2.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 58,
      "status": "active",
      "created_on": "2021-07-20T19:59:44.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain3.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 57,
      "status": "active",
      "created_on": "2021-07-20T17:32:32.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain4.edu/sites/default/private/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 56,
      "status": "active",
      "created_on": "2021-07-19T17:27:36.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain5.edu/*/*/*.git/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 55,
      "status": "active",
      "created_on": "2021-07-19T16:01:38.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain6.edu/*/*.git/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 54,
      "status": "active",
      "created_on": "2021-07-19T15:35:59.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain7.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 53,
      "status": "active",
      "created_on": "2021-07-13T21:54:54.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain8.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 52,
      "status": "active",
      "created_on": "2021-06-25T18:33:48.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain9.edu/export/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 51,
      "status": "active",
      "created_on": "2021-03-31T22:47:37.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain10.edu/app/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_check",
          "value": "on"
        },
        {
          "id": "waf",
          "value": "on"
        },
        {
          "id": "security_level",
          "value": "low"
        }
      ],
      "priority": 50,
      "status": "active",
      "created_on": "2020-11-03T14:27:38.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain11.edu/app2/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 49,
      "status": "active",
      "created_on": "2020-06-12T16:22:42.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "domain12.edu/app2/admin/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 48,
      "status": "active",
      "created_on": "2019-06-28T15:44:14.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/app3/js/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 300
        }
      ],
      "priority": 47,
      "status": "active",
      "created_on": "2020-08-29T01:09:46.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/node/*/edit*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 46,
      "status": "active",
      "created_on": "2019-07-29T21:12:09.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/node/add*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 45,
      "status": "active",
      "created_on": "2019-08-13T18:20:03.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/*/ajax/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 44,
      "status": "active",
      "created_on": "2019-02-22T22:49:33.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/wp-admin/admin-ajax.php*"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 43,
      "status": "active",
      "created_on": "2019-08-30T04:48:11.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/app4/interactive/js/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 1800
        }
      ],
      "priority": 42,
      "status": "active",
      "created_on": "2019-12-31T19:56:18.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld.domain13.edu/ckeditor/xss"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 41,
      "status": "active",
      "created_on": "2019-03-19T17:08:44.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld.domain13.edu/node/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 40,
      "status": "active",
      "created_on": "2019-03-19T17:06:25.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld2.domain13.edu/*"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "waf",
          "value": "off"
        },
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 39,
      "status": "active",
      "created_on": "2019-01-22T22:09:08.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld3.domain13.edu/app4*/dir*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "aggressive"
        },
        {
          "id": "cache_key",
          "value": "${header:origin}::${scheme}://${host_header}${uri}::${header:accept}"
        }
      ],
      "priority": 38,
      "status": "active",
      "created_on": "2019-04-12T20:17:27.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld4.domain13.edu/app5/*"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "browser_cache_ttl",
          "value": 0
        },
        {
          "id": "disable_performance"
        }
      ],
      "priority": 37,
      "status": "active",
      "created_on": "2015-05-05T16:46:15.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld4.domain13.edu/app6/querymanager.beaneditform.form"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 36,
      "status": "active",
      "created_on": "2019-02-06T20:12:10.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld4.domain13.edu/app7/api/v1/someAPI"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 35,
      "status": "active",
      "created_on": "2019-08-13T18:17:43.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld4.domain13.edu/app8/sendEmailVerification"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 34,
      "status": "active",
      "created_on": "2019-09-03T14:59:02.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld4.domain13.edu/app9/some_dir/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "cache_everything"
        },
        {
          "id": "edge_cache_ttl",
          "value": 3600
        }
      ],
      "priority": 33,
      "status": "active",
      "created_on": "2020-01-13T23:19:21.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld5.domain13.edu/"
          }
        }
      ],
      "actions": [
        {
          "id": "always_use_https"
        }
      ],
      "priority": 32,
      "status": "active",
      "created_on": "2020-07-07T06:38:50.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.tld6.domain13.edu/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "on"
        },
        {
          "id": "cache_level",
          "value": "cache_everything"
        },
        {
          "id": "edge_cache_ttl",
          "value": 300
        }
      ],
      "priority": 31,
      "status": "active",
      "created_on": "2020-08-27T15:29:33.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*domain13.edu/app10/logs/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 30,
      "status": "active",
      "created_on": "2019-04-08T16:39:13.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*domain13.edu/EWS/Exchange.asmx"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "browser_cache_ttl",
          "value": 0
        },
        {
          "id": "disable_railgun"
        },
        {
          "id": "disable_apps"
        },
        {
          "id": "disable_performance"
        }
      ],
      "priority": 29,
      "status": "active",
      "created_on": "2015-05-05T02:53:20.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*domain13.edu/autodiscover/*"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "browser_cache_ttl",
          "value": 0
        },
        {
          "id": "disable_railgun"
        },
        {
          "id": "disable_apps"
        },
        {
          "id": "disable_performance"
        }
      ],
      "priority": 28,
      "status": "active",
      "created_on": "2015-05-05T02:47:55.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*domain13.edu/app11/someAPI2"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "browser_cache_ttl",
          "value": 0
        },
        {
          "id": "disable_railgun"
        },
        {
          "id": "disable_apps"
        },
        {
          "id": "disable_performance"
        }
      ],
      "priority": 27,
      "status": "active",
      "created_on": "2015-05-05T13:53:51.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld7.domain13.edu/api/someAPI3*"
          }
        }
      ],
      "actions": [
        {
          "id": "disable_security"
        },
        {
          "id": "browser_cache_ttl",
          "value": 0
        },
        {
          "id": "disable_railgun"
        },
        {
          "id": "disable_apps"
        },
        {
          "id": "disable_performance"
        }
      ],
      "priority": 26,
      "status": "active",
      "created_on": "2015-05-08T13:54:37.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/hr/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 0
        }
      ],
      "priority": 25,
      "status": "active",
      "created_on": "2019-06-13T19:35:52.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/app12/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 0
        }
      ],
      "priority": 24,
      "status": "active",
      "created_on": "2019-06-13T19:41:33.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/app13/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 0
        }
      ],
      "priority": 23,
      "status": "active",
      "created_on": "2019-06-13T19:41:45.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "www.domain13.edu/app14/*"
          }
        }
      ],
      "actions": [
        {
          "id": "browser_cache_ttl",
          "value": 0
        }
      ],
      "priority": 22,
      "status": "active",
      "created_on": "2019-06-13T19:41:58.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld8.domain13.edu/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 21,
      "status": "active",
      "created_on": "2021-06-28T15:55:33.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld8.domain13.edu/web/sites/default/files/tutorials/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 20,
      "status": "active",
      "created_on": "2021-06-28T23:46:36.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld9.domain13.edu/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 19,
      "status": "active",
      "created_on": "2019-08-07T20:48:17.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld9.domain13.edu/app14/some_dir/modules/contrib/h5p/library/js/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 18,
      "status": "active",
      "created_on": "2021-06-23T17:59:03.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "blog.tld14.domain13.edu/wp-includes/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 17,
      "status": "active",
      "created_on": "2020-06-11T18:30:56.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.tld15.domain13.edu/wp-admin/admin-ajax.php"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 16,
      "status": "active",
      "created_on": "2019-09-16T20:42:59.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld15.domain13.edu/ckeditor/xss"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        },
        {
          "id": "security_level",
          "value": "off"
        }
      ],
      "priority": 15,
      "status": "active",
      "created_on": "2021-03-23T23:01:42.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld16.domain13.edu/feed/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 14,
      "status": "active",
      "created_on": "2019-09-11T22:02:47.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld17.domain13.edu/som_file.csv"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "bypass"
        }
      ],
      "priority": 13,
      "status": "active",
      "created_on": "2021-04-15T22:08:53.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld18.domain13.edu/admin/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 12,
      "status": "active",
      "created_on": "2019-12-12T15:31:03.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tdl19.domain13.edu/admin/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 11,
      "status": "active",
      "created_on": "2020-08-19T15:36:54.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "dact.tld20.domain13.edu/admin/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 10,
      "status": "active",
      "created_on": "2020-02-04T20:05:46.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "proposals.tld21.domain13.edu/export/dir"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 9,
      "status": "active",
      "created_on": "2020-02-06T18:40:55.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld22.domain13.edu/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 8,
      "status": "active",
      "created_on": "2020-06-08T13:20:17.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld23.domain13.edu/block/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 7,
      "status": "active",
      "created_on": "2020-07-30T20:14:45.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/wp-admin/post.php"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 6,
      "status": "active",
      "created_on": "2020-09-11T14:50:07.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/*/wp-admin/post.php"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 5,
      "status": "active",
      "created_on": "2020-09-06T15:24:22.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.domain13.edu/admin/structure/block/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 4,
      "status": "active",
      "created_on": "2020-09-29T19:03:19.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld23.domain13.edu/admin/*"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 3,
      "status": "active",
      "created_on": "2020-12-22T20:50:11.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "tld24.domain13.edu/admin/dir2/views/import"
          }
        }
      ],
      "actions": [
        {
          "id": "waf",
          "value": "off"
        }
      ],
      "priority": 2,
      "status": "active",
      "created_on": "2021-08-20T20:06:20.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    },
    {
      "id": "id_string",
      "targets": [
        {
          "target": "url",
          "constraint": {
            "operator": "matches",
            "value": "*.m.domain13.edu/app15/sharing/rest/portals/*"
          }
        }
      ],
      "actions": [
        {
          "id": "cache_level",
          "value": "cache_everything"
        },
        {
          "id": "edge_cache_ttl",
          "value": 10
        }
      ],
      "priority": 1,
      "status": "disabled",
      "created_on": "2021-08-19T22:54:07.000000Z",
      "modified_on": "2021-08-20T20:06:36.000000Z"
    }
  ],
  "success": true,
  "errors": [],
  "messages": []
}

dasunsrule32 avatar Aug 31 '21 23:08 dasunsrule32

Hi, just following up to see if there was any resolution for this. Thanks. :)

dasunsrule32 avatar Nov 08 '21 16:11 dasunsrule32