inspec-core 4.3.2 → 4.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -21
- data/etc/deprecations.json +10 -0
- data/etc/plugin_filters.json +8 -0
- data/lib/bundles/inspec-compliance/api.rb +1 -1
- data/lib/bundles/inspec-compliance/configuration.rb +1 -1
- data/lib/bundles/inspec-compliance/http.rb +1 -1
- data/lib/bundles/inspec-compliance/support.rb +1 -1
- data/lib/bundles/inspec-compliance/target.rb +1 -1
- data/lib/bundles/inspec-supermarket.rb +3 -7
- data/lib/bundles/inspec-supermarket/api.rb +10 -13
- data/lib/bundles/inspec-supermarket/cli.rb +12 -15
- data/lib/bundles/inspec-supermarket/target.rb +7 -11
- data/lib/fetchers/git.rb +14 -15
- data/lib/fetchers/local.rb +6 -10
- data/lib/fetchers/mock.rb +3 -5
- data/lib/fetchers/url.rb +42 -44
- data/lib/inspec.rb +23 -24
- data/lib/inspec/archive/tar.rb +2 -6
- data/lib/inspec/archive/zip.rb +3 -7
- data/lib/inspec/backend.rb +8 -9
- data/lib/inspec/base_cli.rb +64 -65
- data/lib/inspec/cached_fetcher.rb +2 -3
- data/lib/inspec/cli.rb +136 -97
- data/lib/inspec/config.rb +71 -61
- data/lib/inspec/control_eval_context.rb +22 -18
- data/lib/inspec/dependencies/cache.rb +2 -3
- data/lib/inspec/dependencies/dependency_set.rb +2 -3
- data/lib/inspec/dependencies/lockfile.rb +8 -9
- data/lib/inspec/dependencies/requirement.rb +7 -8
- data/lib/inspec/dependencies/resolver.rb +5 -7
- data/lib/inspec/describe.rb +2 -6
- data/lib/inspec/dist.rb +20 -0
- data/lib/inspec/dsl.rb +4 -7
- data/lib/inspec/dsl_shared.rb +1 -2
- data/lib/inspec/env_printer.rb +11 -12
- data/lib/inspec/errors.rb +0 -4
- data/lib/inspec/exceptions.rb +0 -1
- data/lib/inspec/expect.rb +5 -8
- data/lib/inspec/fetcher.rb +7 -10
- data/lib/inspec/file_provider.rb +24 -24
- data/lib/inspec/formatters.rb +3 -3
- data/lib/inspec/formatters/base.rb +8 -8
- data/lib/inspec/globals.rb +2 -2
- data/lib/inspec/impact.rb +5 -7
- data/lib/inspec/input_registry.rb +84 -33
- data/lib/inspec/library_eval_context.rb +3 -6
- data/lib/inspec/log.rb +1 -5
- data/lib/inspec/metadata.rb +17 -16
- data/lib/inspec/method_source.rb +5 -9
- data/lib/inspec/objects.rb +10 -12
- data/lib/inspec/objects/control.rb +7 -9
- data/lib/inspec/objects/describe.rb +9 -11
- data/lib/inspec/objects/each_loop.rb +1 -3
- data/lib/inspec/objects/input.rb +24 -26
- data/lib/inspec/objects/list.rb +4 -6
- data/lib/inspec/objects/or_test.rb +2 -4
- data/lib/inspec/objects/ruby_helper.rb +3 -5
- data/lib/inspec/objects/tag.rb +0 -2
- data/lib/inspec/objects/test.rb +9 -11
- data/lib/inspec/objects/value.rb +3 -5
- data/lib/inspec/plugin/v1.rb +2 -2
- data/lib/inspec/plugin/v1/plugin_types/cli.rb +1 -5
- data/lib/inspec/plugin/v1/plugin_types/fetcher.rb +2 -5
- data/lib/inspec/plugin/v1/plugin_types/resource.rb +4 -6
- data/lib/inspec/plugin/v1/plugin_types/secret.rb +1 -5
- data/lib/inspec/plugin/v1/plugin_types/source_reader.rb +1 -5
- data/lib/inspec/plugin/v1/plugins.rb +15 -19
- data/lib/inspec/plugin/v1/registry.rb +0 -4
- data/lib/inspec/plugin/v2.rb +8 -8
- data/lib/inspec/plugin/v2/activator.rb +1 -1
- data/lib/inspec/plugin/v2/config_file.rb +6 -6
- data/lib/inspec/plugin/v2/filter.rb +13 -13
- data/lib/inspec/plugin/v2/installer.rb +36 -24
- data/lib/inspec/plugin/v2/loader.rb +28 -28
- data/lib/inspec/plugin/v2/plugin_base.rb +15 -2
- data/lib/inspec/plugin/v2/plugin_types/cli.rb +5 -5
- data/lib/inspec/plugin/v2/plugin_types/input.rb +34 -0
- data/lib/inspec/plugin/v2/plugin_types/mock.rb +1 -1
- data/lib/inspec/plugin/v2/registry.rb +7 -7
- data/lib/inspec/polyfill.rb +0 -3
- data/lib/inspec/profile.rb +55 -63
- data/lib/inspec/profile_context.rb +27 -30
- data/lib/inspec/profile_vendor.rb +6 -9
- data/lib/inspec/reporters.rb +24 -24
- data/lib/inspec/reporters/automate.rb +17 -19
- data/lib/inspec/reporters/base.rb +1 -1
- data/lib/inspec/reporters/cli.rb +88 -91
- data/lib/inspec/reporters/json.rb +2 -4
- data/lib/inspec/reporters/json_automate.rb +1 -3
- data/lib/inspec/reporters/json_min.rb +1 -3
- data/lib/inspec/reporters/junit.rb +26 -28
- data/lib/inspec/reporters/yaml.rb +1 -3
- data/lib/inspec/require_loader.rb +0 -4
- data/lib/inspec/resource.rb +4 -125
- data/lib/inspec/resources.rb +121 -0
- data/lib/{resources → inspec/resources}/aide_conf.rb +24 -25
- data/lib/{resources → inspec/resources}/apache.rb +13 -14
- data/lib/{resources → inspec/resources}/apache_conf.rb +16 -17
- data/lib/{resources → inspec/resources}/apt.rb +17 -17
- data/lib/{resources → inspec/resources}/audit_policy.rb +7 -6
- data/lib/{resources → inspec/resources}/auditd.rb +62 -64
- data/lib/{resources → inspec/resources}/auditd_conf.rb +7 -8
- data/lib/{resources → inspec/resources}/bash.rb +6 -8
- data/lib/{resources → inspec/resources}/bond.rb +15 -14
- data/lib/{resources → inspec/resources}/bridge.rb +8 -8
- data/lib/{resources → inspec/resources}/chocolatey_package.rb +10 -8
- data/lib/{resources → inspec/resources}/command.rb +11 -10
- data/lib/{resources → inspec/resources}/cpan.rb +12 -12
- data/lib/{resources → inspec/resources}/cran.rb +9 -9
- data/lib/{resources → inspec/resources}/crontab.rb +47 -48
- data/lib/{resources → inspec/resources}/csv.rb +5 -5
- data/lib/{resources → inspec/resources}/dh_params.rb +5 -7
- data/lib/{resources → inspec/resources}/directory.rb +5 -7
- data/lib/{resources → inspec/resources}/docker.rb +63 -63
- data/lib/{resources → inspec/resources}/docker_container.rb +6 -6
- data/lib/{resources → inspec/resources}/docker_image.rb +9 -9
- data/lib/{resources → inspec/resources}/docker_object.rb +8 -13
- data/lib/{resources → inspec/resources}/docker_plugin.rb +6 -6
- data/lib/{resources → inspec/resources}/docker_service.rb +7 -7
- data/lib/{resources → inspec/resources}/elasticsearch.rb +40 -42
- data/lib/{resources → inspec/resources}/etc_fstab.rb +23 -24
- data/lib/{resources → inspec/resources}/etc_group.rb +26 -27
- data/lib/{resources → inspec/resources}/etc_hosts.rb +11 -13
- data/lib/{resources → inspec/resources}/etc_hosts_allow_deny.rb +25 -27
- data/lib/{resources → inspec/resources}/file.rb +80 -79
- data/lib/{resources → inspec/resources}/filesystem.rb +20 -15
- data/lib/{resources → inspec/resources}/firewalld.rb +26 -26
- data/lib/{resources → inspec/resources}/gem.rb +12 -12
- data/lib/{resources → inspec/resources}/groups.rb +28 -27
- data/lib/{resources → inspec/resources}/grub_conf.rb +46 -48
- data/lib/{resources → inspec/resources}/host.rb +31 -29
- data/lib/{resources → inspec/resources}/http.rb +24 -24
- data/lib/{resources → inspec/resources}/iis_app.rb +6 -7
- data/lib/{resources → inspec/resources}/iis_app_pool.rb +21 -19
- data/lib/{resources → inspec/resources}/iis_site.rb +17 -15
- data/lib/{resources → inspec/resources}/inetd_conf.rb +9 -10
- data/lib/{resources → inspec/resources}/ini.rb +7 -8
- data/lib/{resources → inspec/resources}/interface.rb +30 -30
- data/lib/{resources → inspec/resources}/iptables.rb +8 -8
- data/lib/{resources → inspec/resources}/json.rb +8 -10
- data/lib/{resources → inspec/resources}/kernel_module.rb +15 -15
- data/lib/{resources → inspec/resources}/kernel_parameter.rb +8 -8
- data/lib/{resources → inspec/resources}/key_rsa.rb +8 -10
- data/lib/{resources → inspec/resources}/ksh.rb +6 -8
- data/lib/{resources → inspec/resources}/limits_conf.rb +8 -9
- data/lib/{resources/login_def.rb → inspec/resources/login_defs.rb} +9 -10
- data/lib/{resources → inspec/resources}/mount.rb +6 -8
- data/lib/{resources → inspec/resources}/mssql_session.rb +16 -18
- data/lib/inspec/resources/mysql.rb +81 -0
- data/lib/{resources → inspec/resources}/mysql_conf.rb +13 -14
- data/lib/{resources → inspec/resources}/mysql_session.rb +16 -16
- data/lib/{resources → inspec/resources}/nginx.rb +16 -17
- data/lib/{resources → inspec/resources}/nginx_conf.rb +26 -27
- data/lib/{resources → inspec/resources}/npm.rb +9 -10
- data/lib/{resources → inspec/resources}/ntp_conf.rb +9 -10
- data/lib/{resources → inspec/resources}/oneget.rb +8 -8
- data/lib/{resources → inspec/resources}/oracledb_session.rb +33 -34
- data/lib/{resources → inspec/resources}/os.rb +6 -8
- data/lib/{resources → inspec/resources}/os_env.rb +11 -12
- data/lib/{resources → inspec/resources}/package.rb +66 -65
- data/lib/{resources → inspec/resources}/packages.rb +13 -13
- data/lib/{resources → inspec/resources}/parse_config.rb +8 -8
- data/lib/{resources → inspec/resources}/passwd.rb +18 -19
- data/lib/{resources → inspec/resources}/pip.rb +19 -19
- data/lib/{resources → inspec/resources}/platform.rb +9 -11
- data/lib/{resources → inspec/resources}/port.rb +134 -136
- data/lib/{resources → inspec/resources}/postgres.rb +40 -32
- data/lib/{resources → inspec/resources}/postgres_conf.rb +17 -17
- data/lib/{resources → inspec/resources}/postgres_hba_conf.rb +21 -23
- data/lib/{resources → inspec/resources}/postgres_ident_conf.rb +12 -14
- data/lib/{resources → inspec/resources}/postgres_session.rb +8 -9
- data/lib/{resources → inspec/resources}/powershell.rb +17 -13
- data/lib/{resources → inspec/resources}/processes.rb +29 -29
- data/lib/{resources/rabbitmq_conf.rb → inspec/resources/rabbitmq_config.rb} +10 -11
- data/lib/{resources → inspec/resources}/registry_key.rb +14 -14
- data/lib/inspec/resources/script.rb +1 -0
- data/lib/{resources → inspec/resources}/security_identifier.rb +11 -10
- data/lib/{resources → inspec/resources}/security_policy.rb +59 -58
- data/lib/{resources → inspec/resources}/service.rb +74 -75
- data/lib/{resources → inspec/resources}/shadow.rb +44 -45
- data/lib/{resources/ssh_conf.rb → inspec/resources/ssh_config.rb} +16 -17
- data/lib/{resources → inspec/resources}/ssl.rb +28 -29
- data/lib/inspec/resources/sys_info.rb +30 -0
- data/lib/{resources → inspec/resources}/toml.rb +5 -7
- data/lib/{resources → inspec/resources}/users.rb +65 -65
- data/lib/{resources → inspec/resources}/vbscript.rb +8 -9
- data/lib/{resources → inspec/resources}/virtualization.rb +60 -62
- data/lib/{resources → inspec/resources}/windows_feature.rb +9 -9
- data/lib/{resources → inspec/resources}/windows_hotfix.rb +5 -5
- data/lib/{resources → inspec/resources}/windows_task.rb +16 -15
- data/lib/{resources → inspec/resources}/wmi.rb +7 -8
- data/lib/{resources → inspec/resources}/x509_certificate.rb +9 -11
- data/lib/{resources/xinetd.rb → inspec/resources/xinetd_conf.rb} +27 -29
- data/lib/{resources → inspec/resources}/xml.rb +7 -7
- data/lib/{resources → inspec/resources}/yaml.rb +5 -6
- data/lib/{resources → inspec/resources}/yum.rb +10 -10
- data/lib/{resources → inspec/resources}/zfs_dataset.rb +6 -6
- data/lib/{resources → inspec/resources}/zfs_pool.rb +4 -4
- data/lib/inspec/rspec_extensions.rb +24 -8
- data/lib/inspec/rule.rb +14 -15
- data/lib/inspec/runner.rb +28 -28
- data/lib/inspec/runner_mock.rb +1 -5
- data/lib/inspec/runner_rspec.rb +18 -20
- data/lib/inspec/runtime_profile.rb +2 -5
- data/lib/inspec/schema.rb +142 -143
- data/lib/inspec/secrets.rb +3 -7
- data/lib/inspec/secrets/yaml.rb +3 -5
- data/lib/inspec/shell.rb +11 -15
- data/lib/inspec/shell_detector.rb +6 -7
- data/lib/inspec/source_reader.rb +4 -8
- data/lib/inspec/ui.rb +33 -39
- data/lib/inspec/ui_table_helper.rb +12 -0
- data/lib/{utils → inspec/utils}/command_wrapper.rb +4 -8
- data/lib/{utils → inspec/utils}/convert.rb +0 -4
- data/lib/{utils → inspec/utils}/database_helpers.rb +4 -8
- data/lib/inspec/utils/deprecation.rb +6 -0
- data/lib/{utils → inspec/utils}/deprecation/config_file.rb +19 -19
- data/lib/{utils → inspec/utils}/deprecation/deprecator.rb +12 -12
- data/lib/{utils → inspec/utils}/deprecation/errors.rb +1 -1
- data/lib/{utils → inspec/utils}/deprecation/global_method.rb +2 -2
- data/lib/{utils → inspec/utils}/enumerable_delegation.rb +0 -2
- data/lib/{utils → inspec/utils}/erlang_parser.rb +61 -65
- data/lib/{utils → inspec/utils}/file_reader.rb +1 -2
- data/lib/{utils → inspec/utils}/filter.rb +30 -33
- data/lib/{utils → inspec/utils}/filter_array.rb +0 -2
- data/lib/{utils → inspec/utils}/find_files.rb +9 -12
- data/lib/{utils → inspec/utils}/hash.rb +1 -5
- data/lib/inspec/utils/json_log.rb +15 -0
- data/lib/inspec/utils/latest_version.rb +13 -0
- data/lib/{utils → inspec/utils}/modulator.rb +0 -3
- data/lib/{utils → inspec/utils}/nginx_parser.rb +31 -35
- data/lib/{utils → inspec/utils}/object_traversal.rb +0 -3
- data/lib/{utils → inspec/utils}/parser.rb +45 -45
- data/lib/{utils → inspec/utils}/pkey_reader.rb +4 -2
- data/lib/{utils → inspec/utils}/simpleconfig.rb +8 -10
- data/lib/{utils → inspec/utils}/spdx.rb +1 -4
- data/lib/{utils → inspec/utils}/spdx.txt +0 -0
- data/lib/inspec/utils/telemetry.rb +3 -3
- data/lib/inspec/utils/telemetry/collector.rb +30 -9
- data/lib/inspec/utils/telemetry/data_series.rb +3 -1
- data/lib/inspec/utils/telemetry/global_methods.rb +1 -1
- data/lib/inspec/version.rb +1 -1
- data/lib/matchers/matchers.rb +22 -25
- data/lib/plugins/inspec-artifact/lib/inspec-artifact.rb +1 -1
- data/lib/plugins/inspec-artifact/lib/inspec-artifact/base.rb +52 -45
- data/lib/plugins/inspec-artifact/lib/inspec-artifact/cli.rb +18 -16
- data/lib/plugins/inspec-compliance/lib/inspec-compliance.rb +1 -1
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/api.rb +73 -73
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/api/login.rb +66 -62
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/cli.rb +59 -57
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/configuration.rb +11 -11
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/http.rb +20 -22
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/support.rb +2 -4
- data/lib/plugins/inspec-compliance/lib/inspec-compliance/target.rb +30 -27
- data/lib/plugins/inspec-habitat/Berksfile +2 -2
- data/lib/plugins/inspec-habitat/lib/inspec-habitat.rb +1 -1
- data/lib/plugins/inspec-habitat/lib/inspec-habitat/cli.rb +15 -13
- data/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb +64 -63
- data/lib/plugins/inspec-habitat/templates/habitat/hooks/run.erb +3 -3
- data/lib/plugins/inspec-habitat/templates/habitat/plan.sh.erb +11 -11
- data/lib/plugins/inspec-init/lib/inspec-init.rb +1 -1
- data/lib/plugins/inspec-init/lib/inspec-init/cli.rb +6 -8
- data/lib/plugins/inspec-init/lib/inspec-init/cli_plugin.rb +72 -74
- data/lib/plugins/inspec-init/lib/inspec-init/cli_profile.rb +9 -11
- data/lib/plugins/inspec-init/lib/inspec-init/renderer.rb +4 -4
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/Gemfile +0 -1
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/inspec-plugin-template.gemspec +0 -2
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template.rb +0 -2
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/cli_command.rb +0 -2
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/plugin.rb +0 -2
- data/lib/plugins/inspec-init/templates/plugins/inspec-plugin-template/lib/inspec-plugin-template/version.rb +0 -2
- data/lib/plugins/inspec-init/templates/profiles/os/controls/example.rb +6 -7
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli.rb +1 -2
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli/cli_command.rb +72 -70
- data/lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli/plugin.rb +1 -1
- data/lib/plugins/shared/core_plugin_test_helper.rb +43 -38
- data/lib/source_readers/flat.rb +6 -10
- data/lib/source_readers/inspec.rb +8 -12
- metadata +139 -140
- data/lib/resources/mysql.rb +0 -82
- data/lib/resources/sys_info.rb +0 -28
- data/lib/utils/deprecation.rb +0 -6
- data/lib/utils/json_log.rb +0 -18
- data/lib/utils/latest_version.rb +0 -22
@@ -1,23 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require 'minitest/unit'
|
5
|
-
require 'minitest/pride'
|
6
|
-
require 'minitest/spec'
|
1
|
+
# Load test harness - Minitest
|
2
|
+
require "minitest/autorun"
|
3
|
+
require "minitest/pride"
|
7
4
|
|
8
5
|
# Data formats commonly used in testing
|
9
|
-
require
|
10
|
-
require
|
6
|
+
require "json"
|
7
|
+
require "ostruct"
|
11
8
|
|
12
9
|
# Utilities often needed
|
13
|
-
require
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require
|
10
|
+
require "fileutils"
|
11
|
+
require "tmpdir"
|
12
|
+
require "pathname"
|
13
|
+
require "forwardable"
|
14
|
+
|
15
|
+
require "inspec/plugin/v2"
|
17
16
|
|
18
|
-
# Configure
|
17
|
+
# Configure Minitest to expose things like `let`
|
19
18
|
class Module
|
20
|
-
include Minitest::Spec::DSL
|
19
|
+
include Minitest::Spec::DSL # TODO: NO! remove this!
|
21
20
|
end
|
22
21
|
|
23
22
|
module Inspec
|
@@ -38,29 +37,35 @@ module Inspec
|
|
38
37
|
end
|
39
38
|
|
40
39
|
module CorePluginBaseHelper
|
41
|
-
|
42
|
-
|
43
|
-
let(:
|
44
|
-
let(:
|
45
|
-
let(:
|
40
|
+
libdir = File.expand_path "lib"
|
41
|
+
|
42
|
+
let(:repo_path) { File.expand_path(File.join(__FILE__, "..", "..", "..", "..")) }
|
43
|
+
let(:inspec_path) { File.join(repo_path, "inspec-bin", "bin", "inspec") }
|
44
|
+
let(:exec_inspec) { [Gem.ruby, "-I#{libdir}", inspec_path].join " " }
|
45
|
+
let(:core_mock_path) { File.join(repo_path, "test", "unit", "mock") }
|
46
|
+
let(:core_fixture_plugins_path) { File.join(core_mock_path, "plugins") }
|
47
|
+
let(:core_config_dir_path) { File.join(core_mock_path, "config_dirs") }
|
46
48
|
|
47
49
|
let(:registry) { Inspec::Plugin::V2::Registry.instance }
|
48
50
|
end
|
49
51
|
|
52
|
+
require "functional/helper"
|
53
|
+
|
50
54
|
module CorePluginFunctionalHelper
|
51
55
|
include CorePluginBaseHelper
|
56
|
+
include FunctionalHelper
|
52
57
|
|
53
|
-
require
|
54
|
-
TRAIN_CONNECTION = Train.create(
|
58
|
+
require "train"
|
59
|
+
TRAIN_CONNECTION = Train.create("local", command_runner: :generic).connection
|
55
60
|
|
56
61
|
def run_inspec_process(command_line, opts = {})
|
57
|
-
prefix =
|
62
|
+
prefix = ""
|
58
63
|
if opts.key?(:prefix)
|
59
64
|
prefix = opts[:prefix]
|
60
65
|
elsif opts.key?(:env)
|
61
|
-
prefix = opts[:env].to_a.map { |assignment| "#{assignment[0]}=#{assignment[1]}" }.join(
|
66
|
+
prefix = opts[:env].to_a.map { |assignment| "#{assignment[0]}=#{assignment[1]}" }.join(" ")
|
62
67
|
end
|
63
|
-
Inspec::FuncTestRunResult.new(TRAIN_CONNECTION.run_command("#{prefix} #{
|
68
|
+
Inspec::FuncTestRunResult.new(TRAIN_CONNECTION.run_command("#{prefix} #{exec_inspec} #{command_line}"))
|
64
69
|
end
|
65
70
|
|
66
71
|
# This helper does some fancy footwork to make InSpec think a plugin
|
@@ -79,7 +84,7 @@ module CorePluginFunctionalHelper
|
|
79
84
|
|
80
85
|
# If it looks like it is a core plugin under test, don't add it to the plugin file
|
81
86
|
# since the loader will auto-load it anyway
|
82
|
-
if plugin_path.include?(
|
87
|
+
if plugin_path.include?("lib/plugins/inspec-")
|
83
88
|
plugin_file_data = __make_empty_plugin_file_data_structure
|
84
89
|
else
|
85
90
|
plugin_file_data = __make_plugin_file_data_structure_with_path(plugin_path)
|
@@ -87,11 +92,11 @@ module CorePluginFunctionalHelper
|
|
87
92
|
|
88
93
|
Dir.mktmpdir do |tmp_dir|
|
89
94
|
opts[:pre_run]&.call(plugin_file_data, tmp_dir)
|
90
|
-
plugin_file_path = File.join(tmp_dir,
|
95
|
+
plugin_file_path = File.join(tmp_dir, "plugins.json")
|
91
96
|
# HACK: If the block cleared the hash, take that to mean it will provide a plugins.json file of its own.
|
92
97
|
File.write(plugin_file_path, JSON.generate(plugin_file_data)) unless plugin_file_data.empty?
|
93
98
|
opts[:env] ||= {}
|
94
|
-
opts[:env][
|
99
|
+
opts[:env]["INSPEC_CONFIG_DIR"] = tmp_dir
|
95
100
|
run_result = run_inspec_process(command_line, opts)
|
96
101
|
|
97
102
|
# Read the resulting plugins.json into memory, if any
|
@@ -111,27 +116,27 @@ module CorePluginFunctionalHelper
|
|
111
116
|
# We want:
|
112
117
|
# /Users/cwolfe/sandbox/inspec-resource-lister/lib/inspec-resource-lister.rb
|
113
118
|
cursor = caller_path
|
114
|
-
until cursor.basename.to_s ==
|
119
|
+
until cursor.basename.to_s == "test" && cursor.parent.basename.to_s =~ /^(inspec|train)-/
|
115
120
|
cursor = cursor.parent
|
116
121
|
break if cursor.nil?
|
117
122
|
end
|
118
|
-
raise
|
123
|
+
raise "Could not comprehend plugin project directory structure" if cursor.nil?
|
119
124
|
|
120
125
|
project_dir = cursor.parent
|
121
126
|
plugin_name = project_dir.basename
|
122
|
-
entry_point = File.join(project_dir.to_s,
|
123
|
-
raise
|
127
|
+
entry_point = File.join(project_dir.to_s, "lib", plugin_name.to_s + ".rb")
|
128
|
+
raise "Could not find plugin entry point" unless File.exist?(entry_point)
|
124
129
|
entry_point
|
125
130
|
end
|
126
131
|
|
127
132
|
def __make_plugin_file_data_structure_with_path(path)
|
128
133
|
# TODO: dry this up, refs #3350
|
129
|
-
plugin_name = File.basename(path,
|
134
|
+
plugin_name = File.basename(path, ".rb")
|
130
135
|
data = __make_empty_plugin_file_data_structure
|
131
|
-
data[
|
132
|
-
|
133
|
-
|
134
|
-
|
136
|
+
data["plugins"] << {
|
137
|
+
"name" => plugin_name,
|
138
|
+
"installation_type" => "path",
|
139
|
+
"installation_path" => path,
|
135
140
|
}
|
136
141
|
data
|
137
142
|
end
|
@@ -139,8 +144,8 @@ module CorePluginFunctionalHelper
|
|
139
144
|
def __make_empty_plugin_file_data_structure
|
140
145
|
# TODO: dry this up, refs #3350
|
141
146
|
{
|
142
|
-
|
143
|
-
|
147
|
+
"plugins_config_version" => "1.0.0",
|
148
|
+
"plugins" => [],
|
144
149
|
}
|
145
150
|
end
|
146
151
|
end
|
data/lib/source_readers/flat.rb
CHANGED
@@ -1,21 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# author: Christoph Hartmann
|
4
|
-
|
5
|
-
require 'inspec/fetcher'
|
6
|
-
require 'inspec/metadata'
|
1
|
+
require "inspec/fetcher"
|
2
|
+
require "inspec/metadata"
|
7
3
|
|
8
4
|
module SourceReaders
|
9
5
|
class Flat < Inspec.source_reader(1)
|
10
|
-
name
|
6
|
+
name "flat"
|
11
7
|
priority 5
|
12
8
|
|
13
9
|
def self.resolve(target)
|
14
10
|
# TODO: eventually remove the metadata.rb exception here
|
15
11
|
# when we have fully phased out metadata.rb in 1.0
|
16
|
-
files = target.files.find_all
|
17
|
-
x.end_with?(
|
18
|
-
|
12
|
+
files = target.files.find_all do |x|
|
13
|
+
x.end_with?(".rb") && !x.include?("/") && x != "metadata.rb"
|
14
|
+
end
|
19
15
|
return nil if files.empty?
|
20
16
|
new(target, files)
|
21
17
|
end
|
@@ -1,17 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# author: Christoph Hartmann
|
4
|
-
|
5
|
-
require 'inspec/fetcher'
|
6
|
-
require 'inspec/metadata'
|
1
|
+
require "inspec/fetcher"
|
2
|
+
require "inspec/metadata"
|
7
3
|
|
8
4
|
module SourceReaders
|
9
5
|
class InspecReader < Inspec.source_reader(1)
|
10
|
-
name
|
6
|
+
name "inspec"
|
11
7
|
priority 10
|
12
8
|
|
13
9
|
def self.resolve(target)
|
14
|
-
return new(target,
|
10
|
+
return new(target, "inspec.yml") if target.files.include?("inspec.yml")
|
15
11
|
nil
|
16
12
|
end
|
17
13
|
|
@@ -35,7 +31,7 @@ module SourceReaders
|
|
35
31
|
Inspec::Metadata.from_ref(
|
36
32
|
metadata_source,
|
37
33
|
@target.read(metadata_source),
|
38
|
-
nil
|
34
|
+
nil
|
39
35
|
)
|
40
36
|
rescue Psych::SyntaxError => e
|
41
37
|
raise "Unable to parse inspec.yml: line #{e.line}, #{e.problem} #{e.context}"
|
@@ -45,21 +41,21 @@ module SourceReaders
|
|
45
41
|
|
46
42
|
def load_tests
|
47
43
|
tests = @target.files.find_all do |path|
|
48
|
-
path.start_with?(
|
44
|
+
path.start_with?("controls") && path.end_with?(".rb")
|
49
45
|
end
|
50
46
|
Hash[tests.map { |x| [x, @target.read(x)] }.delete_if { |_file, contents| contents.nil? }]
|
51
47
|
end
|
52
48
|
|
53
49
|
def load_libs
|
54
50
|
tests = @target.files.find_all do |path|
|
55
|
-
path.start_with?(
|
51
|
+
path.start_with?("libraries") && path.end_with?(".rb")
|
56
52
|
end
|
57
53
|
Hash[tests.map { |x| [x, @target.read(x)] }.delete_if { |_file, contents| contents.nil? }]
|
58
54
|
end
|
59
55
|
|
60
56
|
def load_data_files
|
61
57
|
files = @target.files.find_all do |path|
|
62
|
-
path.start_with?(
|
58
|
+
path.start_with?("files" + File::SEPARATOR)
|
63
59
|
end
|
64
60
|
Hash[files.map { |x| [x, @target.read(x)] }.delete_if { |_file, contents| contents.nil? }]
|
65
61
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3
|
4
|
+
version: 4.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train-core
|
@@ -59,25 +59,19 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0.20'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name: json
|
62
|
+
name: json-schema
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '1.8'
|
68
|
-
- - "<"
|
65
|
+
- - "~>"
|
69
66
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
67
|
+
version: '2.8'
|
71
68
|
type: :runtime
|
72
69
|
prerelease: false
|
73
70
|
version_requirements: !ruby/object:Gem::Requirement
|
74
71
|
requirements:
|
75
|
-
- - "
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '1.8'
|
78
|
-
- - "<"
|
72
|
+
- - "~>"
|
79
73
|
- !ruby/object:Gem::Version
|
80
|
-
version: '
|
74
|
+
version: '2.8'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
76
|
name: method_source
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -402,6 +396,7 @@ files:
|
|
402
396
|
- lib/inspec/dependencies/requirement.rb
|
403
397
|
- lib/inspec/dependencies/resolver.rb
|
404
398
|
- lib/inspec/describe.rb
|
399
|
+
- lib/inspec/dist.rb
|
405
400
|
- lib/inspec/dsl.rb
|
406
401
|
- lib/inspec/dsl_shared.rb
|
407
402
|
- lib/inspec/env_printer.rb
|
@@ -449,6 +444,7 @@ files:
|
|
449
444
|
- lib/inspec/plugin/v2/plugin_base.rb
|
450
445
|
- lib/inspec/plugin/v2/plugin_types/cli.rb
|
451
446
|
- lib/inspec/plugin/v2/plugin_types/dsl.rb
|
447
|
+
- lib/inspec/plugin/v2/plugin_types/input.rb
|
452
448
|
- lib/inspec/plugin/v2/plugin_types/mock.rb
|
453
449
|
- lib/inspec/plugin/v2/registry.rb
|
454
450
|
- lib/inspec/plugin/v2/status.rb
|
@@ -467,6 +463,110 @@ files:
|
|
467
463
|
- lib/inspec/reporters/yaml.rb
|
468
464
|
- lib/inspec/require_loader.rb
|
469
465
|
- lib/inspec/resource.rb
|
466
|
+
- lib/inspec/resources.rb
|
467
|
+
- lib/inspec/resources/aide_conf.rb
|
468
|
+
- lib/inspec/resources/apache.rb
|
469
|
+
- lib/inspec/resources/apache_conf.rb
|
470
|
+
- lib/inspec/resources/apt.rb
|
471
|
+
- lib/inspec/resources/audit_policy.rb
|
472
|
+
- lib/inspec/resources/auditd.rb
|
473
|
+
- lib/inspec/resources/auditd_conf.rb
|
474
|
+
- lib/inspec/resources/bash.rb
|
475
|
+
- lib/inspec/resources/bond.rb
|
476
|
+
- lib/inspec/resources/bridge.rb
|
477
|
+
- lib/inspec/resources/chocolatey_package.rb
|
478
|
+
- lib/inspec/resources/command.rb
|
479
|
+
- lib/inspec/resources/cpan.rb
|
480
|
+
- lib/inspec/resources/cran.rb
|
481
|
+
- lib/inspec/resources/crontab.rb
|
482
|
+
- lib/inspec/resources/csv.rb
|
483
|
+
- lib/inspec/resources/dh_params.rb
|
484
|
+
- lib/inspec/resources/directory.rb
|
485
|
+
- lib/inspec/resources/docker.rb
|
486
|
+
- lib/inspec/resources/docker_container.rb
|
487
|
+
- lib/inspec/resources/docker_image.rb
|
488
|
+
- lib/inspec/resources/docker_object.rb
|
489
|
+
- lib/inspec/resources/docker_plugin.rb
|
490
|
+
- lib/inspec/resources/docker_service.rb
|
491
|
+
- lib/inspec/resources/elasticsearch.rb
|
492
|
+
- lib/inspec/resources/etc_fstab.rb
|
493
|
+
- lib/inspec/resources/etc_group.rb
|
494
|
+
- lib/inspec/resources/etc_hosts.rb
|
495
|
+
- lib/inspec/resources/etc_hosts_allow_deny.rb
|
496
|
+
- lib/inspec/resources/file.rb
|
497
|
+
- lib/inspec/resources/filesystem.rb
|
498
|
+
- lib/inspec/resources/firewalld.rb
|
499
|
+
- lib/inspec/resources/gem.rb
|
500
|
+
- lib/inspec/resources/groups.rb
|
501
|
+
- lib/inspec/resources/grub_conf.rb
|
502
|
+
- lib/inspec/resources/host.rb
|
503
|
+
- lib/inspec/resources/http.rb
|
504
|
+
- lib/inspec/resources/iis_app.rb
|
505
|
+
- lib/inspec/resources/iis_app_pool.rb
|
506
|
+
- lib/inspec/resources/iis_site.rb
|
507
|
+
- lib/inspec/resources/inetd_conf.rb
|
508
|
+
- lib/inspec/resources/ini.rb
|
509
|
+
- lib/inspec/resources/interface.rb
|
510
|
+
- lib/inspec/resources/iptables.rb
|
511
|
+
- lib/inspec/resources/json.rb
|
512
|
+
- lib/inspec/resources/kernel_module.rb
|
513
|
+
- lib/inspec/resources/kernel_parameter.rb
|
514
|
+
- lib/inspec/resources/key_rsa.rb
|
515
|
+
- lib/inspec/resources/ksh.rb
|
516
|
+
- lib/inspec/resources/limits_conf.rb
|
517
|
+
- lib/inspec/resources/login_defs.rb
|
518
|
+
- lib/inspec/resources/mount.rb
|
519
|
+
- lib/inspec/resources/mssql_session.rb
|
520
|
+
- lib/inspec/resources/mysql.rb
|
521
|
+
- lib/inspec/resources/mysql_conf.rb
|
522
|
+
- lib/inspec/resources/mysql_session.rb
|
523
|
+
- lib/inspec/resources/nginx.rb
|
524
|
+
- lib/inspec/resources/nginx_conf.rb
|
525
|
+
- lib/inspec/resources/npm.rb
|
526
|
+
- lib/inspec/resources/ntp_conf.rb
|
527
|
+
- lib/inspec/resources/oneget.rb
|
528
|
+
- lib/inspec/resources/oracledb_session.rb
|
529
|
+
- lib/inspec/resources/os.rb
|
530
|
+
- lib/inspec/resources/os_env.rb
|
531
|
+
- lib/inspec/resources/package.rb
|
532
|
+
- lib/inspec/resources/packages.rb
|
533
|
+
- lib/inspec/resources/parse_config.rb
|
534
|
+
- lib/inspec/resources/passwd.rb
|
535
|
+
- lib/inspec/resources/pip.rb
|
536
|
+
- lib/inspec/resources/platform.rb
|
537
|
+
- lib/inspec/resources/port.rb
|
538
|
+
- lib/inspec/resources/postgres.rb
|
539
|
+
- lib/inspec/resources/postgres_conf.rb
|
540
|
+
- lib/inspec/resources/postgres_hba_conf.rb
|
541
|
+
- lib/inspec/resources/postgres_ident_conf.rb
|
542
|
+
- lib/inspec/resources/postgres_session.rb
|
543
|
+
- lib/inspec/resources/powershell.rb
|
544
|
+
- lib/inspec/resources/processes.rb
|
545
|
+
- lib/inspec/resources/rabbitmq_config.rb
|
546
|
+
- lib/inspec/resources/registry_key.rb
|
547
|
+
- lib/inspec/resources/script.rb
|
548
|
+
- lib/inspec/resources/security_identifier.rb
|
549
|
+
- lib/inspec/resources/security_policy.rb
|
550
|
+
- lib/inspec/resources/service.rb
|
551
|
+
- lib/inspec/resources/shadow.rb
|
552
|
+
- lib/inspec/resources/ssh_config.rb
|
553
|
+
- lib/inspec/resources/ssl.rb
|
554
|
+
- lib/inspec/resources/sys_info.rb
|
555
|
+
- lib/inspec/resources/toml.rb
|
556
|
+
- lib/inspec/resources/users.rb
|
557
|
+
- lib/inspec/resources/vbscript.rb
|
558
|
+
- lib/inspec/resources/virtualization.rb
|
559
|
+
- lib/inspec/resources/windows_feature.rb
|
560
|
+
- lib/inspec/resources/windows_hotfix.rb
|
561
|
+
- lib/inspec/resources/windows_task.rb
|
562
|
+
- lib/inspec/resources/wmi.rb
|
563
|
+
- lib/inspec/resources/x509_certificate.rb
|
564
|
+
- lib/inspec/resources/xinetd_conf.rb
|
565
|
+
- lib/inspec/resources/xml.rb
|
566
|
+
- lib/inspec/resources/yaml.rb
|
567
|
+
- lib/inspec/resources/yum.rb
|
568
|
+
- lib/inspec/resources/zfs_dataset.rb
|
569
|
+
- lib/inspec/resources/zfs_pool.rb
|
470
570
|
- lib/inspec/rspec_extensions.rb
|
471
571
|
- lib/inspec/rule.rb
|
472
572
|
- lib/inspec/runner.rb
|
@@ -480,6 +580,32 @@ files:
|
|
480
580
|
- lib/inspec/shell_detector.rb
|
481
581
|
- lib/inspec/source_reader.rb
|
482
582
|
- lib/inspec/ui.rb
|
583
|
+
- lib/inspec/ui_table_helper.rb
|
584
|
+
- lib/inspec/utils/command_wrapper.rb
|
585
|
+
- lib/inspec/utils/convert.rb
|
586
|
+
- lib/inspec/utils/database_helpers.rb
|
587
|
+
- lib/inspec/utils/deprecation.rb
|
588
|
+
- lib/inspec/utils/deprecation/config_file.rb
|
589
|
+
- lib/inspec/utils/deprecation/deprecator.rb
|
590
|
+
- lib/inspec/utils/deprecation/errors.rb
|
591
|
+
- lib/inspec/utils/deprecation/global_method.rb
|
592
|
+
- lib/inspec/utils/enumerable_delegation.rb
|
593
|
+
- lib/inspec/utils/erlang_parser.rb
|
594
|
+
- lib/inspec/utils/file_reader.rb
|
595
|
+
- lib/inspec/utils/filter.rb
|
596
|
+
- lib/inspec/utils/filter_array.rb
|
597
|
+
- lib/inspec/utils/find_files.rb
|
598
|
+
- lib/inspec/utils/hash.rb
|
599
|
+
- lib/inspec/utils/json_log.rb
|
600
|
+
- lib/inspec/utils/latest_version.rb
|
601
|
+
- lib/inspec/utils/modulator.rb
|
602
|
+
- lib/inspec/utils/nginx_parser.rb
|
603
|
+
- lib/inspec/utils/object_traversal.rb
|
604
|
+
- lib/inspec/utils/parser.rb
|
605
|
+
- lib/inspec/utils/pkey_reader.rb
|
606
|
+
- lib/inspec/utils/simpleconfig.rb
|
607
|
+
- lib/inspec/utils/spdx.rb
|
608
|
+
- lib/inspec/utils/spdx.txt
|
483
609
|
- lib/inspec/utils/telemetry.rb
|
484
610
|
- lib/inspec/utils/telemetry/collector.rb
|
485
611
|
- lib/inspec/utils/telemetry/data_series.rb
|
@@ -535,135 +661,8 @@ files:
|
|
535
661
|
- lib/plugins/inspec-plugin-manager-cli/lib/inspec-plugin-manager-cli/plugin.rb
|
536
662
|
- lib/plugins/shared/core_plugin_test_helper.rb
|
537
663
|
- lib/plugins/things-for-train-integration.rb
|
538
|
-
- lib/resources/aide_conf.rb
|
539
|
-
- lib/resources/apache.rb
|
540
|
-
- lib/resources/apache_conf.rb
|
541
|
-
- lib/resources/apt.rb
|
542
|
-
- lib/resources/audit_policy.rb
|
543
|
-
- lib/resources/auditd.rb
|
544
|
-
- lib/resources/auditd_conf.rb
|
545
|
-
- lib/resources/bash.rb
|
546
|
-
- lib/resources/bond.rb
|
547
|
-
- lib/resources/bridge.rb
|
548
|
-
- lib/resources/chocolatey_package.rb
|
549
|
-
- lib/resources/command.rb
|
550
|
-
- lib/resources/cpan.rb
|
551
|
-
- lib/resources/cran.rb
|
552
|
-
- lib/resources/crontab.rb
|
553
|
-
- lib/resources/csv.rb
|
554
|
-
- lib/resources/dh_params.rb
|
555
|
-
- lib/resources/directory.rb
|
556
|
-
- lib/resources/docker.rb
|
557
|
-
- lib/resources/docker_container.rb
|
558
|
-
- lib/resources/docker_image.rb
|
559
|
-
- lib/resources/docker_object.rb
|
560
|
-
- lib/resources/docker_plugin.rb
|
561
|
-
- lib/resources/docker_service.rb
|
562
|
-
- lib/resources/elasticsearch.rb
|
563
|
-
- lib/resources/etc_fstab.rb
|
564
|
-
- lib/resources/etc_group.rb
|
565
|
-
- lib/resources/etc_hosts.rb
|
566
|
-
- lib/resources/etc_hosts_allow_deny.rb
|
567
|
-
- lib/resources/file.rb
|
568
|
-
- lib/resources/filesystem.rb
|
569
|
-
- lib/resources/firewalld.rb
|
570
|
-
- lib/resources/gem.rb
|
571
|
-
- lib/resources/groups.rb
|
572
|
-
- lib/resources/grub_conf.rb
|
573
|
-
- lib/resources/host.rb
|
574
|
-
- lib/resources/http.rb
|
575
|
-
- lib/resources/iis_app.rb
|
576
|
-
- lib/resources/iis_app_pool.rb
|
577
|
-
- lib/resources/iis_site.rb
|
578
|
-
- lib/resources/inetd_conf.rb
|
579
|
-
- lib/resources/ini.rb
|
580
|
-
- lib/resources/interface.rb
|
581
|
-
- lib/resources/iptables.rb
|
582
|
-
- lib/resources/json.rb
|
583
|
-
- lib/resources/kernel_module.rb
|
584
|
-
- lib/resources/kernel_parameter.rb
|
585
|
-
- lib/resources/key_rsa.rb
|
586
|
-
- lib/resources/ksh.rb
|
587
|
-
- lib/resources/limits_conf.rb
|
588
|
-
- lib/resources/login_def.rb
|
589
|
-
- lib/resources/mount.rb
|
590
|
-
- lib/resources/mssql_session.rb
|
591
|
-
- lib/resources/mysql.rb
|
592
|
-
- lib/resources/mysql_conf.rb
|
593
|
-
- lib/resources/mysql_session.rb
|
594
|
-
- lib/resources/nginx.rb
|
595
|
-
- lib/resources/nginx_conf.rb
|
596
|
-
- lib/resources/npm.rb
|
597
|
-
- lib/resources/ntp_conf.rb
|
598
|
-
- lib/resources/oneget.rb
|
599
|
-
- lib/resources/oracledb_session.rb
|
600
|
-
- lib/resources/os.rb
|
601
|
-
- lib/resources/os_env.rb
|
602
|
-
- lib/resources/package.rb
|
603
|
-
- lib/resources/packages.rb
|
604
|
-
- lib/resources/parse_config.rb
|
605
|
-
- lib/resources/passwd.rb
|
606
|
-
- lib/resources/pip.rb
|
607
|
-
- lib/resources/platform.rb
|
608
|
-
- lib/resources/port.rb
|
609
|
-
- lib/resources/postgres.rb
|
610
|
-
- lib/resources/postgres_conf.rb
|
611
|
-
- lib/resources/postgres_hba_conf.rb
|
612
|
-
- lib/resources/postgres_ident_conf.rb
|
613
|
-
- lib/resources/postgres_session.rb
|
614
|
-
- lib/resources/powershell.rb
|
615
|
-
- lib/resources/processes.rb
|
616
|
-
- lib/resources/rabbitmq_conf.rb
|
617
|
-
- lib/resources/registry_key.rb
|
618
|
-
- lib/resources/security_identifier.rb
|
619
|
-
- lib/resources/security_policy.rb
|
620
|
-
- lib/resources/service.rb
|
621
|
-
- lib/resources/shadow.rb
|
622
|
-
- lib/resources/ssh_conf.rb
|
623
|
-
- lib/resources/ssl.rb
|
624
|
-
- lib/resources/sys_info.rb
|
625
|
-
- lib/resources/toml.rb
|
626
|
-
- lib/resources/users.rb
|
627
|
-
- lib/resources/vbscript.rb
|
628
|
-
- lib/resources/virtualization.rb
|
629
|
-
- lib/resources/windows_feature.rb
|
630
|
-
- lib/resources/windows_hotfix.rb
|
631
|
-
- lib/resources/windows_task.rb
|
632
|
-
- lib/resources/wmi.rb
|
633
|
-
- lib/resources/x509_certificate.rb
|
634
|
-
- lib/resources/xinetd.rb
|
635
|
-
- lib/resources/xml.rb
|
636
|
-
- lib/resources/yaml.rb
|
637
|
-
- lib/resources/yum.rb
|
638
|
-
- lib/resources/zfs_dataset.rb
|
639
|
-
- lib/resources/zfs_pool.rb
|
640
664
|
- lib/source_readers/flat.rb
|
641
665
|
- lib/source_readers/inspec.rb
|
642
|
-
- lib/utils/command_wrapper.rb
|
643
|
-
- lib/utils/convert.rb
|
644
|
-
- lib/utils/database_helpers.rb
|
645
|
-
- lib/utils/deprecation.rb
|
646
|
-
- lib/utils/deprecation/config_file.rb
|
647
|
-
- lib/utils/deprecation/deprecator.rb
|
648
|
-
- lib/utils/deprecation/errors.rb
|
649
|
-
- lib/utils/deprecation/global_method.rb
|
650
|
-
- lib/utils/enumerable_delegation.rb
|
651
|
-
- lib/utils/erlang_parser.rb
|
652
|
-
- lib/utils/file_reader.rb
|
653
|
-
- lib/utils/filter.rb
|
654
|
-
- lib/utils/filter_array.rb
|
655
|
-
- lib/utils/find_files.rb
|
656
|
-
- lib/utils/hash.rb
|
657
|
-
- lib/utils/json_log.rb
|
658
|
-
- lib/utils/latest_version.rb
|
659
|
-
- lib/utils/modulator.rb
|
660
|
-
- lib/utils/nginx_parser.rb
|
661
|
-
- lib/utils/object_traversal.rb
|
662
|
-
- lib/utils/parser.rb
|
663
|
-
- lib/utils/pkey_reader.rb
|
664
|
-
- lib/utils/simpleconfig.rb
|
665
|
-
- lib/utils/spdx.rb
|
666
|
-
- lib/utils/spdx.txt
|
667
666
|
homepage: https://github.com/chef/inspec
|
668
667
|
licenses:
|
669
668
|
- Apache-2.0
|