cfn-nag 0.7.7 → 0.7.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 687faf1b1a2510a790d5c225ea91dcaa18d3384bfc053279e6b4df606a21172a
|
4
|
+
data.tar.gz: 99cb292f48d8c2cada20d5fae525a7f23491903bfd79cffe2aeaf43326cbfd70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3700d6df829ab53c3255499d4487badba2fba8ce83cd7af6c1455b6025aaca5156b1ae90c2e663eefad2ea2fb16d544e4dadd8b03443aa674185492a8be5d47
|
7
|
+
data.tar.gz: ee20bb214f2dbe6f97ea275cb07a6b5352c0c61bc9c1050e39a6c5c93f4e932103cbe9d103d8cb633513d71403a8863061a2689574e72b1466be32e35bffde1e
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'cfn-nag/util/truthy'
|
4
|
+
require 'cfn-nag/violation'
|
5
|
+
require_relative 'base'
|
6
|
+
|
7
|
+
class DMSReplicationInstanceNotPublicRule < BaseRule
|
8
|
+
def rule_text
|
9
|
+
'Database Migration Service replication instances are public, property PubliclyAccessible should be set to false'
|
10
|
+
end
|
11
|
+
|
12
|
+
def rule_type
|
13
|
+
Violation::WARNING
|
14
|
+
end
|
15
|
+
|
16
|
+
def rule_id
|
17
|
+
'W91'
|
18
|
+
end
|
19
|
+
|
20
|
+
def audit_impl(cfn_model)
|
21
|
+
violating_replications = cfn_model.resources_by_type('AWS::DMS::ReplicationInstance').select do |replication|
|
22
|
+
replication.publiclyAccessible.nil? || truthy?(replication.publiclyAccessible)
|
23
|
+
end
|
24
|
+
|
25
|
+
violating_replications.map(&:logical_resource_id)
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-nag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kascic
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/cfn-nag/custom_rules/DLMLifecyclePolicyCrossRegionCopyEncryptionRule.rb
|
218
218
|
- lib/cfn-nag/custom_rules/DMSEndpointMongoDbSettingsPasswordRule.rb
|
219
219
|
- lib/cfn-nag/custom_rules/DMSEndpointPasswordRule.rb
|
220
|
+
- lib/cfn-nag/custom_rules/DMSReplicationInstanceNotPublicRule.rb
|
220
221
|
- lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb
|
221
222
|
- lib/cfn-nag/custom_rules/DirectoryServiceSimpleADPasswordRule.rb
|
222
223
|
- lib/cfn-nag/custom_rules/DocDBDBClusterMasterUserPasswordRule.rb
|