abide-data-processor 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: 9b34c8ea700003b6bed175a9c803ee51d9e8b3ef5945552da9bbf6cffdc8e74a
4
- data.tar.gz: 93592aa2722ca69519973cac8a310b9d80141a729acf5d63d44de95b73da0204
3
+ metadata.gz: 6ac1b297c18c221a7ed68588b5f19e9cd5dc5b62b97a745d6041acabbb3867ff
4
+ data.tar.gz: 340fc29d78ef0014e94ccdf1a32b7edadc8b2e9653aa1b69a313d785444236cd
5
5
  SHA512:
6
- metadata.gz: a420b94d17d727e13ba44b73eae2cbdf8283b0685eb01992afc559baa27447611b901ce88fc66eb49cb0cf6556988510cfa996b2f4694167a66040049898321e
7
- data.tar.gz: 6a44c40bcfbdd8a3b1ad4e1a27e662b205d5cf929ae1680bf1e65f543d3a674aac341473865f80b1cf7d5d87e3d3aeceb1a41704101780b74dd74a3e154cf63e
6
+ metadata.gz: 718c8e4a751a56e17fd1f170ab41da6e677aa91b5c6cec1e0745ec415bcb25b5d55215b5175107d0503ea819758a23e73b34afbd31a01a96417fe114a44a178b
7
+ data.tar.gz: cd9898b06b1e4296e4e7b4ec4405852639dac5aa2365ec0ecb2fb0d28559078dc7f3ca1365af11af42c7424913ccc70faf6d7b0953d7530fc06e3282152787df
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abide-data-processor (0.1.1)
4
+ abide-data-processor (0.2.1)
5
5
  puppet (>= 6.23)
6
6
 
7
7
  GEM
@@ -89,8 +89,9 @@ module AbideDataProcessor
89
89
  control_params = {}
90
90
  control_data.each do |name, params|
91
91
  name_map = map_for_control_name(name, @control_maps)
92
-
92
+ next if name_map.nil?
93
93
  # Only and ignore list check
94
+ # The name_map that got passed in here is a hash
94
95
  next unless only_and_ignore_check(name, name_map, only, ignore)
95
96
 
96
97
  # Control dependent check
@@ -104,7 +105,7 @@ module AbideDataProcessor
104
105
  end
105
106
  end
106
107
  # Find if there are any custom control configs from the cis.pp based on the control's name and its permutation
107
- customized = find_control_customization(name, name_map[name], control_configs)
108
+ customized = find_control_customization(name, name_map[name], control_configs) # Check for failuer here
108
109
  params.deep_merge!(customized, merge_hash_arrays: true)
109
110
  control_params.deep_merge!(params, merge_hash_arrays: true)
110
111
  end
@@ -158,11 +159,11 @@ module AbideDataProcessor
158
159
  # filter_function
159
160
  # A general function to see if a control name is in a supply list of control name
160
161
  # @param name: The name of the control that we have
161
- # @param name_map: All valid control ID permutation of the param name
162
+ # @param name_map: Hash that contains all valid control ID permutation of the param name
162
163
  # @set_of_control: Either the ignore or the only list to go through
163
164
  # return true if control ID is found in set_of_control
164
165
  def filter_function(name, name_map, set_of_control)
165
- name_list = name_map[name]
166
+ name_list = name_map[name] # Grab the array that contain all valid permutation of the ID
166
167
  return true if set_of_control.include?(name)
167
168
 
168
169
  name_list.each do |n|
@@ -174,7 +175,7 @@ module AbideDataProcessor
174
175
 
175
176
  # only_and_ignore_check
176
177
  # @param name: name of the control to check if it's in either only or ignore list
177
- # @param name_map: the name map of valid ID permutation for the `name` param
178
+ # @param name_map: a hash of the name map of valid ID permutation for the `name` param
178
179
  # @param only: the list of controls that will get enforced only
179
180
  # @param ignore: the list of controls that will be ignored
180
181
  # @return false when control is either not in the only list or is in the ignore list.
@@ -1,3 +1,3 @@
1
1
  module AbideDataProcessor
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abide-data-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - abide-team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet