Provides the WazuhAgentClientEnrollmentConfiguration which allows to parse the enrollment subsection of the client section of the Wazuh local configuration (ossec.conf).

class WazuhAgentClientEnrollmentConfiguration(**kwargs)#

Bases: object

Object representation of the wazuh agent’s client.enrollment configuration section.

Wazuh reference: Wazuh Reference: https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/client.html#enrollment

agent_address: str | None#

The IP address the agent announces on enrollment.

agent_certificate_path: str | None#

Path to the enrollment certificate file.

agent_key_path: str | None#

Path to the enrollment certificate’s key file.

agent_name: str#

The name the agent uses on enrollment.

authorization_pass_path: str | None#

Path to the enrollment password file.

delay_after_enrollment: int#

Time in seconds the agent will wait to connect after a successful registration.

enabled: bool#

Indicates whether the enrollment is enabled or disabled.

groups: list[str]#

Initial set of groups.

interface_index: int | None#

The index by which the agent will send an enrollment requests.

manager_address: str#

IP address or hostname of the manager the agent enrolls on.

negotiate_tls: bool#

Indicates whether TLS v1.2 (False) or the most secure common SSL/TLS method will be negotiated with the manager.

port: int#

Port on which the agent will send the enrollment request.

server_ca_path: str | None#

Path to the Certificate Authority file.

ssl_cipher: str | None#

SSL cipher override.

use_source_ip: bool#

Indicates whether the manager will be forced to compute the agent’s IP address from the agent’s message.