logstash_auditor 1.0.0 → 1.0.1

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: 3ed5b6819284fdb6fa9261a6fa3ff3bff44934a7
4
- data.tar.gz: b1f6b5ddec3302de7d5a840a51c95ab451e8d340
3
+ metadata.gz: 1e0fd6676dbd7bd6b2049f89f663176671632706
4
+ data.tar.gz: b595f455e1be70f9794aabfe557fde24f52c821b
5
5
  SHA512:
6
- metadata.gz: cd8eb41de82e38b1c8b6e54dca071e70553acdf7a0c3ea78e45fd8f4b4c28bcc1432a20ffdb0421134c5daefcfb2cb728abcc7df7c4c9ba0481d3d80df89883a
7
- data.tar.gz: a9f780c3e1b2502887b8873ddb7e0ebc33c7130b8f10443301a8b7971d91d03c9fbb2243927e52b71e1edd8322c7522597d0a5ec6ce4db6430bfe22f44e8f20f
6
+ metadata.gz: 43bdd4f0b32ed2eb4ec328ce9705724cc77ea640adb8e337a4afcd2328982459c28a697fc1baddbea5282ad1b4c51a1a575b5e2ca81f06594ad6902352814722
7
+ data.tar.gz: a1fc333997aac59cae05e55b35cd5afaccc1b657df3d5033c7188b3cc55bae2caa4853aaa0937b939f331913010c4691d374cf60c778eafbfc293247d8475547
@@ -26,7 +26,7 @@ module LogstashAuditor
26
26
  end
27
27
 
28
28
  def certificate_auth_configuration_valid?(configuration)
29
- required_parameters = ['host_url', 'public_key', 'private_key']
29
+ required_parameters = ['host_url', 'certificate', 'private_key']
30
30
  required_parameters.each { |parameter| return false unless configuration.include?(parameter) }
31
31
  return true
32
32
  end
@@ -42,7 +42,7 @@ module LogstashAuditor
42
42
  end
43
43
 
44
44
  def add_certificate_authentication(http)
45
- http.cert = OpenSSL::X509::Certificate.new(@configuration['public_key'])
45
+ http.cert = OpenSSL::X509::Certificate.new(@configuration['certificate'])
46
46
  http.key = OpenSSL::PKey::RSA.new(@configuration['private_key'])
47
47
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/sanity/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'logstash_auditor', "~> 1.0.0"
3
+ gem 'logstash_auditor', "~> 1.0.1"
4
4
  gem "soar_auditing_format", "~> 0.0.5"
data/sanity/sanity.rb CHANGED
@@ -7,7 +7,7 @@ class Main
7
7
  def test_sanity
8
8
  @iut = LogstashAuditor::LogstashAuditor.new
9
9
  @logstash_configuration = { "host_url" => "https://localhost:8081",
10
- "public_key" => File.read("../spec/support/certificates/selfsigned/selfsigned_registered.cert.pem"),
10
+ "certificate" => File.read("../spec/support/certificates/selfsigned/selfsigned_registered.cert.pem"),
11
11
  "private_key" => File.read("../spec/support/certificates/selfsigned/selfsigned_registered.private.nopass.pem"),
12
12
  "timeout" => 3}
13
13
  @iut.configure(@logstash_configuration)
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: 1.0.0
4
+ version: 1.0.1
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-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler