diff --git a/gold-standard-starter/providers.tf b/gold-standard-starter/providers.tf index 5ae93f3..65d01cb 100644 --- a/gold-standard-starter/providers.tf +++ b/gold-standard-starter/providers.tf @@ -3,7 +3,7 @@ terraform { # https://registry.terraform.io/providers/signalsciences/sigsci/latest sigsci = { source = "signalsciences/sigsci" - version = ">= 3.0.0" + version = ">= 3.3.0" } } } diff --git a/ngwaf-terraform-edge-deploy/main.tf b/ngwaf-terraform-edge-deploy/main.tf index cd28f90..5af4af8 100644 --- a/ngwaf-terraform-edge-deploy/main.tf +++ b/ngwaf-terraform-edge-deploy/main.tf @@ -24,6 +24,13 @@ resource "fastly_service_vcl" "frontend-vcl-service" { #### Adds the necessary header to enable response headers from the NGWAF edge deployment, which may then be used for logging. # Also, removes the sensitive response headers before delivering the response to the client + snippet { + name = "Update for custom logo" + content = file("${path.module}/vcl/custom_challenge_logo.vcl") + type = "init" + priority = 100 + } + snippet { name = "Add ngwaf log headers" content = file("${path.module}/vcl/add_ngwaf_log_headers.vcl") diff --git a/ngwaf-terraform-edge-deploy/providers.tf b/ngwaf-terraform-edge-deploy/providers.tf index 29ef174..852392b 100644 --- a/ngwaf-terraform-edge-deploy/providers.tf +++ b/ngwaf-terraform-edge-deploy/providers.tf @@ -4,11 +4,11 @@ terraform { required_providers { fastly = { source = "fastly/fastly" - version = ">= 5.2.2" + version = ">= 5.11.0" } sigsci = { source = "signalsciences/sigsci" - version = ">= 3.0.0" + version = ">= 3.3.0" } http = { source = "hashicorp/http" diff --git a/ngwaf-terraform-edge-deploy/vcl/custom_challenge_logo.vcl b/ngwaf-terraform-edge-deploy/vcl/custom_challenge_logo.vcl new file mode 100644 index 0000000..9559282 --- /dev/null +++ b/ngwaf-terraform-edge-deploy/vcl/custom_challenge_logo.vcl @@ -0,0 +1,5 @@ +sub vcl_recv { + if (req.url ~ "/fastly/logo") { + set req.url = "/static-assets/challenge-robot.jpg"; + } +} \ No newline at end of file