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 +4 -4
- data/lib/logstash_auditor/auditor.rb +2 -2
- data/lib/logstash_auditor/version.rb +1 -1
- data/sanity/Gemfile +1 -1
- data/sanity/sanity.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e0fd6676dbd7bd6b2049f89f663176671632706
|
4
|
+
data.tar.gz: b595f455e1be70f9794aabfe557fde24f52c821b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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', '
|
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['
|
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
|
data/sanity/Gemfile
CHANGED
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
|
-
"
|
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.
|
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-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|