wazuh-ruby-client 0.2.8 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/lib/wazuh/api/endpoints/v4/active_response.rb +19 -0
- data/lib/wazuh/api/endpoints/v4/agents.rb +82 -0
- data/lib/wazuh/api/endpoints/v4/cache.rb +14 -0
- data/lib/wazuh/api/endpoints/v4/ciscat.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/cluster.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/decoders.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/experimental.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/lists.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/manager.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/rootcheck.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/rules.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/security_configuration_assessment.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/summary.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/syscheck.rb +11 -0
- data/lib/wazuh/api/endpoints/v4/syscollector.rb +11 -0
- data/lib/wazuh/api/endpoints/v4.rb +40 -0
- data/lib/wazuh/api/endpoints.rb +1 -0
- data/lib/wazuh/client.rb +8 -1
- data/lib/wazuh/config.rb +6 -0
- data/lib/wazuh/sawyer/connection.rb +15 -8
- data/lib/wazuh/sawyer/request.rb +7 -4
- data/lib/wazuh/sawyer/token.rb +20 -0
- data/lib/wazuh/version.rb +1 -1
- data/lib/wazuh-ruby-client/version.rb +1 -1
- data/lib/wazuh-ruby-client.rb +3 -0
- data/wazuh-ruby-client.gemspec +4 -1
- metadata +67 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e610f82ce00aeba7a7b9b3d55e94c0e863656ab4b8d898b579d5bda55f8d1c
|
4
|
+
data.tar.gz: 94fd38efd2f6c42deedcf880ddfa9fcf9b6ebc0f9c77f56b2856333dea3acde2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bf8fbf93e1c857639bd552de603f2314171e13ad18dff2966136382b6ae2f78d0c275699368c9fcb45f3cd1239f7343a611438571a5d743bb41a71708fff63
|
7
|
+
data.tar.gz: 3ca2535d7440e5d5c360b43b5448b76aad0644cfa0978e82179d59538b91eaf39ded995c5a86d95ab5af31704f643ddbdb84ddc74333d521e8622c03b422c47e
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.2.9]
|
11
|
+
|
12
|
+
- Adds availability to ignore env proxy settings [#25](https://github.com/mrtc0/wazuh-ruby-client/pull/25). Thanks @falegk
|
13
|
+
- Add the `ca_file` option to Wazuh.Config to specify a CA file [#26](https://github.com/mrtc0/wazuh-ruby-client/pull/26). Thanks @k1LoW
|
14
|
+
|
10
15
|
## [0.2.8]
|
11
16
|
|
12
17
|
- fix bug. return with response body.
|
data/README.md
CHANGED
@@ -63,6 +63,7 @@ The following global settings are supported via `Wazuh.configure` .
|
|
63
63
|
| setting | description |
|
64
64
|
|:--------|:------------|
|
65
65
|
| user_agent | User-Agent |
|
66
|
+
| ca_file | CA file (if use Client Certificate Authentication and specify CA file) |
|
66
67
|
| client_cert | Client certificate (if use Client Certificate Authentication) |
|
67
68
|
| client_key | Client Key (if use Client Certificate Authentication) |
|
68
69
|
| basic_user | Basic Authentication user name |
|
@@ -70,6 +71,7 @@ The following global settings are supported via `Wazuh.configure` .
|
|
70
71
|
| verify_ssl | Skip the SSL/TLS verify |
|
71
72
|
| logger | loggeer object |
|
72
73
|
| endpoint | Wazuh API endpoint URL |
|
74
|
+
| ignore_env_proxy | Ignores ENV proxy settings |
|
73
75
|
|
74
76
|
|
75
77
|
### Agents
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Wazuh
|
2
|
+
module Api
|
3
|
+
module Endpoints
|
4
|
+
module V4
|
5
|
+
module ActiveResponse
|
6
|
+
include ::Wazuh::Api::Endpoints::ActiveResponse
|
7
|
+
def run_active_response_command(options = {})
|
8
|
+
query_options = {}
|
9
|
+
%w(agents_list pretty wait_for_complete).each do |c|
|
10
|
+
query_options[c.to_sym] = options.delete(c.to_sym)
|
11
|
+
end
|
12
|
+
put "/active-response", options, query_options
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
module Wazuh
|
2
|
+
module Api
|
3
|
+
module Endpoints
|
4
|
+
module V4
|
5
|
+
module Agents
|
6
|
+
include ::Wazuh::Api::Endpoints::Agents
|
7
|
+
def delete_agent(agent_ids, options = {})
|
8
|
+
delete "/agents", options.merge({ agents_list: agent_ids })
|
9
|
+
end
|
10
|
+
|
11
|
+
def remove_agents_of_group(ids, group)
|
12
|
+
delete "/agents/group", {group_id: group, agents_list: ids }
|
13
|
+
end
|
14
|
+
|
15
|
+
def delete_agent_by_group(ids)
|
16
|
+
delete '/agents/groups', {groups_list: ids}
|
17
|
+
end
|
18
|
+
|
19
|
+
def remove_group(group_id)
|
20
|
+
delete "/agents/groups", { groups_list: group_id }
|
21
|
+
end
|
22
|
+
|
23
|
+
def agent(agent_id, options = {})
|
24
|
+
get "/agents", options.merge({ agents_list: agent_id})
|
25
|
+
end
|
26
|
+
|
27
|
+
def upgrade_result_from_agent(agent_id, options = {})
|
28
|
+
get "/agents/upgrade_result", options.merge({ agents_list: agent_id})
|
29
|
+
end
|
30
|
+
|
31
|
+
def groups(options = {})
|
32
|
+
get '/groups', options
|
33
|
+
end
|
34
|
+
|
35
|
+
def agents_by_group(group_id, options = {})
|
36
|
+
offset_request('get', "/groups", options.merge({groups_list: group_id}))
|
37
|
+
end
|
38
|
+
|
39
|
+
def group_configuration(group_id, options = {})
|
40
|
+
get "/groups/#{group_id}/configuration", options
|
41
|
+
end
|
42
|
+
|
43
|
+
def group_files(group_id, options = {})
|
44
|
+
get "/groups/#{group_id}/files", options
|
45
|
+
end
|
46
|
+
|
47
|
+
def get_file_in_group(group_id, filename, options = {})
|
48
|
+
get "groups/#{group_id}/files/#{filename}", options
|
49
|
+
end
|
50
|
+
|
51
|
+
def agent_by_name(agent_name, options = {})
|
52
|
+
get "/agents", options.merge({name: agent_name})
|
53
|
+
end
|
54
|
+
|
55
|
+
def agent_summary
|
56
|
+
get "/agents/summary/status"
|
57
|
+
end
|
58
|
+
|
59
|
+
def add_agents_to_group(ids, group_id)
|
60
|
+
put "/agents/group", {group_id: group_id, agents_list: ids}
|
61
|
+
end
|
62
|
+
|
63
|
+
def agent_upgrade(agent_id, options = {})
|
64
|
+
put "/agents/upgrade", options.merge({agents_list: agent_id})
|
65
|
+
end
|
66
|
+
|
67
|
+
def agent_upgrade_custom(agent_id, options = {})
|
68
|
+
put "/agents/upgrade_custom", options.merge({agents_list: agent_id})
|
69
|
+
end
|
70
|
+
|
71
|
+
def add_agent_quick(agent_name)
|
72
|
+
post "/agents/insert/quick/", {}, {agent_name: agent_name}
|
73
|
+
end
|
74
|
+
|
75
|
+
def create_group(group_id)
|
76
|
+
post "/agents/groups", {group_id: group_id}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require_relative 'v4/active_response'
|
2
|
+
require_relative 'v4/agents'
|
3
|
+
require_relative 'v4/cache'
|
4
|
+
require_relative 'v4/ciscat'
|
5
|
+
require_relative 'v4/cluster'
|
6
|
+
require_relative 'v4/decoders'
|
7
|
+
require_relative 'v4/experimental'
|
8
|
+
require_relative 'v4/lists'
|
9
|
+
require_relative 'v4/manager'
|
10
|
+
require_relative 'v4/rootcheck'
|
11
|
+
require_relative 'v4/rules'
|
12
|
+
require_relative 'v4/security_configuration_assessment'
|
13
|
+
require_relative 'v4/summary'
|
14
|
+
require_relative 'v4/syscheck'
|
15
|
+
require_relative 'v4/syscollector'
|
16
|
+
|
17
|
+
|
18
|
+
module Wazuh
|
19
|
+
module Api
|
20
|
+
module Endpoints
|
21
|
+
module V4
|
22
|
+
include ActiveResponse
|
23
|
+
include Agents
|
24
|
+
include Cache
|
25
|
+
include Ciscat
|
26
|
+
include Cluster
|
27
|
+
include Decoders
|
28
|
+
include Experimental
|
29
|
+
include Lists
|
30
|
+
include Manager
|
31
|
+
include Rootcheck
|
32
|
+
include Rules
|
33
|
+
include Summary
|
34
|
+
include Syscheck
|
35
|
+
include Syscollector
|
36
|
+
include SecurityConfigurationAssessment
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/wazuh/api/endpoints.rb
CHANGED
data/lib/wazuh/client.rb
CHANGED
@@ -2,7 +2,6 @@ module Wazuh
|
|
2
2
|
class Client
|
3
3
|
include Sawyer::Connection
|
4
4
|
include Sawyer::Request
|
5
|
-
include Api::Endpoints
|
6
5
|
|
7
6
|
attr_accessor(*Config::ATTRIBUTES)
|
8
7
|
|
@@ -11,6 +10,14 @@ module Wazuh
|
|
11
10
|
send("#{key}=", options[key] || Wazuh.config.send(key))
|
12
11
|
end
|
13
12
|
@logger ||= Wazuh::Config.logger || Wazuh::Logger.default
|
13
|
+
case api_version
|
14
|
+
when 3
|
15
|
+
extend Api::Endpoints
|
16
|
+
when 4
|
17
|
+
extend Api::Endpoints::V4
|
18
|
+
else
|
19
|
+
raise "unsupported api version #{api_version}"
|
20
|
+
end
|
14
21
|
end
|
15
22
|
|
16
23
|
class << self
|
data/lib/wazuh/config.rb
CHANGED
@@ -5,6 +5,7 @@ module Wazuh
|
|
5
5
|
|
6
6
|
ATTRIBUTES = %i[
|
7
7
|
user_agent
|
8
|
+
ca_file
|
8
9
|
client_cert
|
9
10
|
client_key
|
10
11
|
basic_user
|
@@ -12,6 +13,8 @@ module Wazuh
|
|
12
13
|
verify_ssl
|
13
14
|
logger
|
14
15
|
endpoint
|
16
|
+
ignore_env_proxy
|
17
|
+
api_version
|
15
18
|
].freeze
|
16
19
|
|
17
20
|
attr_accessor(*Config::ATTRIBUTES)
|
@@ -19,12 +22,15 @@ module Wazuh
|
|
19
22
|
def reset
|
20
23
|
self.endpoint = nil
|
21
24
|
self.user_agent = "Wazuh Ruby Client/#{Wazuh::VERSION}"
|
25
|
+
self.ca_file = nil
|
22
26
|
self.client_cert = nil
|
23
27
|
self.client_key = nil
|
24
28
|
self.basic_user = nil
|
25
29
|
self.basic_password = nil
|
26
30
|
self.verify_ssl = true
|
27
31
|
self.logger = nil
|
32
|
+
self.ignore_env_proxy = false
|
33
|
+
self.api_version = 3
|
28
34
|
end
|
29
35
|
end
|
30
36
|
|
@@ -2,7 +2,6 @@ module Wazuh
|
|
2
2
|
module Sawyer
|
3
3
|
module Connection
|
4
4
|
private
|
5
|
-
|
6
5
|
def connection
|
7
6
|
options = {
|
8
7
|
headers: {
|
@@ -14,11 +13,7 @@ module Wazuh
|
|
14
13
|
|
15
14
|
options[:headers]['User-Agent'] = user_agent if user_agent
|
16
15
|
options[:ssl].merge!({ client_cert: client_cert, client_key: client_key }) if client_cert || client_key
|
17
|
-
|
18
|
-
if basic_user || basic_password
|
19
|
-
authorization_header = "Basic " + Base64.encode64(basic_user + ':' + basic_password).strip
|
20
|
-
options[:headers].merge!({'Authorization' => authorization_header})
|
21
|
-
end
|
16
|
+
options[:ssl][:ca_file] = ca_file if ca_file
|
22
17
|
|
23
18
|
options[:ssl].merge!({ verify: false }) unless verify_ssl
|
24
19
|
|
@@ -26,9 +21,21 @@ module Wazuh
|
|
26
21
|
:links_parser => ::Sawyer::LinkParsers::Simple.new
|
27
22
|
}
|
28
23
|
|
29
|
-
|
24
|
+
case api_version
|
25
|
+
when 3
|
26
|
+
if basic_user || basic_password
|
27
|
+
options[:headers].merge!({'Authorization' => "Basic " + Base64.strict_encode64(basic_user + ':' + basic_password).strip})
|
28
|
+
end
|
29
|
+
when 4
|
30
|
+
raise "user and password is required on v4 api" if !basic_user || !basic_password
|
31
|
+
opts[:faraday] = ::Faraday.new(options) do |conn|
|
32
|
+
conn.request :authorization, 'Bearer', -> { Token.jwt(endpoint, options, basic_user, basic_password) }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
opts[:faraday].proxy = nil if ignore_env_proxy
|
30
37
|
|
31
|
-
::Sawyer::Agent.new(endpoint, opts)
|
38
|
+
conn = ::Sawyer::Agent.new(endpoint, opts)
|
32
39
|
end
|
33
40
|
end
|
34
41
|
end
|
data/lib/wazuh/sawyer/request.rb
CHANGED
@@ -21,24 +21,27 @@ module Wazuh
|
|
21
21
|
def offset_request(method, path, options = {})
|
22
22
|
items = []
|
23
23
|
data = send(method, path, options)
|
24
|
-
|
24
|
+
total_items = api_version == 3 ? data.totalItems : data.total_affected_items
|
25
|
+
0.step(total_items, 500) { |offset|
|
25
26
|
options[:offset] = offset
|
26
27
|
d = send(method, path, options)
|
27
|
-
items
|
28
|
+
_items = api_version == 3 ? data.items : d.affected_items
|
29
|
+
items.concat(_items)
|
28
30
|
}
|
29
31
|
|
30
32
|
items
|
31
33
|
end
|
32
34
|
|
35
|
+
|
33
36
|
private
|
34
37
|
|
35
|
-
def request(method, path, options)
|
38
|
+
def request(method, path, options, query_options={})
|
36
39
|
response = case method
|
37
40
|
when :get, :delete
|
38
41
|
connection.call(method, URI::Parser.new.escape(path), nil, {query: options})
|
39
42
|
when :post, :put
|
40
43
|
data = options unless options.empty?
|
41
|
-
connection.call(method, URI::Parser.new.escape(path), data)
|
44
|
+
connection.call(method, URI::Parser.new.escape(path), data, {query: query_options})
|
42
45
|
end
|
43
46
|
|
44
47
|
return response.data.data if response.status == 200
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Wazuh
|
2
|
+
module Sawyer
|
3
|
+
module Connection
|
4
|
+
class Token
|
5
|
+
def self.jwt(endpoint, options, basic_user, basic_password)
|
6
|
+
if !@_token || (@_exp && @_exp -3 <= Time.now.to_i)
|
7
|
+
options[:url] = endpoint
|
8
|
+
options[:headers].merge!({'Authorization' => "Basic " + Base64.strict_encode64(basic_user + ':' + basic_password).strip})
|
9
|
+
|
10
|
+
token = ::Faraday.new(options) {|f| f.response :json }.get('/security/user/authenticate').body['data']['token']
|
11
|
+
@_exp = ::JWT.decode(token, nil, false).first['exp'].to_i
|
12
|
+
::JWT.decode(token, nil, false).first
|
13
|
+
@_token = token
|
14
|
+
end
|
15
|
+
@_token
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/wazuh/version.rb
CHANGED
data/lib/wazuh-ruby-client.rb
CHANGED
@@ -6,8 +6,11 @@ require 'logger'
|
|
6
6
|
require 'base64'
|
7
7
|
require 'faraday'
|
8
8
|
require 'sawyer'
|
9
|
+
require 'jwt'
|
10
|
+
require 'faraday_middleware'
|
9
11
|
|
10
12
|
require_relative 'wazuh/config'
|
13
|
+
require_relative 'wazuh/sawyer/token'
|
11
14
|
require_relative 'wazuh/sawyer/connection'
|
12
15
|
require_relative 'wazuh/sawyer/request'
|
13
16
|
require_relative 'wazuh/api/endpoints'
|
data/wazuh-ruby-client.gemspec
CHANGED
@@ -34,14 +34,17 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ["lib"]
|
36
36
|
|
37
|
-
spec.add_development_dependency "bundler", "~> 2.
|
37
|
+
spec.add_development_dependency "bundler", "~> 2.2"
|
38
38
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.0"
|
40
40
|
spec.add_development_dependency "vcr"
|
41
41
|
spec.add_development_dependency "webmock"
|
42
42
|
spec.add_development_dependency "pry"
|
43
43
|
spec.add_development_dependency "pry-byebug"
|
44
|
+
spec.add_development_dependency "timecop"
|
44
45
|
|
45
46
|
spec.add_dependency 'faraday'
|
47
|
+
spec.add_dependency 'faraday_middleware'
|
46
48
|
spec.add_dependency 'sawyer'
|
49
|
+
spec.add_dependency 'jwt'
|
47
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wazuh-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mrtc0
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: '2.2'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: timecop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: faraday
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +136,20 @@ dependencies:
|
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: faraday_middleware
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: sawyer
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +164,20 @@ dependencies:
|
|
136
164
|
- - ">="
|
137
165
|
- !ruby/object:Gem::Version
|
138
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: jwt
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
139
181
|
description: Wazuh API client for Ruby
|
140
182
|
email:
|
141
183
|
- mrtc0@ssrf.in
|
@@ -211,6 +253,22 @@ files:
|
|
211
253
|
- lib/wazuh/api/endpoints/summary.rb
|
212
254
|
- lib/wazuh/api/endpoints/syscheck.rb
|
213
255
|
- lib/wazuh/api/endpoints/syscollector.rb
|
256
|
+
- lib/wazuh/api/endpoints/v4.rb
|
257
|
+
- lib/wazuh/api/endpoints/v4/active_response.rb
|
258
|
+
- lib/wazuh/api/endpoints/v4/agents.rb
|
259
|
+
- lib/wazuh/api/endpoints/v4/cache.rb
|
260
|
+
- lib/wazuh/api/endpoints/v4/ciscat.rb
|
261
|
+
- lib/wazuh/api/endpoints/v4/cluster.rb
|
262
|
+
- lib/wazuh/api/endpoints/v4/decoders.rb
|
263
|
+
- lib/wazuh/api/endpoints/v4/experimental.rb
|
264
|
+
- lib/wazuh/api/endpoints/v4/lists.rb
|
265
|
+
- lib/wazuh/api/endpoints/v4/manager.rb
|
266
|
+
- lib/wazuh/api/endpoints/v4/rootcheck.rb
|
267
|
+
- lib/wazuh/api/endpoints/v4/rules.rb
|
268
|
+
- lib/wazuh/api/endpoints/v4/security_configuration_assessment.rb
|
269
|
+
- lib/wazuh/api/endpoints/v4/summary.rb
|
270
|
+
- lib/wazuh/api/endpoints/v4/syscheck.rb
|
271
|
+
- lib/wazuh/api/endpoints/v4/syscollector.rb
|
214
272
|
- lib/wazuh/api/error.rb
|
215
273
|
- lib/wazuh/api/errors/wazuh_error.rb
|
216
274
|
- lib/wazuh/client.rb
|
@@ -218,6 +276,7 @@ files:
|
|
218
276
|
- lib/wazuh/logger.rb
|
219
277
|
- lib/wazuh/sawyer/connection.rb
|
220
278
|
- lib/wazuh/sawyer/request.rb
|
279
|
+
- lib/wazuh/sawyer/token.rb
|
221
280
|
- lib/wazuh/version.rb
|
222
281
|
- lib/wazuh_ruby_client.rb
|
223
282
|
- wazuh-ruby-client.gemspec
|
@@ -227,7 +286,7 @@ metadata:
|
|
227
286
|
homepage_uri: https://github.com/mrtc0/wazuh-ruby-client
|
228
287
|
source_code_uri: https://github.com/mrtc0/wazuh-ruby-client
|
229
288
|
changelog_uri: https://github.com/mrtc0/wazuh-ruby-client/blob/master/CHANGELOG.md
|
230
|
-
post_install_message:
|
289
|
+
post_install_message:
|
231
290
|
rdoc_options: []
|
232
291
|
require_paths:
|
233
292
|
- lib
|
@@ -242,8 +301,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
301
|
- !ruby/object:Gem::Version
|
243
302
|
version: '0'
|
244
303
|
requirements: []
|
245
|
-
rubygems_version: 3.
|
246
|
-
signing_key:
|
304
|
+
rubygems_version: 3.1.4
|
305
|
+
signing_key:
|
247
306
|
specification_version: 4
|
248
307
|
summary: Wazuh API client for Ruby
|
249
308
|
test_files: []
|