@cryptotaxi247 / CoPilot / commits / 7522aaf2

Fix provision module wazuh group (#604)

* fix: use default cluster name in Wazuh group configuration if not provided * precommit fixes

taylor_socfortress committed Jan 19, 2026 at 11:06 UTC 7522aaf2d0e9626e9a99dc91ca628248098506dc
2 files changed +3 -3
backend/app/active_response/routes/active_response.py
-1
@@ -24,7 +24,6 @@ from app.db.db_session import get_db
24 active_response_router = APIRouter()
25
26
27 -
27 async def verify_active_response_name(active_response_name: str) -> None:
28 """
29 Verify the active response name
backend/app/customer_provisioning/services/wazuh_manager.py
+3 -2
@@ -120,8 +120,9 @@ async def configure_wazuh_group(group_code, template_path, request: ProvisionNew
120
121 # Replace placeholder with the customer code
122 group_config = config_template.replace("REPLACE", group_code.split("_")[-1])
123 - # Replace placeholder with the cluster name
124 - group_config = group_config.replace("CLUSTER_NAME", request.wazuh_cluster_name)
123 + # Replace placeholder with the cluster name, use default if None
124 + cluster_name = request.wazuh_cluster_name if request.wazuh_cluster_name else "YOUR_PATH"
125 + group_config = group_config.replace("CLUSTER_NAME", cluster_name)
126
127 # Make the API request to update the group configuration
128 return await send_wazuh_put_request(