You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

advanced.tf 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Global Advanced
  2. resource "akamai_appsec_advanced_settings_logging" "logging" {
  3. config_id = akamai_appsec_configuration.config.config_id
  4. logging = jsonencode(
  5. {
  6. "allowSampling" : true,
  7. "cookies" : {
  8. "type" : "all"
  9. },
  10. "customHeaders" : {
  11. "type" : "all"
  12. },
  13. "standardHeaders" : {
  14. "type" : "all"
  15. }
  16. }
  17. )
  18. }
  19. resource "akamai_appsec_advanced_settings_prefetch" "prefetch" {
  20. config_id = akamai_appsec_configuration.config.config_id
  21. enable_app_layer = true
  22. all_extensions = false
  23. enable_rate_controls = false
  24. extensions = ["cgi", "jsp", "aspx", "EMPTY_STRING", "php", "py", "asp"]
  25. }
  26. resource "akamai_appsec_advanced_settings_pragma_header" "pragma_header" {
  27. config_id = akamai_appsec_configuration.config.config_id
  28. pragma_header = jsonencode(
  29. {
  30. "action" : "REMOVE"
  31. }
  32. )
  33. }
  34. resource "akamai_appsec_advanced_settings_evasive_path_match" "evasive_path_match" {
  35. config_id = akamai_appsec_configuration.config.config_id
  36. enable_path_match = true
  37. }
  38. resource "akamai_appsec_advanced_settings_attack_payload_logging" "attack_payload_logging" {
  39. config_id = akamai_appsec_configuration.config.config_id
  40. attack_payload_logging = jsonencode(
  41. {
  42. "enabled" : true,
  43. "requestBody" : {
  44. "type" : "ATTACK_PAYLOAD"
  45. },
  46. "responseBody" : {
  47. "type" : "ATTACK_PAYLOAD"
  48. }
  49. }
  50. )
  51. }
  52. resource "akamai_appsec_advanced_settings_request_body" "config_settings" {
  53. config_id = akamai_appsec_configuration.config.config_id
  54. request_body_inspection_limit = "default"
  55. }
  56. // Evasive Path Match
  57. resource "akamai_appsec_advanced_settings_evasive_path_match" "pathmatch" {
  58. config_id = akamai_appsec_configuration.config.config_id
  59. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  60. enable_path_match = true
  61. }