cfn-nag 0.4.66 → 0.4.67

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: 2280d359a4b2a0f832e6498d88c965df78818c88e1b47d042cbeb7d7a3bea1bf
4
- data.tar.gz: '058c1469988d6f58e01bc21f5b7bec200cb3ab17807e99317feb47f29d512e04'
3
+ metadata.gz: 8769d9bcf12f321f03800febc20089cdcac586a599e6dcc40a180ec2a7f99e66
4
+ data.tar.gz: d3fb30333bb5715f0160418b4061c64eceaf98e57ba9600e609efd2baf9f6840
5
5
  SHA512:
6
- metadata.gz: 44b69f5f053bdff5988d742f8cdeeef3c66ab7dc1cd083fadeba8dc29f385b8e07dab0a83a425fa20c4a223838684831f90918e3dbbf2cf53649fece0b6c6f10
7
- data.tar.gz: c101be4f7f77573d86485b3015a95ce30f53b7d46981aae2713d461a8ea9461dda1d29ef1270790aa830c5e2e0af2ab24c2844436029c3b473dfba72baad7671
6
+ metadata.gz: 28ce25e4be510a3416e9722c423b6c6432d4fbc7b08bd81a77c16f450448f5bce00ba1a32fdd99ab174ec9f1031b9b46025effcabc533148d9658fac32a3b28d
7
+ data.tar.gz: c2c27a01e098799c83fad0b7ac2100e7bbdcd9b345a86957f95caf17ae65ac91c04ef1e577aa282a6ab7eb80fc24abfbfabfe02e5aa6ca8e72d83e01dd52f978
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'cfn-nag/violation'
4
+ require_relative 'password_base_rule'
5
+
6
+ class OpsWorksAppAppSourcePasswordRule < PasswordBaseRule
7
+ def rule_text
8
+ 'OpsWorks App AppSource Password must not be a plaintext ' \
9
+ 'string or a Ref to a NoEcho Parameter with a Default value.' \
10
+ end
11
+
12
+ def rule_type
13
+ Violation::FAILING_VIOLATION
14
+ end
15
+
16
+ def rule_id
17
+ 'F67'
18
+ end
19
+
20
+ def resource_type
21
+ 'AWS::OpsWorks::App'
22
+ end
23
+
24
+ def password_property
25
+ :appSource
26
+ end
27
+
28
+ def sub_property_name
29
+ 'Password'
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'cfn-nag/violation'
4
+ require_relative 'password_base_rule'
5
+
6
+ class OpsWorksAppSslConfigurationPrivateKeyRule < PasswordBaseRule
7
+ def rule_text
8
+ 'OpsWorks App SslConfiguration PrivateKey must not be a plaintext ' \
9
+ 'string or a Ref to a NoEcho Parameter with a Default value.' \
10
+ end
11
+
12
+ def rule_type
13
+ Violation::FAILING_VIOLATION
14
+ end
15
+
16
+ def rule_id
17
+ 'F61'
18
+ end
19
+
20
+ def resource_type
21
+ 'AWS::OpsWorks::App'
22
+ end
23
+
24
+ def password_property
25
+ :sslConfiguration
26
+ end
27
+
28
+ def sub_property_name
29
+ 'PrivateKey'
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'cfn-nag/violation'
4
+ require_relative 'password_base_rule'
5
+
6
+ class OpsWorksStackCustomCookbooksSourcePasswordRule < PasswordBaseRule
7
+ def rule_text
8
+ 'OpsWorks Stack CustomCookbooksSource Password must not be a plaintext ' \
9
+ 'string or a Ref to a NoEcho Parameter with a Default value.' \
10
+ end
11
+
12
+ def rule_type
13
+ Violation::FAILING_VIOLATION
14
+ end
15
+
16
+ def rule_id
17
+ 'F62'
18
+ end
19
+
20
+ def resource_type
21
+ 'AWS::OpsWorks::Stack'
22
+ end
23
+
24
+ def password_property
25
+ :customCookbooksSource
26
+ end
27
+
28
+ def sub_property_name
29
+ 'Password'
30
+ end
31
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfn-nag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.66
4
+ version: 0.4.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kascic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -216,6 +216,9 @@ files:
216
216
  - lib/cfn-nag/custom_rules/ManagedPolicyOnUserRule.rb
217
217
  - lib/cfn-nag/custom_rules/MissingBucketPolicyRule.rb
218
218
  - lib/cfn-nag/custom_rules/NeptuneDBClusterStorageEncryptedRule.rb
219
+ - lib/cfn-nag/custom_rules/OpsWorksAppAppSourcePasswordRule.rb
220
+ - lib/cfn-nag/custom_rules/OpsWorksAppSslConfigurationPrivateKeyRule.rb
221
+ - lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb
219
222
  - lib/cfn-nag/custom_rules/OpsWorksStackRdsDbInstancesDbPasswordRule.rb
220
223
  - lib/cfn-nag/custom_rules/PolicyOnUserRule.rb
221
224
  - lib/cfn-nag/custom_rules/RDSDBClusterMasterUserPasswordRule.rb