wazuh / wazuh-agent

Wazuh agent, the Wazuh agent for endpoints.
GNU Affero General Public License v3.0
32 stars 18 forks source link

Report All Network Interface IPs in Agent Metadata #300

Closed vikman90 closed 1 week ago

vikman90 commented 1 week ago

Parent Issue: #241

Description

The Wazuh Agent currently reports only a single IP address in the ip field of the agent object. To provide complete metadata, the agent should report all IP addresses (IPv4 and IPv6) from all network interfaces.

Current Behavior

The ip field contains only one IP address, selected arbitrarily.

Expected Behavior

The ip field should include all IP addresses assigned to all active network interfaces.

Example:

"ip": ["192.168.64.15", "fe80::1ff:fe23:4567:890a"]

Implementation Details

Use the DataProvider component to retrieve all IP addresses from the system’s network interfaces.