Class: EMRClusterKerberosAttributesKdcAdminPasswordRule

Inherits:
PasswordBaseRule show all
Defined in:
lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb

Instance Method Summary collapse

Methods inherited from PasswordBaseRule

#audit_impl

Methods inherited from BaseRule

#audit, #audit_impl

Instance Method Details

#password_propertyObject


25
26
27
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 25

def password_property
  :kerberosAttributes
end

#resource_typeObject


21
22
23
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 21

def resource_type
  'AWS::EMR::Cluster'
end

#rule_idObject


17
18
19
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 17

def rule_id
  'F65'
end

#rule_textObject


7
8
9
10
11
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 7

def rule_text
  'EMR Cluster KerberosAttributes KdcAdmin Password must not be a ' \
  'plaintext string or a Ref to a Parameter with a Default value.  ' \
  'Can be Ref to a NoEcho Parameter without a Default, or a dynamic reference to a secretsmanager value.'
end

#rule_typeObject


13
14
15
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 13

def rule_type
  Violation::FAILING_VIOLATION
end

#sub_property_nameObject


29
30
31
# File 'lib/cfn-nag/custom_rules/EMRClusterKerberosAttributesKdcAdminPasswordRule.rb', line 29

def sub_property_name
  'KdcAdminPassword'
end