12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // Global Advanced
- resource "akamai_appsec_advanced_settings_logging" "logging" {
- config_id = akamai_appsec_configuration.config.config_id
- logging = jsonencode(
- {
- "allowSampling" : true,
- "cookies" : {
- "type" : "all"
- },
- "customHeaders" : {
- "type" : "all"
- },
- "standardHeaders" : {
- "type" : "all"
- }
- }
- )
- }
-
- resource "akamai_appsec_advanced_settings_prefetch" "prefetch" {
- config_id = akamai_appsec_configuration.config.config_id
- enable_app_layer = true
- all_extensions = false
- enable_rate_controls = false
- extensions = ["cgi", "jsp", "aspx", "EMPTY_STRING", "php", "py", "asp"]
- }
-
- resource "akamai_appsec_advanced_settings_pragma_header" "pragma_header" {
- config_id = akamai_appsec_configuration.config.config_id
- pragma_header = jsonencode(
- {
- "action" : "REMOVE"
- }
- )
- }
-
- resource "akamai_appsec_advanced_settings_evasive_path_match" "evasive_path_match" {
- config_id = akamai_appsec_configuration.config.config_id
- enable_path_match = true
- }
-
- resource "akamai_appsec_advanced_settings_attack_payload_logging" "attack_payload_logging" {
- config_id = akamai_appsec_configuration.config.config_id
- attack_payload_logging = jsonencode(
- {
- "enabled" : true,
- "requestBody" : {
- "type" : "ATTACK_PAYLOAD"
- },
- "responseBody" : {
- "type" : "ATTACK_PAYLOAD"
- }
- }
- )
- }
-
- resource "akamai_appsec_advanced_settings_request_body" "config_settings" {
- config_id = akamai_appsec_configuration.config.config_id
- request_body_inspection_limit = "default"
- }
-
- // Evasive Path Match
- resource "akamai_appsec_advanced_settings_evasive_path_match" "pathmatch" {
- config_id = akamai_appsec_configuration.config.config_id
- security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
- enable_path_match = true
- }
|