cfn-nag 0.4.66 → 0.4.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8769d9bcf12f321f03800febc20089cdcac586a599e6dcc40a180ec2a7f99e66
|
|
4
|
+
data.tar.gz: d3fb30333bb5715f0160418b4061c64eceaf98e57ba9600e609efd2baf9f6840
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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-
|
|
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
|