Skip to content
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

Fail on not utilizing NoEcho for Password in AWS::DMS::Endpoint #236

Merged
merged 2 commits into from
Jun 24, 2019

Conversation

phelewski
Copy link
Contributor

This takes care of Issue #64

This creates a new Failing rule whenever the Password for DMS Endpoint is set in plaintext either in the resource itself, or as a default from a parameter. If Password for DMS Endpoint is specified, then it needs to be set as a parameter with NoEcho.

F37 DMS Endpoint password must be Ref to NoEcho Parameter. Default credentials are not recommended


class DMSEndpointPasswordRule < BaseRule
def rule_text
'DMS Endpoint password must be Ref to NoEcho Parameter. ' \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's flip this rule_text around. DMS endpoint must not be plaintext string of a Ref to a Noecho parm with default. we're letting the dynamic references by or anything else we don't "understand"

ghost
ghost previously requested changes Jun 22, 2019
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just fix the rule_text everything else looks cool. possibly apply jesse's solution for common code?

@jesseadams jesseadams dismissed ghost ’s stale review June 24, 2019 14:38

Outdated

@jesseadams jesseadams merged commit 1c74c9e into master Jun 24, 2019
@jesseadams jesseadams deleted the feature/check_for_password_on_dms_endpoint branch June 24, 2019 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants