foreman_scap_client 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_scap_client/base_client.rb +2 -2
- data/lib/foreman_scap_client/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825ce2dba8229d5ed21451e89686f8b5d496d11a7b8520cc69e5e0b46be0f08c
|
4
|
+
data.tar.gz: fdde4a6929aaf4318acec62faf415121977f03cdb5a0034a09195520527ed83e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '086cbe81e50cbacdc9955ee9f5e65354fbd34e4a2c05937dbf333e37d890dc236508ca6dc6bd49d99d268178a7090a967c62e1debbfceed198135d09d6b35b56'
|
7
|
+
data.tar.gz: dfafef66458765b284a1b5ff37ec8ce94a083f881adecafb6bbc0b489f7686a17a36b648f1efaf29c4bc4b899f65c7e1f7346e218e2b6f706aa96c51218b5d55
|
@@ -81,7 +81,7 @@ module ForemanScapClient
|
|
81
81
|
def run_scan
|
82
82
|
stdout_str, error_str, result = Open3.capture3(scan_command_env_vars, scan_command)
|
83
83
|
if result.success? || result.exitstatus == 2
|
84
|
-
puts error_str.split("\n").select { |item| item.start_with?('WARNING:') || item.start_with?('Downloading') }.join("\n")
|
84
|
+
puts error_str.scrub("?").split("\n").select { |item| item.start_with?('WARNING:') || item.start_with?('Downloading') }.join("\n")
|
85
85
|
@report = results_path
|
86
86
|
else
|
87
87
|
puts 'Scan failed'
|
@@ -182,7 +182,7 @@ module ForemanScapClient
|
|
182
182
|
https.ca_file = config[:ca_file]
|
183
183
|
begin
|
184
184
|
https.cert = OpenSSL::X509::Certificate.new File.read(config[:host_certificate])
|
185
|
-
https.key = OpenSSL::PKey
|
185
|
+
https.key = OpenSSL::PKey.read File.read(config[:host_private_key])
|
186
186
|
rescue StandardError => e
|
187
187
|
puts 'Unable to load certs'
|
188
188
|
puts e.message
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_scap_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
- Šimon Lukašík
|
9
9
|
- Shlomi Zadok
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -64,7 +64,7 @@ homepage: https://github.com/theforeman/foreman_scap_client
|
|
64
64
|
licenses:
|
65
65
|
- GPL-3.0
|
66
66
|
metadata: {}
|
67
|
-
post_install_message:
|
67
|
+
post_install_message:
|
68
68
|
rdoc_options: []
|
69
69
|
require_paths:
|
70
70
|
- lib
|
@@ -80,8 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements:
|
82
82
|
- bzip2
|
83
|
-
rubygems_version: 3.
|
84
|
-
signing_key:
|
83
|
+
rubygems_version: 3.2.33
|
84
|
+
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Client script that runs openscap scan and uploads the result to foreman proxy
|
87
87
|
test_files: []
|