soar_sc_core 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/providers/auditing.rb +8 -11
- data/lib/soar_sc_core/version.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: 28ce256017213102dc7fcd0b7b35dd03277f6131
|
4
|
+
data.tar.gz: f33a6116ca46e1ff2b35a60c54f455cfc76a8a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9047ae5930055cdfdba4c79cb84542bb4a549ba228fb3a7874ffb18180361f2bbd376ddc1e10f68877b5d63fd5d6874c609c351f22260321636abfbbf73eb0b1
|
7
|
+
data.tar.gz: ce7ca02db2bef1d79cc96e7bc6a52fcaa6159e916bc9f741f288a66cb0b613046460d2075625ee2fe41c2218aa9a3049b30c78a89c39dc9c0ef7ee8678faa7c4
|
data/lib/providers/auditing.rb
CHANGED
@@ -56,23 +56,20 @@ module SoarSc
|
|
56
56
|
}
|
57
57
|
} unless defined? DEFAULT_AUDITING_CONFIGURATION; DEFAULT_AUDITING_CONFIGURATION.freeze
|
58
58
|
|
59
|
-
def self.bootstrap(configuration,
|
59
|
+
def self.bootstrap(configuration, external_auditor = nil)
|
60
60
|
begin
|
61
|
-
|
62
|
-
|
63
|
-
if initialize_with_identifier
|
64
|
-
SoarSc::auditing = SoarSc::Providers.const_get(merged_configuration['auditing']['provider'])
|
65
|
-
.new(merged_configuration['auditing'],
|
66
|
-
SoarSc::environment['IDENTIFIER'])
|
61
|
+
if external_auditor
|
62
|
+
SoarSc::auditing = external_auditor
|
67
63
|
else
|
68
|
-
|
69
|
-
|
64
|
+
configuration = self.merge_configuration_with_auditing_defaults(configuration)
|
65
|
+
self.validate_auditing_provider_configuration(merged_configuration['auditing'])
|
66
|
+
SoarSc::auditing = SoarSc::Providers.const_get(merged_configuration['auditing']['provider']).new(merged_configuration['auditing'])
|
70
67
|
SoarSc::auditing.service_identifier = SoarSc::environment['IDENTIFIER']
|
68
|
+
SoarStatus::Status.register_detailed_status_provider('auditing',SoarSc::auditing)
|
71
69
|
end
|
72
70
|
self.generate_instance_flow_id
|
73
71
|
self.bootstrap_analytics
|
74
|
-
|
75
|
-
merged_configuration
|
72
|
+
configuration
|
76
73
|
rescue
|
77
74
|
$stderr.puts 'Failure initializing auditing provider'
|
78
75
|
raise
|
data/lib/soar_sc_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_sc_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernst Van Graan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|