inspec_tools 1.4.2 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +244 -36
- data/README.md +34 -41
- data/Rakefile +6 -0
- data/exe/inspec_tools +1 -1
- data/lib/data/NIST_Map_02052020_CIS_Controls_Version_7.1_Implementation_Groups_1.2.xlsx +0 -0
- data/lib/data/README.TXT +1 -1
- data/lib/data/attributes.yml +8 -7
- data/lib/happy_mapper_tools/stig_checklist.rb +0 -1
- data/lib/inspec_tools.rb +1 -0
- data/lib/inspec_tools/cli.rb +26 -199
- data/lib/inspec_tools/csv.rb +2 -4
- data/lib/inspec_tools/inspec.rb +2 -2
- data/lib/inspec_tools/pdf.rb +2 -3
- data/lib/inspec_tools/plugin.rb +15 -0
- data/lib/inspec_tools/plugin_cli.rb +275 -0
- data/lib/inspec_tools/summary.rb +1 -1
- data/lib/inspec_tools/version.rb +1 -1
- data/lib/inspec_tools/xccdf.rb +2 -3
- data/lib/inspec_tools/xlsx.rb +117 -0
- data/lib/inspec_tools_plugin.rb +7 -0
- data/lib/utilities/inspec_util.rb +93 -34
- metadata +56 -53
- data/lib/data/debug_text +0 -5941
- data/lib/inspec_tools/command.rb +0 -50
- data/test/unit/inspec_tools/csv_test.rb +0 -30
- data/test/unit/inspec_tools/inspec_test.rb +0 -54
- data/test/unit/inspec_tools/pdf_test.rb +0 -24
- data/test/unit/inspec_tools/summary_test.rb +0 -42
- data/test/unit/inspec_tools/xccdf_test.rb +0 -50
- data/test/unit/inspec_tools_test.rb +0 -7
- data/test/unit/test_helper.rb +0 -5
- data/test/unit/utils/inspec_util_test.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d638f0d057d193c9c700238c20a20d9143281ea940c8fc07cef32c1e22b8e2b4
|
4
|
+
data.tar.gz: cc130e14e071da3dcd675004be8671fd40ea8608024ef84adff50eaa258e3c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb61794f5a7dc49b09b701d9ab6598b96b51eccec392c5a1131f89efb3b17cff2a6f03fff8042b07df804b71ebbd39503f0c2483abaab6ae373556d98342363
|
7
|
+
data.tar.gz: f14b50ab337e77f6f3ac680874a11badf438009f53b9bacd813c5221f09b58f80ad610d9c6410bc92e6e0748e1ff2d37551bfd03af7b689b20e7e8e5f9ac54d1
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,244 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v1.7.1](https://github.com/mitre/inspec_tools/tree/v1.7.1) (2020-03-23)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.7.0...v1.7.1)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- GitHub Action Workflow Updates [\#102](https://github.com/mitre/inspec_tools/pull/102) ([Bialogs](https://github.com/Bialogs))
|
10
|
+
- Rubygems release workflow [\#100](https://github.com/mitre/inspec_tools/pull/100) ([Bialogs](https://github.com/Bialogs))
|
11
|
+
|
12
|
+
## [v1.7.0](https://github.com/mitre/inspec_tools/tree/v1.7.0) (2020-03-20)
|
13
|
+
|
14
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.21...v1.7.0)
|
15
|
+
|
16
|
+
**Implemented enhancements:**
|
17
|
+
|
18
|
+
- Migrate to depend on the new inspect objects library [\#86](https://github.com/mitre/inspec_tools/issues/86)
|
19
|
+
|
20
|
+
**Merged pull requests:**
|
21
|
+
|
22
|
+
- Remove warnings \(\#minor\) [\#101](https://github.com/mitre/inspec_tools/pull/101) ([Bialogs](https://github.com/Bialogs))
|
23
|
+
|
24
|
+
## [v1.6.21](https://github.com/mitre/inspec_tools/tree/v1.6.21) (2020-03-20)
|
25
|
+
|
26
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.20...v1.6.21)
|
27
|
+
|
28
|
+
**Implemented enhancements:**
|
29
|
+
|
30
|
+
- Parse cis XSLX [\#90](https://github.com/mitre/inspec_tools/pull/90) ([lukemalinowski](https://github.com/lukemalinowski))
|
31
|
+
|
32
|
+
**Closed issues:**
|
33
|
+
|
34
|
+
- figure out rubygems.org [\#31](https://github.com/mitre/inspec_tools/issues/31)
|
35
|
+
|
36
|
+
## [v1.6.20](https://github.com/mitre/inspec_tools/tree/v1.6.20) (2020-03-17)
|
37
|
+
|
38
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.19...v1.6.20)
|
39
|
+
|
40
|
+
## [v1.6.19](https://github.com/mitre/inspec_tools/tree/v1.6.19) (2020-03-16)
|
41
|
+
|
42
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.18...v1.6.19)
|
43
|
+
|
44
|
+
**Merged pull requests:**
|
45
|
+
|
46
|
+
- Update github workflows [\#99](https://github.com/mitre/inspec_tools/pull/99) ([Bialogs](https://github.com/Bialogs))
|
47
|
+
|
48
|
+
## [v1.6.18](https://github.com/mitre/inspec_tools/tree/v1.6.18) (2020-03-16)
|
49
|
+
|
50
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.17...v1.6.18)
|
51
|
+
|
52
|
+
## [v1.6.17](https://github.com/mitre/inspec_tools/tree/v1.6.17) (2020-03-13)
|
53
|
+
|
54
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.16...v1.6.17)
|
55
|
+
|
56
|
+
**Fixed bugs:**
|
57
|
+
|
58
|
+
- Fix VERSION file update to update the right file in the gem [\#79](https://github.com/mitre/inspec_tools/issues/79)
|
59
|
+
|
60
|
+
## [v1.6.16](https://github.com/mitre/inspec_tools/tree/v1.6.16) (2020-03-13)
|
61
|
+
|
62
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.15...v1.6.16)
|
63
|
+
|
64
|
+
**Fixed bugs:**
|
65
|
+
|
66
|
+
- The `changelog.md` versions seem to be broken [\#80](https://github.com/mitre/inspec_tools/issues/80)
|
67
|
+
- Update version.yml regex to match multidigit version numbers and use … [\#98](https://github.com/mitre/inspec_tools/pull/98) ([Bialogs](https://github.com/Bialogs))
|
68
|
+
|
69
|
+
## [v1.6.15](https://github.com/mitre/inspec_tools/tree/v1.6.15) (2020-03-13)
|
70
|
+
|
71
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.14...v1.6.15)
|
72
|
+
|
73
|
+
**Merged pull requests:**
|
74
|
+
|
75
|
+
- Fix issue with CHANGELOD.md not generating because of invalid startin… [\#97](https://github.com/mitre/inspec_tools/pull/97) ([Bialogs](https://github.com/Bialogs))
|
76
|
+
|
77
|
+
## [v1.6.14](https://github.com/mitre/inspec_tools/tree/v1.6.14) (2020-03-13)
|
78
|
+
|
79
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.13...v1.6.14)
|
80
|
+
|
81
|
+
**Closed issues:**
|
82
|
+
|
83
|
+
- add travis to the commit/PR workflow [\#36](https://github.com/mitre/inspec_tools/issues/36)
|
84
|
+
|
85
|
+
**Merged pull requests:**
|
86
|
+
|
87
|
+
- Use my personal version of github-actions-x/commit until git-lfs patc… [\#96](https://github.com/mitre/inspec_tools/pull/96) ([Bialogs](https://github.com/Bialogs))
|
88
|
+
|
89
|
+
## [v1.6.13](https://github.com/mitre/inspec_tools/tree/v1.6.13) (2020-03-13)
|
90
|
+
|
91
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.12...v1.6.13)
|
92
|
+
|
93
|
+
**Closed issues:**
|
94
|
+
|
95
|
+
- use github\_changelog\_generator in our release process [\#33](https://github.com/mitre/inspec_tools/issues/33)
|
96
|
+
- add project instructions for Changelog, contribution and issue\_template [\#32](https://github.com/mitre/inspec_tools/issues/32)
|
97
|
+
|
98
|
+
**Merged pull requests:**
|
99
|
+
|
100
|
+
- Enable git-lfs for this repository; tracking xls and xlsx files. [\#94](https://github.com/mitre/inspec_tools/pull/94) ([Bialogs](https://github.com/Bialogs))
|
101
|
+
|
102
|
+
## [v1.6.12](https://github.com/mitre/inspec_tools/tree/v1.6.12) (2020-03-13)
|
103
|
+
|
104
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.11...v1.6.12)
|
105
|
+
|
106
|
+
**Closed issues:**
|
107
|
+
|
108
|
+
- Typo in main README.md [\#89](https://github.com/mitre/inspec_tools/issues/89)
|
109
|
+
|
110
|
+
**Merged pull requests:**
|
111
|
+
|
112
|
+
- Fix typo in README.md, Remove development guidance in favor of a wiki… [\#93](https://github.com/mitre/inspec_tools/pull/93) ([Bialogs](https://github.com/Bialogs))
|
113
|
+
|
114
|
+
## [v1.6.11](https://github.com/mitre/inspec_tools/tree/v1.6.11) (2020-03-12)
|
115
|
+
|
116
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.10...v1.6.11)
|
117
|
+
|
118
|
+
**Closed issues:**
|
119
|
+
|
120
|
+
- DISA STIG web address needs to be updated [\#66](https://github.com/mitre/inspec_tools/issues/66)
|
121
|
+
|
122
|
+
**Merged pull requests:**
|
123
|
+
|
124
|
+
- Ignore debug generated files [\#92](https://github.com/mitre/inspec_tools/pull/92) ([Bialogs](https://github.com/Bialogs))
|
125
|
+
|
126
|
+
## [v1.6.10](https://github.com/mitre/inspec_tools/tree/v1.6.10) (2020-03-12)
|
127
|
+
|
128
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.9...v1.6.10)
|
129
|
+
|
130
|
+
**Fixed bugs:**
|
131
|
+
|
132
|
+
- Fix https://public.cyber.mil refernces [\#81](https://github.com/mitre/inspec_tools/pull/81) ([aaronlippold](https://github.com/aaronlippold))
|
133
|
+
|
134
|
+
## [v1.6.9](https://github.com/mitre/inspec_tools/tree/v1.6.9) (2020-03-06)
|
135
|
+
|
136
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.8...v1.6.9)
|
137
|
+
|
138
|
+
## [v1.6.8](https://github.com/mitre/inspec_tools/tree/v1.6.8) (2020-03-05)
|
139
|
+
|
140
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.7...v1.6.8)
|
141
|
+
|
142
|
+
## [v1.6.7](https://github.com/mitre/inspec_tools/tree/v1.6.7) (2020-02-11)
|
143
|
+
|
144
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.6...v1.6.7)
|
145
|
+
|
146
|
+
## [v1.6.6](https://github.com/mitre/inspec_tools/tree/v1.6.6) (2020-02-05)
|
147
|
+
|
148
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/53bdcb3...v1.6.6)
|
149
|
+
|
150
|
+
**Fixed bugs:**
|
151
|
+
|
152
|
+
- --help option is broken but inspec\_tools help \<command\> works [\#77](https://github.com/mitre/inspec_tools/issues/77)
|
153
|
+
- Fixes \#77 by shifting help commands around [\#87](https://github.com/mitre/inspec_tools/pull/87) ([lukemalinowski](https://github.com/lukemalinowski))
|
154
|
+
|
155
|
+
**Merged pull requests:**
|
156
|
+
|
157
|
+
- Apply fixes from CodeFactor [\#82](https://github.com/mitre/inspec_tools/pull/82) ([aaronlippold](https://github.com/aaronlippold))
|
158
|
+
|
159
|
+
## [53bdcb3](https://github.com/mitre/inspec_tools/tree/53bdcb3) (2019-11-06)
|
160
|
+
|
161
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.4...53bdcb3)
|
162
|
+
|
163
|
+
**Fixed bugs:**
|
164
|
+
|
165
|
+
- --version and -v are broken [\#76](https://github.com/mitre/inspec_tools/issues/76)
|
166
|
+
|
167
|
+
**Closed issues:**
|
168
|
+
|
169
|
+
- Logic fix [\#83](https://github.com/mitre/inspec_tools/issues/83)
|
170
|
+
|
171
|
+
**Merged pull requests:**
|
172
|
+
|
173
|
+
- Fixes \#83 [\#85](https://github.com/mitre/inspec_tools/pull/85) ([aaronlippold](https://github.com/aaronlippold))
|
174
|
+
- Fixes \#76 by editing version number [\#84](https://github.com/mitre/inspec_tools/pull/84) ([lukemalinowski](https://github.com/lukemalinowski))
|
175
|
+
|
176
|
+
## [v1.6.4](https://github.com/mitre/inspec_tools/tree/v1.6.4) (2019-11-05)
|
177
|
+
|
178
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.3...v1.6.4)
|
179
|
+
|
180
|
+
## [v1.6.3](https://github.com/mitre/inspec_tools/tree/v1.6.3) (2019-11-05)
|
181
|
+
|
182
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.5...v1.6.3)
|
183
|
+
|
184
|
+
## [v1.6.5](https://github.com/mitre/inspec_tools/tree/v1.6.5) (2019-11-05)
|
185
|
+
|
186
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.2...v1.6.5)
|
187
|
+
|
188
|
+
## [v1.6.2](https://github.com/mitre/inspec_tools/tree/v1.6.2) (2019-11-05)
|
189
|
+
|
190
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.1...v1.6.2)
|
191
|
+
|
192
|
+
## [v1.6.1](https://github.com/mitre/inspec_tools/tree/v1.6.1) (2019-11-05)
|
193
|
+
|
194
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.6.0...v1.6.1)
|
195
|
+
|
196
|
+
**Merged pull requests:**
|
197
|
+
|
198
|
+
- Update Profile logic include control exceptions [\#75](https://github.com/mitre/inspec_tools/pull/75) ([rx294](https://github.com/rx294))
|
199
|
+
- Null Byte in json report causes inspec2ckl to bomb-out [\#73](https://github.com/mitre/inspec_tools/pull/73) ([kevin-j-smith](https://github.com/kevin-j-smith))
|
200
|
+
|
201
|
+
## [v1.6.0](https://github.com/mitre/inspec_tools/tree/v1.6.0) (2019-10-04)
|
202
|
+
|
203
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.5.0...v1.6.0)
|
204
|
+
|
205
|
+
**Closed issues:**
|
206
|
+
|
207
|
+
- Updated logic for results metrics [\#74](https://github.com/mitre/inspec_tools/issues/74)
|
208
|
+
|
209
|
+
## [v1.5.0](https://github.com/mitre/inspec_tools/tree/v1.5.0) (2019-09-10)
|
210
|
+
|
211
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.4.2...v1.5.0)
|
212
|
+
|
213
|
+
**Closed issues:**
|
214
|
+
|
215
|
+
- Feature Enhancement: Inspec command plugin for inspec\_tools [\#67](https://github.com/mitre/inspec_tools/issues/67)
|
216
|
+
|
217
|
+
**Merged pull requests:**
|
218
|
+
|
219
|
+
- Kevin j smith adding inspec command plugin logic [\#72](https://github.com/mitre/inspec_tools/pull/72) ([lukemalinowski](https://github.com/lukemalinowski))
|
220
|
+
- Added logic so that inspec\_tools can be a plugin to Inspec as a comma… [\#68](https://github.com/mitre/inspec_tools/pull/68) ([kevin-j-smith](https://github.com/kevin-j-smith))
|
221
|
+
|
222
|
+
## [v1.4.2](https://github.com/mitre/inspec_tools/tree/v1.4.2) (2019-07-30)
|
223
|
+
|
224
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.4.1...v1.4.2)
|
225
|
+
|
226
|
+
**Closed issues:**
|
227
|
+
|
228
|
+
- Add additional option for Summary command [\#64](https://github.com/mitre/inspec_tools/issues/64)
|
229
|
+
- `insert\_json\_metadata': undefined method `version' for nil:NilClass [\#63](https://github.com/mitre/inspec_tools/issues/63)
|
230
|
+
|
231
|
+
**Merged pull requests:**
|
232
|
+
|
233
|
+
- Updated rake version [\#69](https://github.com/mitre/inspec_tools/pull/69) ([robthew](https://github.com/robthew))
|
234
|
+
- Add in 'inspec' and 'fileutils' require statements [\#65](https://github.com/mitre/inspec_tools/pull/65) ([samcornwell](https://github.com/samcornwell))
|
2
235
|
|
3
236
|
## [v1.4.1](https://github.com/mitre/inspec_tools/tree/v1.4.1) (2019-06-20)
|
237
|
+
|
4
238
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.4.0...v1.4.1)
|
5
239
|
|
6
240
|
## [v1.4.0](https://github.com/mitre/inspec_tools/tree/v1.4.0) (2019-05-17)
|
241
|
+
|
7
242
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.3.6...v1.4.0)
|
8
243
|
|
9
244
|
**Merged pull requests:**
|
@@ -11,6 +246,7 @@
|
|
11
246
|
- Apply fixes from CodeFactor [\#61](https://github.com/mitre/inspec_tools/pull/61) ([aaronlippold](https://github.com/aaronlippold))
|
12
247
|
|
13
248
|
## [v1.3.6](https://github.com/mitre/inspec_tools/tree/v1.3.6) (2019-05-02)
|
249
|
+
|
14
250
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.3.5...v1.3.6)
|
15
251
|
|
16
252
|
**Implemented enhancements:**
|
@@ -24,9 +260,11 @@
|
|
24
260
|
- remove severity tag in xccdf to inspec converted [\#44](https://github.com/mitre/inspec_tools/issues/44)
|
25
261
|
|
26
262
|
## [v1.3.5](https://github.com/mitre/inspec_tools/tree/v1.3.5) (2019-05-01)
|
263
|
+
|
27
264
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.3.4...v1.3.5)
|
28
265
|
|
29
266
|
## [v1.3.4](https://github.com/mitre/inspec_tools/tree/v1.3.4) (2019-05-01)
|
267
|
+
|
30
268
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.6...v1.3.4)
|
31
269
|
|
32
270
|
**Closed issues:**
|
@@ -42,9 +280,11 @@
|
|
42
280
|
- Add modules summary, compliance [\#45](https://github.com/mitre/inspec_tools/pull/45) ([rx294](https://github.com/rx294))
|
43
281
|
|
44
282
|
## [v1.1.6](https://github.com/mitre/inspec_tools/tree/v1.1.6) (2018-12-13)
|
283
|
+
|
45
284
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.5...v1.1.6)
|
46
285
|
|
47
286
|
## [v1.1.5](https://github.com/mitre/inspec_tools/tree/v1.1.5) (2018-12-11)
|
287
|
+
|
48
288
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.2...v1.1.5)
|
49
289
|
|
50
290
|
**Implemented enhancements:**
|
@@ -52,11 +292,6 @@
|
|
52
292
|
- Add help for the gem usage and or ruby usage [\#7](https://github.com/mitre/inspec_tools/issues/7)
|
53
293
|
- add sub-help command output to match README and document each function [\#6](https://github.com/mitre/inspec_tools/issues/6)
|
54
294
|
|
55
|
-
**Fixed bugs:**
|
56
|
-
|
57
|
-
- Add help for the gem usage and or ruby usage [\#7](https://github.com/mitre/inspec_tools/issues/7)
|
58
|
-
- add sub-help command output to match README and document each function [\#6](https://github.com/mitre/inspec_tools/issues/6)
|
59
|
-
|
60
295
|
**Closed issues:**
|
61
296
|
|
62
297
|
- add rubocop integration or PRs [\#34](https://github.com/mitre/inspec_tools/issues/34)
|
@@ -79,40 +314,13 @@
|
|
79
314
|
- \* added refernces to external data sources [\#30](https://github.com/mitre/inspec_tools/pull/30) ([aaronlippold](https://github.com/aaronlippold))
|
80
315
|
|
81
316
|
## [v1.1.2](https://github.com/mitre/inspec_tools/tree/v1.1.2) (2018-11-08)
|
317
|
+
|
82
318
|
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.1...v1.1.2)
|
83
319
|
|
84
320
|
## [v1.1.1](https://github.com/mitre/inspec_tools/tree/v1.1.1) (2018-11-08)
|
85
|
-
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.0...v1.1.1)
|
86
321
|
|
87
|
-
|
88
|
-
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.0.0...v1.1.0)
|
89
|
-
|
90
|
-
**Fixed bugs:**
|
91
|
-
|
92
|
-
- Remove unneeded `exe` dir if we are going to standardize on `bin`and update the `.gemspec` file [\#25](https://github.com/mitre/inspec_tools/issues/25)
|
93
|
-
|
94
|
-
**Closed issues:**
|
95
|
-
|
96
|
-
- when you When build the gem and install it - the command `inspec\_tools` does not seem to install into the path [\#26](https://github.com/mitre/inspec_tools/issues/26)
|
97
|
-
- Add MITRE Copyright to the end of the README.md [\#23](https://github.com/mitre/inspec_tools/issues/23)
|
98
|
-
- Update email addresses to MITRE addresses [\#18](https://github.com/mitre/inspec_tools/issues/18)
|
99
|
-
- update readme.md [\#17](https://github.com/mitre/inspec_tools/issues/17)
|
100
|
-
- update inspec\_tools.gemspec [\#16](https://github.com/mitre/inspec_tools/issues/16)
|
101
|
-
- update license to apache 2.0 [\#13](https://github.com/mitre/inspec_tools/issues/13)
|
102
|
-
- Separate Files defaults to \[False\] [\#10](https://github.com/mitre/inspec_tools/issues/10)
|
103
|
-
- Rename repository to 'inspec\_tools' [\#9](https://github.com/mitre/inspec_tools/issues/9)
|
104
|
-
|
105
|
-
**Merged pull requests:**
|
106
|
-
|
107
|
-
- Cleanup Debug Statetements [\#12](https://github.com/mitre/inspec_tools/pull/12) ([yarick](https://github.com/yarick))
|
108
|
-
- Change default separated\_files setting to default to true [\#11](https://github.com/mitre/inspec_tools/pull/11) ([yarick](https://github.com/yarick))
|
109
|
-
- Cleanup [\#8](https://github.com/mitre/inspec_tools/pull/8) ([robthew](https://github.com/robthew))
|
110
|
-
- Unification [\#5](https://github.com/mitre/inspec_tools/pull/5) ([dromazmj](https://github.com/dromazmj))
|
111
|
-
- \* Adds functionality for inspec2csv [\#4](https://github.com/mitre/inspec_tools/pull/4) ([dromazmj](https://github.com/dromazmj))
|
112
|
-
- Md/pdf [\#3](https://github.com/mitre/inspec_tools/pull/3) ([dromazmj](https://github.com/dromazmj))
|
113
|
-
- Md/csv2inspec [\#2](https://github.com/mitre/inspec_tools/pull/2) ([dromazmj](https://github.com/dromazmj))
|
114
|
-
- Writes code in the inspec util to output an inspec json to a directory [\#1](https://github.com/mitre/inspec_tools/pull/1) ([dromazmj](https://github.com/dromazmj))
|
322
|
+
[Full Changelog](https://github.com/mitre/inspec_tools/compare/v1.1.0...v1.1.1)
|
115
323
|
|
116
324
|
|
117
325
|
|
118
|
-
\* *This
|
326
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# InspecTools
|
2
2
|
|
3
|
+
![](https://github.com/mitre/inspec_tools/workflows/inspec_tools/badge.svg)
|
4
|
+
|
3
5
|
InspecTools supplies several CLI tools to convert to and from InSpec format.
|
4
6
|
|
5
7
|
The inspec_tools support the following modules:
|
@@ -15,6 +17,7 @@ The inspec_tools support the following modules:
|
|
15
17
|
- inspec2xccdf
|
16
18
|
- inspec2ckl
|
17
19
|
- pdf2inspec
|
20
|
+
- xlsx2inspec
|
18
21
|
|
19
22
|
It also includes an API that can be used in a ruby application. The Ruby API is defined in lib/inspec_tools/inspec.rb
|
20
23
|
|
@@ -120,7 +123,7 @@ failed.critical.max: 1
|
|
120
123
|
failed.high.max: 1
|
121
124
|
```
|
122
125
|
|
123
|
-
#### In-Line
|
126
|
+
#### In-Line Examples
|
124
127
|
```
|
125
128
|
{compliance: {min: 90}, failed: {critical: {max: 0}, high: {max: 0}}}
|
126
129
|
```
|
@@ -247,55 +250,45 @@ FLAGS:
|
|
247
250
|
example: inspec_tools pdf2inspec -p benchmark.pdf -o /path/to/myprofile -f ruby -s true
|
248
251
|
```
|
249
252
|
|
250
|
-
##
|
251
|
-
|
252
|
-
Prints out the gem version
|
253
|
-
|
254
|
-
```
|
255
|
-
USAGE: inspec_tools version
|
253
|
+
## xlsx2inspec
|
256
254
|
```
|
255
|
+
Usage:
|
256
|
+
inspec_tools xlsx2inspec -m, --mapping=MAPPING -p, --control-name-prefix=CONTROL_NAME_PREFIX -x, --xlsx=XLSX
|
257
257
|
|
258
|
-
|
258
|
+
Options:
|
259
|
+
-x, --xlsx=XLSX
|
260
|
+
-m, --mapping=MAPPING
|
261
|
+
-p, --control-name-prefix=CONTROL_NAME_PREFIX
|
262
|
+
-V, [--verbose], [--no-verbose]
|
263
|
+
-o, [--output=OUTPUT]
|
264
|
+
# Default: profile
|
265
|
+
-f, [--format=FORMAT]
|
266
|
+
# Default: ruby
|
267
|
+
# Possible values: ruby, hash
|
268
|
+
-s, [--separate-files], [--no-separate-files]
|
269
|
+
# Default: true
|
270
|
+
[--log-level=LOG_LEVEL] # Set the logging level: ["debug", "info", "warn", "error", "fatal"]
|
271
|
+
[--log-location=LOG_LOCATION] # Location to send diagnostic log messages to. (default: $stdout or Inspec::Log.error)
|
272
|
+
l, [--log-directory=LOG_DIRECTORY] # Provie log location
|
259
273
|
|
260
|
-
|
274
|
+
xlsx2inspec translates CIS Benchmarks in XLSX format to Inspec controls using a mapping file
|
261
275
|
|
262
|
-
|
276
|
+
See examples/xlsx2inspec/mapping.cis.yml for an example mapping file
|
263
277
|
|
264
|
-
|
265
|
-
|
266
|
-
- Updates to the CLI
|
267
|
-
- New unit tests for the functionality
|
268
|
-
- Updates to the docs and examples in `README.md` and `./docs/*`
|
269
|
-
- (if needed) Example / Template files ( `metadata.yml`,`example.yml`, etc )
|
270
|
-
- Scripts / Scaffolding code for the Example / Template files ( `generate_map` is an example )
|
271
|
-
- Example Output of the new functionality if it produces an artifact
|
278
|
+
example: bundle exec inspec_tools xlsx2inspec -m examples/xlsx2inspec/mapping.cis.yml -p azure-cis-foundations -x examples/cis.xlsx
|
279
|
+
```
|
272
280
|
|
273
|
-
|
274
|
-
2. fork the repo
|
275
|
-
3. checkout your repo
|
276
|
-
4. cd to the repo
|
277
|
-
5. git co -b `<your_branch>`
|
278
|
-
6. bundle install
|
279
|
-
7. `hack as you will`
|
280
|
-
8. test via rake
|
281
|
-
9. ensure unit tests still function and add unit tests for your new feature
|
282
|
-
10. add new docs to the `README.md` and to `./docs/examples`
|
283
|
-
11. update the CLI as needed and add in `usage` example
|
284
|
-
12. (if needed) create and document any example or templates
|
285
|
-
13. (if needed) create any supporing scripts
|
286
|
-
14. (opt) gem build inspec_tools.gemspec
|
287
|
-
15. (opt) gem install inspec_tools
|
288
|
-
16. (opt) test via the installed gem
|
289
|
-
17. git commit -a -s `<your_branch>`
|
290
|
-
18. Open a PRs aginst the MITRE inspec_tools repo
|
281
|
+
## version
|
291
282
|
|
292
|
-
|
283
|
+
Prints out the gem version
|
293
284
|
|
294
|
-
|
285
|
+
```
|
286
|
+
USAGE: inspec_tools version
|
287
|
+
```
|
295
288
|
|
296
|
-
|
289
|
+
# `inspec_tools` Development
|
297
290
|
|
298
|
-
|
291
|
+
View our [wiki page](https://github.com/mitre/inspec_tools/wiki/Development) for more information on contributing.
|
299
292
|
|
300
293
|
### NOTICE
|
301
294
|
|
@@ -311,4 +304,4 @@ MITRE hereby grants express written permission to use, reproduce, distribute, mo
|
|
311
304
|
|
312
305
|
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
|
313
306
|
|
314
|
-
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.DISA STIGs are published by DISA
|
307
|
+
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation. DISA STIGs are published by DISA, see: https://public.cyber.mil/privacy-security/
|