-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/253 remaining password property rules #345
Conversation
…ricationConfiguration
def audit_impl(cfn_model) | ||
managed_blockchain_members = cfn_model.resources_by_type('AWS::ManagedBlockchain::Member') | ||
violating_managed_blockchains = managed_blockchain_members.select do |member| | ||
member_config = member.memberConfiguration['MemberFrameworkConfiguration']['MemberFabricConfiguration']['AdminPassword'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MemberFabricConfiguration is optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which looks like you got, but don't want to dereference the AdminPassword then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added some logic here to ensure all of these optional properties exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - just make sure the framwork config bit is straightened out for the block chain resource
…before running secure check against value
Partial for #253
Creates rule for the following resource properties: