Closed Toxa closed 1 month ago
More information is needed.
I apologize. It's a configuration error. You have nudged me in the right direction to look for it. The conf/security_events.conf
config specified cve instead of policy
trigger=fleetdm_cve::.*.
After correcting it to
trigger=fleetdm_policy::.*.
everything works as expected
Describe the bug Packetfence does not handle policy violation from fleetdm. In the logs I see that fleetdm sends a POST request containing policy violation data, but packetfence does not process this data in any way. I don't see any traffic from packetfence to FleetDM Host. The fleetdm logs are also empty (fleetdm & nginx).
To Reproduce Steps to reproduce the behavior:
In the packetfence configuration, under fleetdm, I have provided the fleetdm server address, login (mail address), password and API token. All data entered here is verified with curl requests from packetfence host.
In packetfence local user fleetdm is created for authentication with access level FleetDM Event Handler
In fleetdm, under policy automation, the packetfence url is specified (port 9999 and login/password from the previous step)
In security event 3500001, in Event triger, regexp
.*.
is specifiedIn fleetdm, the policy is moved from pass to fail status. To trigger the webhook call, on the fleetdm server I execute
In tcpdump on fleetdm and packetfence hosts I see https POST request to packetfence host
In packetfence logs I see successful authentication and POST request
I don't see any requests from packetfence to fleetdm API (tcpdump & logs).
I don't see Security Events triggered in packetfence (WebUI & logs) Behavior is independent of whether node with mac address of host with failed policy exists.
Screenshots Log from packetfence:
Expected behavior Security Events triggered. Displaying this in logs and reports. Performing an action (sending an email). Or an error message in the logs.
Versions Clean install packetfence: packetfence 14.0.0+20240910143601+1448220744+0012+maintenance~14~0+bookworm1 Debian GNU/Linux 12 (bookworm) Fleetdm: fleet version 4.57.2