Skip to content

Releases: wazuh/wazuh-api

Wazuh API 3.2.1

03 Mar 01:37
ab9681e
Compare
Choose a tag to compare

There are no changes for Wazuh API in this version.

Wazuh API 3.2.0

08 Feb 19:37
Compare
Choose a tag to compare

Added

  • Version selector added to GET /agents (#60).
  • It's possible search agents by version in GET /agents (#60).
  • New attributes added to the output of GET /agents (Wazuh #375).

Fixed

  • Fixed ìnstall_api.sh script to load preloaded_vars.conf (#53).
  • Fixed api-register-agent.sh script (#56).
  • Fixed bad assigment of agent attributes (mergedSum and configSum) (Wazuh #372).

Changed

  • Change output of GET/manager/info (Wazuh #371).
  • Change timestamp format of ossec logs (affected calls output: GET /manager/logs and GET /manager/summary) (Wazuh #355).

Wazuh API 3.1.0

22 Dec 03:34
c646b7a
Compare
Choose a tag to compare

Added

  • Option for agent deletion to purge agents definitely from keystore. (#41)
  • New option in config.js to force the use of authd. (#43).
  • New request: Get agent information by agent name - GET/agents/name/:agent_name (#42)
  • New request: purge never connected or disconnected more than :timeframe time agents - POST/agents/purge (#40)
  • New request: get purgeable agents - GET/agents/purgeable/:timeframe (#40)

Changed

  • Changed the SSL certificate key size from 1024 bits to 2048 bits. (#45)
  • Return key when inserting new agents. (wazuh/wazuh#303).

Fixed

  • Use special characters as user/password in configure_api.sh. (#46)
  • Wrong field returned by GET/agents/:agent_id/key (wazuh/wazuh@24a5a04).
  • Race condition when doing massive requests to the API call of inserting agents (wazuh/wazuh#306).

Removed

  • Do not create HTTP user "wazuh" automatically, it's no longer necessary. (#45)

v3.0.0

02 Dec 00:38
Compare
Choose a tag to compare

Added

  • Parameter in config.js file to configure the SSL version to use in the API.
  • Add requests to manage groups.
    • Get basic information about all groups: GET/agents/groups
    • Get the agents of :group_id group: GET/agents/groups/:group_id
    • Get :group_id's shared configuration: GET/agents/groups/:group_id/configuration
    • Get :group_id's files: GET/agents/groups/:group_id/files
    • Get :filename file of :group_id group: GET/agents/groups/:group_id/files/:filename
    • Set :agent_id agent to group :group_id: PUT/agents/:agent_id/group/:group_id
    • Create the :group_id group: PUT/agents/groups/:group_id
    • Remove :group_id group: DELETE/agents/groups/:group_id
    • Unset :agent_id's group: DELETE/agents/groups/:group_id
  • Unattended install and configure mode using preloaded_vars.conf.
  • Add timestamp field at index query.
  • Improve output of delete and restart agents requests: each ID includes error information.
  • Add requests to manage remote agent upgrades.
  • Add requests to manage cluster:
    • Get information about the actual manager node in the cluster - GET/cluster/node
    • Get information about all nodes in the cluster - GET/cluster/nodes
    • Get information about the status of the synchronized files in the cluster - GET/cluster/files
    • Get information about the agents in the cluster - GET/cluster/agents
    • Get the cluster status (enabled or disabled) - GET/cluster/status
    • Get the cluster configuration - GET/cluster/config
  • Add a selector for the API call to retrieve information about an agent using its ID.

Fixed

  • When adding a new agent, now it checks that its name is different than manager's name.
  • Bug in XML parser of rules, decoders and configuration.

Changed

  • Change output format of GET/manager/logs call to JSON.

Wazuh API v2.1.1

25 Sep 14:35
Compare
Choose a tag to compare

Fixed

  • Issue issue when deleting and restarting a list of agents
  • Issue with socket comunication in authd.

v2.1.0

17 Aug 16:59
Compare
Choose a tag to compare

Added

  • Added OS information to GET /agent request
  • New request: Delete a list of agents - DELETE /agents - Params: {"ids":["id_1", ..., "id_n"]}
  • New request: Restart a list of agents - POST /agents/restart - Params: {"ids":["id_1", ..., "id_n"]}

Changed

  • Support add/remove agents with ossec-authd running

v2.0.1

17 Jul 15:08
Compare
Choose a tag to compare

Fixed

  • Issue when basic-auth is disabled.
  • Regex for latest version in install_api.sh
  • Wrong scan dates for syscheck and rootcheck.
  • IP value always must be lowercase.

Wazuh RESTful API v2.0

24 Apr 10:20
Compare
Choose a tag to compare

Added

  • Wazuh v2.0 is required to run the API.

  • API must be launched with root user, but it is run with ossec user.

  • Scripts:

    • install_api.sh
    • configure_api.sh
  • Parameters:

    • Pretty JSON (?pretty)
    • Pagination: offset & limit
    • Search
    • Sort
  • Requests:

    • Agents
      • GET /agents/summary (Get agents summary)
      • PUT /agents/restart (Restart all agents)
      • POST /agents/insert (Insert agent)
    • Manager
      • GET /manager/info (Get manager information)
      • GET /manager/logs (Get ossec.log)
      • GET /manager/logs/summary (Get summary of ossec.log)
  • Decoders

    • GET /decoders (Get all decoders)
    • GET /decoders/:decoder_name (Get decoders by name)
    • GET /decoders/files (Get all decoders files)
    • GET /decoders/parents (Get all parent decoders)
  • Rules

    • GET /rules (Get all rules)
    • GET /rules (Get rules by id)
    • GET /rules/files (Get files of rules)
    • GET /rules/groups (Get rule groups)
    • GET /rules/pci (Get rule pci requirements)
  • Rootcheck

    • GET /rootcheck/:agent_id/cis (Get rootcheck CIS requirements)
    • GET /rootcheck/:agent_id/pci (Get rootcheck pci requirements)
  • API

    • GET /version
  • Wazuh framework: Manage Wazuh from python.

  • Unit tests

  • Cache (750ms) for GET requests

Changed

  • Improved API service.
  • Improved input validation.
  • Improved Error Handling.
  • Improved logging.
  • Settings in /api/configuration.
  • By default, API is installed using HTTP.
  • xmljson is not necessary.
  • apache-utils is not necessary.
  • Requests:
  • Improved:
  • GET /rootcheck/:agent_id (Get rootcheck database)
  • GET /syscheck/:agent_id (Get syscheck files)

Removed

  • Requests that require root privileges:
  • /manager/configuration/test
  • /manager/start,stop,restart

Wazuh RESTful API v1.2.1

25 Jul 16:47
Compare
Choose a tag to compare

Fixed

  • Issue installing API as service.

Wazuh RESTful API v1.2

13 Apr 19:14
Compare
Choose a tag to compare

Added

  • Run API as service
  • API Versioning
  • Improved error handling
  • Improved Cross-origin resource sharing (CORS)
  • Automatic agent IP address registration
  • Improved proxy server IP source extraction

Changed

  • NodeJS modules must be installed with npm install
  • Response JSON: Field response changed to data

Fixed

  • Issue importing xmljson package in Python
  • Wrong HTTP status code in some specific cases