inspec 1.26.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -32
- data/Rakefile +2 -2
- data/docs/resources/crontab.md.erb +17 -1
- data/docs/resources/http.md.erb +6 -3
- data/docs/resources/processes.md.erb +42 -2
- data/examples/inheritance/inspec.yml +1 -1
- data/examples/meta-profile/inspec.yml +1 -1
- data/examples/profile-attribute/inspec.yml +1 -1
- data/examples/profile/inspec.yml +1 -1
- data/lib/bundles/inspec-compliance/api.rb +8 -7
- data/lib/bundles/inspec-compliance/cli.rb +1 -1
- data/lib/bundles/inspec-init/templates/profile/inspec.yml +1 -1
- data/lib/fetchers/local.rb +4 -1
- data/lib/fetchers/url.rb +23 -6
- data/lib/inspec/dependencies/cache.rb +0 -1
- data/lib/inspec/dependencies/requirement.rb +0 -1
- data/lib/inspec/metadata.rb +8 -2
- data/lib/inspec/plugins/fetcher.rb +0 -1
- data/lib/inspec/profile.rb +3 -3
- data/lib/inspec/version.rb +1 -1
- data/lib/matchers/matchers.rb +0 -1
- data/lib/resources/command.rb +1 -1
- data/lib/resources/crontab.rb +24 -9
- data/lib/resources/host.rb +1 -1
- data/lib/resources/interface.rb +2 -1
- data/lib/resources/postgres.rb +45 -39
- data/lib/resources/processes.rb +17 -4
- data/lib/utils/find_files.rb +1 -1
- data/lib/utils/nginx_parser.rb +74 -0
- data/lib/utils/spdx.rb +13 -0
- data/lib/utils/spdx.txt +344 -0
- metadata +6 -3
data/lib/utils/spdx.txt
ADDED
@@ -0,0 +1,344 @@
|
|
1
|
+
Glide
|
2
|
+
Abstyles
|
3
|
+
AFL-1.1
|
4
|
+
AFL-1.2
|
5
|
+
AFL-2.0
|
6
|
+
AFL-2.1
|
7
|
+
AFL-3.0
|
8
|
+
AMPAS
|
9
|
+
APL-1.0
|
10
|
+
Adobe-Glyph
|
11
|
+
APAFML
|
12
|
+
Adobe-2006
|
13
|
+
AGPL-1.0
|
14
|
+
Afmparse
|
15
|
+
Aladdin
|
16
|
+
ADSL
|
17
|
+
AMDPLPA
|
18
|
+
ANTLR-PD
|
19
|
+
Apache-1.0
|
20
|
+
Apache-1.1
|
21
|
+
Apache-2.0
|
22
|
+
AML
|
23
|
+
APSL-1.0
|
24
|
+
APSL-1.1
|
25
|
+
APSL-1.2
|
26
|
+
APSL-2.0
|
27
|
+
Artistic-1.0
|
28
|
+
Artistic-1.0-Perl
|
29
|
+
Artistic-1.0-cl8
|
30
|
+
Artistic-2.0
|
31
|
+
AAL
|
32
|
+
Bahyph
|
33
|
+
Barr
|
34
|
+
Beerware
|
35
|
+
BitTorrent-1.0
|
36
|
+
BitTorrent-1.1
|
37
|
+
BSL-1.0
|
38
|
+
Borceux
|
39
|
+
BSD-2-Clause
|
40
|
+
BSD-2-Clause-FreeBSD
|
41
|
+
BSD-2-Clause-NetBSD
|
42
|
+
BSD-3-Clause
|
43
|
+
BSD-3-Clause-Clear
|
44
|
+
BSD-3-Clause-No-Nuclear-License
|
45
|
+
BSD-3-Clause-No-Nuclear-License-2014
|
46
|
+
BSD-3-Clause-No-Nuclear-Warranty
|
47
|
+
BSD-4-Clause
|
48
|
+
BSD-Protection
|
49
|
+
BSD-Source-Code
|
50
|
+
BSD-3-Clause-Attribution
|
51
|
+
0BSD
|
52
|
+
BSD-4-Clause-UC
|
53
|
+
bzip2-1.0.5
|
54
|
+
bzip2-1.0.6
|
55
|
+
Caldera
|
56
|
+
CECILL-1.0
|
57
|
+
CECILL-1.1
|
58
|
+
CECILL-2.0
|
59
|
+
CECILL-2.1
|
60
|
+
CECILL-B
|
61
|
+
CECILL-C
|
62
|
+
ClArtistic
|
63
|
+
MIT-CMU
|
64
|
+
CNRI-Jython
|
65
|
+
CNRI-Python
|
66
|
+
CNRI-Python-GPL-Compatible
|
67
|
+
CPOL-1.02
|
68
|
+
CDDL-1.0
|
69
|
+
CDDL-1.1
|
70
|
+
CPAL-1.0
|
71
|
+
CPL-1.0
|
72
|
+
CATOSL-1.1
|
73
|
+
Condor-1.1
|
74
|
+
CC-BY-1.0
|
75
|
+
CC-BY-2.0
|
76
|
+
CC-BY-2.5
|
77
|
+
CC-BY-3.0
|
78
|
+
CC-BY-4.0
|
79
|
+
CC-BY-ND-1.0
|
80
|
+
CC-BY-ND-2.0
|
81
|
+
CC-BY-ND-2.5
|
82
|
+
CC-BY-ND-3.0
|
83
|
+
CC-BY-ND-4.0
|
84
|
+
CC-BY-NC-1.0
|
85
|
+
CC-BY-NC-2.0
|
86
|
+
CC-BY-NC-2.5
|
87
|
+
CC-BY-NC-3.0
|
88
|
+
CC-BY-NC-4.0
|
89
|
+
CC-BY-NC-ND-1.0
|
90
|
+
CC-BY-NC-ND-2.0
|
91
|
+
CC-BY-NC-ND-2.5
|
92
|
+
CC-BY-NC-ND-3.0
|
93
|
+
CC-BY-NC-ND-4.0
|
94
|
+
CC-BY-NC-SA-1.0
|
95
|
+
CC-BY-NC-SA-2.0
|
96
|
+
CC-BY-NC-SA-2.5
|
97
|
+
CC-BY-NC-SA-3.0
|
98
|
+
CC-BY-NC-SA-4.0
|
99
|
+
CC-BY-SA-1.0
|
100
|
+
CC-BY-SA-2.0
|
101
|
+
CC-BY-SA-2.5
|
102
|
+
CC-BY-SA-3.0
|
103
|
+
CC-BY-SA-4.0
|
104
|
+
CC0-1.0
|
105
|
+
Crossword
|
106
|
+
CrystalStacker
|
107
|
+
CUA-OPL-1.0
|
108
|
+
Cube
|
109
|
+
curl
|
110
|
+
D-FSL-1.0
|
111
|
+
diffmark
|
112
|
+
WTFPL
|
113
|
+
DOC
|
114
|
+
Dotseqn
|
115
|
+
DSDP
|
116
|
+
dvipdfm
|
117
|
+
EPL-1.0
|
118
|
+
ECL-1.0
|
119
|
+
ECL-2.0
|
120
|
+
eGenix
|
121
|
+
EFL-1.0
|
122
|
+
EFL-2.0
|
123
|
+
MIT-advertising
|
124
|
+
MIT-enna
|
125
|
+
Entessa
|
126
|
+
ErlPL-1.1
|
127
|
+
EUDatagrid
|
128
|
+
EUPL-1.0
|
129
|
+
EUPL-1.1
|
130
|
+
Eurosym
|
131
|
+
Fair
|
132
|
+
MIT-feh
|
133
|
+
Frameworx-1.0
|
134
|
+
FreeImage
|
135
|
+
FTL
|
136
|
+
FSFAP
|
137
|
+
FSFUL
|
138
|
+
FSFULLR
|
139
|
+
Giftware
|
140
|
+
GL2PS
|
141
|
+
Glulxe
|
142
|
+
AGPL-3.0
|
143
|
+
GFDL-1.1
|
144
|
+
GFDL-1.2
|
145
|
+
GFDL-1.3
|
146
|
+
GPL-1.0
|
147
|
+
GPL-2.0
|
148
|
+
GPL-3.0
|
149
|
+
LGPL-2.1
|
150
|
+
LGPL-3.0
|
151
|
+
LGPL-2.0
|
152
|
+
gnuplot
|
153
|
+
gSOAP-1.3b
|
154
|
+
HaskellReport
|
155
|
+
HPND
|
156
|
+
IBM-pibs
|
157
|
+
IPL-1.0
|
158
|
+
ICU
|
159
|
+
ImageMagick
|
160
|
+
iMatix
|
161
|
+
Imlib2
|
162
|
+
IJG
|
163
|
+
Info-ZIP
|
164
|
+
Intel-ACPI
|
165
|
+
Intel
|
166
|
+
Interbase-1.0
|
167
|
+
IPA
|
168
|
+
ISC
|
169
|
+
JasPer-2.0
|
170
|
+
JSON
|
171
|
+
LPPL-1.0
|
172
|
+
LPPL-1.1
|
173
|
+
LPPL-1.2
|
174
|
+
LPPL-1.3a
|
175
|
+
LPPL-1.3c
|
176
|
+
Latex2e
|
177
|
+
BSD-3-Clause-LBNL
|
178
|
+
Leptonica
|
179
|
+
LGPLLR
|
180
|
+
Libpng
|
181
|
+
libtiff
|
182
|
+
LAL-1.2
|
183
|
+
LAL-1.3
|
184
|
+
LiLiQ-P-1.1
|
185
|
+
LiLiQ-Rplus-1.1
|
186
|
+
LiLiQ-R-1.1
|
187
|
+
LPL-1.02
|
188
|
+
LPL-1.0
|
189
|
+
MakeIndex
|
190
|
+
MTLL
|
191
|
+
MS-PL
|
192
|
+
MS-RL
|
193
|
+
MirOS
|
194
|
+
MITNFA
|
195
|
+
MIT
|
196
|
+
Motosoto
|
197
|
+
MPL-1.0
|
198
|
+
MPL-1.1
|
199
|
+
MPL-2.0
|
200
|
+
MPL-2.0-no-copyleft-exception
|
201
|
+
mpich2
|
202
|
+
Multics
|
203
|
+
Mup
|
204
|
+
NASA-1.3
|
205
|
+
Naumen
|
206
|
+
NBPL-1.0
|
207
|
+
Net-SNMP
|
208
|
+
NetCDF
|
209
|
+
NGPL
|
210
|
+
NOSL
|
211
|
+
NPL-1.0
|
212
|
+
NPL-1.1
|
213
|
+
Newsletr
|
214
|
+
NLPL
|
215
|
+
Nokia
|
216
|
+
NPOSL-3.0
|
217
|
+
NLOD-1.0
|
218
|
+
Noweb
|
219
|
+
NRL
|
220
|
+
NTP
|
221
|
+
Nunit
|
222
|
+
OCLC-2.0
|
223
|
+
ODbL-1.0
|
224
|
+
PDDL-1.0
|
225
|
+
OCCT-PL
|
226
|
+
OGTSL
|
227
|
+
OLDAP-2.2.2
|
228
|
+
OLDAP-1.1
|
229
|
+
OLDAP-1.2
|
230
|
+
OLDAP-1.3
|
231
|
+
OLDAP-1.4
|
232
|
+
OLDAP-2.0
|
233
|
+
OLDAP-2.0.1
|
234
|
+
OLDAP-2.1
|
235
|
+
OLDAP-2.2
|
236
|
+
OLDAP-2.2.1
|
237
|
+
OLDAP-2.3
|
238
|
+
OLDAP-2.4
|
239
|
+
OLDAP-2.5
|
240
|
+
OLDAP-2.6
|
241
|
+
OLDAP-2.7
|
242
|
+
OLDAP-2.8
|
243
|
+
OML
|
244
|
+
OPL-1.0
|
245
|
+
OSL-1.0
|
246
|
+
OSL-1.1
|
247
|
+
OSL-2.0
|
248
|
+
OSL-2.1
|
249
|
+
OSL-3.0
|
250
|
+
OpenSSL
|
251
|
+
OSET-PL-2.1
|
252
|
+
PHP-3.0
|
253
|
+
PHP-3.01
|
254
|
+
Plexus
|
255
|
+
PostgreSQL
|
256
|
+
psfrag
|
257
|
+
psutils
|
258
|
+
Python-2.0
|
259
|
+
QPL-1.0
|
260
|
+
Qhull
|
261
|
+
Rdisc
|
262
|
+
RPSL-1.0
|
263
|
+
RPL-1.1
|
264
|
+
RPL-1.5
|
265
|
+
RHeCos-1.1
|
266
|
+
RSCPL
|
267
|
+
RSA-MD
|
268
|
+
Ruby
|
269
|
+
SAX-PD
|
270
|
+
Saxpath
|
271
|
+
SCEA
|
272
|
+
SWL
|
273
|
+
SMPPL
|
274
|
+
Sendmail
|
275
|
+
SGI-B-1.0
|
276
|
+
SGI-B-1.1
|
277
|
+
SGI-B-2.0
|
278
|
+
OFL-1.0
|
279
|
+
OFL-1.1
|
280
|
+
SimPL-2.0
|
281
|
+
Sleepycat
|
282
|
+
SNIA
|
283
|
+
Spencer-86
|
284
|
+
Spencer-94
|
285
|
+
Spencer-99
|
286
|
+
SMLNJ
|
287
|
+
SugarCRM-1.1.3
|
288
|
+
SISSL
|
289
|
+
SISSL-1.2
|
290
|
+
SPL-1.0
|
291
|
+
Watcom-1.0
|
292
|
+
TCL
|
293
|
+
TCP-wrappers
|
294
|
+
Unlicense
|
295
|
+
TMate
|
296
|
+
TORQUE-1.1
|
297
|
+
TOSL
|
298
|
+
Unicode-DFS-2015
|
299
|
+
Unicode-DFS-2016
|
300
|
+
Unicode-TOU
|
301
|
+
UPL-1.0
|
302
|
+
NCSA
|
303
|
+
Vim
|
304
|
+
VOSTROM
|
305
|
+
VSL-1.0
|
306
|
+
W3C-20150513
|
307
|
+
W3C-19980720
|
308
|
+
W3C
|
309
|
+
Wsuipa
|
310
|
+
Xnet
|
311
|
+
X11
|
312
|
+
Xerox
|
313
|
+
XFree86-1.1
|
314
|
+
xinetd
|
315
|
+
xpp
|
316
|
+
XSkat
|
317
|
+
YPL-1.0
|
318
|
+
YPL-1.1
|
319
|
+
Zed
|
320
|
+
Zend-2.0
|
321
|
+
Zimbra-1.3
|
322
|
+
Zimbra-1.4
|
323
|
+
Zlib
|
324
|
+
zlib-acknowledgement
|
325
|
+
ZPL-1.1
|
326
|
+
ZPL-2.0
|
327
|
+
ZPL-2.1
|
328
|
+
eCos-2.0
|
329
|
+
GPL-1.0+
|
330
|
+
GPL-2.0+
|
331
|
+
GPL-2.0-with-autoconf-exception
|
332
|
+
GPL-2.0-with-bison-exception
|
333
|
+
GPL-2.0-with-classpath-exception
|
334
|
+
GPL-2.0-with-font-exception
|
335
|
+
GPL-2.0-with-GCC-exception
|
336
|
+
GPL-3.0+
|
337
|
+
GPL-3.0-with-autoconf-exception
|
338
|
+
GPL-3.0-with-GCC-exception
|
339
|
+
LGPL-2.1+
|
340
|
+
LGPL-3.0+
|
341
|
+
LGPL-2.0+
|
342
|
+
StandardML-NJ
|
343
|
+
WXwindows
|
344
|
+
All Rights Reserved
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train
|
@@ -622,10 +622,13 @@ files:
|
|
622
622
|
- lib/utils/json_log.rb
|
623
623
|
- lib/utils/latest_version.rb
|
624
624
|
- lib/utils/modulator.rb
|
625
|
+
- lib/utils/nginx_parser.rb
|
625
626
|
- lib/utils/object_traversal.rb
|
626
627
|
- lib/utils/parser.rb
|
627
628
|
- lib/utils/plugin_registry.rb
|
628
629
|
- lib/utils/simpleconfig.rb
|
630
|
+
- lib/utils/spdx.rb
|
631
|
+
- lib/utils/spdx.txt
|
629
632
|
homepage: https://github.com/chef/inspec
|
630
633
|
licenses:
|
631
634
|
- Apache-2.0
|
@@ -646,7 +649,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
646
649
|
version: '0'
|
647
650
|
requirements: []
|
648
651
|
rubyforge_project:
|
649
|
-
rubygems_version: 2.
|
652
|
+
rubygems_version: 2.6.11
|
650
653
|
signing_key:
|
651
654
|
specification_version: 4
|
652
655
|
summary: Infrastructure and compliance testing.
|