From 5a3440ea3e6ba91349562a2125682511cef70c3f Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 2 Jul 2025 13:57:49 -0700 Subject: [PATCH] Add apache-ua-filter file path matches where used This will ensure we test all services that currently use the UA filter (including zuul and mailman3) as well as update those services when we merge changes to the UA filter rules. Otherwise we're left waiting for the daily periodic runs. Change-Id: Id2c4decc54fb436158633e92cef8cfd1e68a6bb5 --- playbooks/roles/apache-ua-filter/README.rst | 2 +- zuul.d/infra-prod.yaml | 2 ++ zuul.d/system-config-run.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/apache-ua-filter/README.rst b/playbooks/roles/apache-ua-filter/README.rst index f9137ad268..d35be44653 100644 --- a/playbooks/roles/apache-ua-filter/README.rst +++ b/playbooks/roles/apache-ua-filter/README.rst @@ -1,6 +1,6 @@ Reject requests from problematic user agent strings This role installs and configures a filter macro called -UserAgentFilter which can be included in Apache vhosts +UserAgentFilter which can be included in Apache vhosts. **Role Variables** diff --git a/zuul.d/infra-prod.yaml b/zuul.d/infra-prod.yaml index aba52954c8..6a765653bd 100644 --- a/zuul.d/infra-prod.yaml +++ b/zuul.d/infra-prod.yaml @@ -416,6 +416,7 @@ - inventory/service/group_vars/zookeeper.yaml - inventory/service/host_vars/zk\d+ - inventory/service/host_vars/zuul\d+.opendev.org + - playbooks/roles/apache-ua-filter/ - playbooks/roles/install-docker/ - playbooks/roles/iptables/ - playbooks/roles/zookeeper/ @@ -615,6 +616,7 @@ - docker/mailman - inventory/base - inventory/service/group_vars/mailman3.yaml + - playbooks/roles/apache-ua-filter/ - playbooks/roles/iptables/ - playbooks/roles/base/exim - playbooks/roles/mailman3/ diff --git a/zuul.d/system-config-run.yaml b/zuul.d/system-config-run.yaml index f5834fe2aa..cc17c05050 100644 --- a/zuul.d/system-config-run.yaml +++ b/zuul.d/system-config-run.yaml @@ -303,6 +303,7 @@ - docker/mailman - playbooks/bootstrap-bridge.yaml - inventory/service/group_vars/mailman3.yaml + - playbooks/roles/apache-ua-filter/ - playbooks/roles/base/exim - playbooks/roles/mailman3 - playbooks/service-lists3.yaml @@ -1042,6 +1043,7 @@ - inventory/service/group_vars/zookeeper.yaml - inventory/service/host_vars/zk\d+ - inventory/service/host_vars/zuul02.opendev.org + - playbooks/roles/apache-ua-filter/ - playbooks/roles/haproxy/ - playbooks/roles/mariadb/ - playbooks/roles/zookeeper/