logstash_auditor 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c3d76abc5788824b821f1770ec008c16437abb5
4
- data.tar.gz: 7117c44fa990fe9a1e1f8a0f242bd2078dcfddaf
3
+ metadata.gz: 882c1ca29fc2bc0bf9202abf6b31240d7e5fd90e
4
+ data.tar.gz: 3336daf8bfef8e22133f59f093b778b7f38fd801
5
5
  SHA512:
6
- metadata.gz: 0397b01c9e3d5791b38b66138bd3ce812ea828c448c6bfbde7ea5b49ff33ff23239925cabf02b2f65bcbe2c8b32808ad8715528f3a1045e5b136743d126fa2d7
7
- data.tar.gz: c45df64e14df881cddfd6966f8200e83db91f169999612fe2defba11cf55f19744388bee95e89a41068565a83adcd4a6f779abd2cac894190cfecd049ae338a7
6
+ metadata.gz: 7f8e54b991ff0ce5a34460e1fd0ba4221712e2e6f3986fcd2b4771243adcabedad1a3ea6f50615b3221c838fb51f73a284bca831032b8b7f36a73b9db6cdde58
7
+ data.tar.gz: 0191741246b45a0b11f33ede43a0dea57d21870693d87ce1e43eddc7d6dbaf7c9e807c926e02e83ee3aa6e6cc626e59ff2e31a35ac23c0f8a680ff78b03b2ea1
data/README.md CHANGED
@@ -57,7 +57,7 @@ Initialize and configure the auditor so:
57
57
  @iut.configure(@logstash_configuration)
58
58
  ```
59
59
 
60
- Audit using the API methods inherited from SoarAuditorApi::SoarAuditorAPI, e.g.:
60
+ Audit using the API methods inherited from SoarAuditorApi::AuditorAPI, e.g.:
61
61
 
62
62
  ```ruby
63
63
  @iut.warn("#{flow_id}:This is a test event")
@@ -2,16 +2,16 @@ require "net/http"
2
2
  require "soar_auditor_api"
3
3
 
4
4
  module LogstashAuditor
5
- class LogstashAuditor < SoarAuditorApi::SoarAuditorAPI
5
+ class LogstashAuditor < SoarAuditorApi::AuditorAPI
6
6
 
7
- #inversion of control method required by the SoarAuditorAPI
7
+ #inversion of control method required by the AuditorAPI
8
8
  def configuration_is_valid(configuration)
9
9
  required_parameters = ["host_url", "username", "password"]
10
10
  required_parameters.each { |parameter| return false unless configuration.include?(parameter) }
11
11
  return true
12
12
  end
13
13
 
14
- #inversion of control method required by the SoarAuditorAPI
14
+ #inversion of control method required by the AuditorAPI
15
15
  def audit(audit_data)
16
16
  request = create_request(audit_data)
17
17
  http = create_http_transport
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "elasticsearch", "~> 1"
27
27
 
28
28
  spec.add_dependency "http", "~> 2"
29
- spec.add_dependency "soar_auditor_api", "~> 0.0"
29
+ spec.add_dependency "soar_auditor_api", "~> 0.0.4"
30
30
 
31
31
  end
data/sanity/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'logstash_auditor', "~> 0.0.7"
3
+ gem 'logstash_auditor', "~> 0.0.8"
data/sanity/sanity.rb CHANGED
@@ -13,7 +13,7 @@ class Main
13
13
  require 'digest'
14
14
  flow_id = Digest::SHA256.hexdigest("#{Time.now.to_i}#{rand(4000000)}")
15
15
 
16
- @iut.warn("#{flow_id}:This is a test event")
16
+ @iut.warn("#{flow_id}:#{Time.now.utc}:test1234")
17
17
  end
18
18
  end
19
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.0'
103
+ version: 0.0.4
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.0'
110
+ version: 0.0.4
111
111
  description: Logstash implementation of SOAR architecture auditing allowing easy publishing
112
112
  of events to a centralized logstash collection engine
113
113
  email: