Skip to content

Commit 81e7191

Browse files
use input instead of attribute (#47)
* use input instead of attribute In the last versions of Inspec and cinc-auditor, attribute is deprecated and input should be used. https://docs.chef.io/workstation/cookstyle/inspec_deprecations_attributehelper/ Signed-off-by: Michée Lengronne <[email protected]> * Update inspec.yml Signed-off-by: Michée Lengronne <[email protected]>
1 parent 7ba9974 commit 81e7191

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

controls/ssl_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# author: Patrick Muench
1919
# author: Christoph Kappel
2020

21-
invalid_targets = attribute(
21+
invalid_targets = input(
2222
'invalid_targets',
2323
value: [
2424
'127.0.0.1',
@@ -30,19 +30,19 @@
3030
)
3131

3232
# Array of TCP ports to exclude from SSL checking. For example: [443, 8443]
33-
exclude_ports = attribute(
33+
exclude_ports = input(
3434
'exclude_ports',
3535
value: [],
3636
description: 'Array of TCP ports to exclude from SSL checking'
3737
)
3838

39-
target_hostname = attribute(
39+
target_hostname = input(
4040
'target_hostname',
4141
value: command('hostname').stdout.strip,
4242
description: 'Target hostname to check'
4343
)
4444

45-
force_ssl = attribute(
45+
force_ssl = input(
4646
'force_ssl',
4747
value: false,
4848
description: 'The profile should not check if SSL is enabled on every port and assume it is'

inspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ maintainer: DevSec Hardening Framework Team
66
copyright: DevSec Hardening Framework Team & Chef Software Inc.
77
copyright_email: [email protected]
88
license: Apache-2.0
9+
inspec_version: '>= 4.6.3'
910
version: 1.6.4
1011
supports:
1112
- inspec_version: '>= 1.21.0'

0 commit comments

Comments
 (0)