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

Create remaining Password property rules #253

Closed
33 tasks done
phelewski opened this issue Jul 2, 2019 · 4 comments
Closed
33 tasks done

Create remaining Password property rules #253

phelewski opened this issue Jul 2, 2019 · 4 comments
Assignees
Labels

Comments

@phelewski
Copy link
Contributor

phelewski commented Jul 2, 2019

Add in the missing Resource/Property rules for passwords, tokens, and keys.

Current missing items:

  • AWS::Amplify::App.BasicAuthConfig
    • Password
  • AWS::DMS::Endpoint.MongoDbSettings
    • Password
  • AWS::AppStream::DirectoryConfig.ServiceAccountCredentials
    • AccountPassword
  • AWS::OpsWorks::Stack.RdsDbInstance
    • DbPassword
  • AWS::Amplify::Branch.BasicAuthConfig
    • Password
  • AWS::IAM::User.LoginProfile
    • Password
  • AWS::OpsWorks::App.SslConfiguration
    • PrivateKey
  • AWS::OpsWorks::Stack.Source
    • Password
  • AWS::EMR::Cluster.KerberosAttributes
    • ADDomainJoinPassword
    • CrossRealmTrustPrincipalPassword
    • KdcAdminPassword
  • AWS::AmazonMQ::Broker.User
    • Password
  • AWS::KinesisFirehose::DeliveryStream.RedshiftDestinationConfiguration
    • Password
  • AWS::OpsWorks::App.Source
    • Password
  • AWS::KinesisFirehose::DeliveryStream.SplunkDestinationConfiguration
    • HECToken
  • Alexa::ASK::Skill.AuthenticationConfiguration
    • [ ] ClientSecret Save this for another issue as it doesn't follow the AWS:: format
  • Alexa::ASK::Skill.AuthenticationConfiguration
    • [ ] RefreshToken Save this for another issue as it doesn't follow the AWS:: format
  • AWS::CodePipeline::Webhook.WebhookAuthConfiguration
    • SecretToken
  • AWS::Amplify::App
    • OauthToken
    • AccessToken
  • AWS::CloudFormation::CustomResource
    • [ ] ServiceToken Not a secured value
  • AWS::Pinpoint::APNSChannel
    • TokenKey
    • PrivateKey
  • AWS::Pinpoint::APNSSandboxChannel
    • TokenKey
    • PrivateKey
  • AWS::ElastiCache::ReplicationGroup
    • AuthToken
  • AWS::Pinpoint::APNSVoipSandboxChannel
    • TokenKey
    • PrivateKey
  • AWS::Pinpoint::APNSVoipChannel
    • TokenKey
    • PrivateKey
  • AWS::Lambda::Permission
    • EventSourceToken
  • AWS::OpsWorks::App.SslConfiguration
    • PrivateKey

Extras added from #253 (comment)

  • AWS::ManagedBlockchain::Member.MemberFabricConfiguration
    • AdminPassword
  • AWS::DocDB::DBCluster
    • MasterUserPassword
  • AWS::MediaLive::Channel.OutputDestinationSettings
    • PasswordParam
  • AWS::MediaLive::Input.InputSourceRequest
    • PasswordParam
phelewski pushed a commit that referenced this issue Jul 2, 2019
phelewski pushed a commit that referenced this issue Jul 2, 2019
@phelewski phelewski self-assigned this Jul 5, 2019
phelewski pushed a commit that referenced this issue Jul 5, 2019
phelewski pushed a commit that referenced this issue Jul 5, 2019
tmcelhattan pushed a commit that referenced this issue Oct 24, 2019
@tmcelhattan tmcelhattan self-assigned this Oct 25, 2019
tmcelhattan pushed a commit that referenced this issue Oct 25, 2019
tmcelhattan pushed a commit that referenced this issue Oct 29, 2019
@ghost
Copy link

ghost commented Oct 31, 2019

don't add a rule for AWS::CloudFormation::CustomResource/ServiceToken. that "token" is just a phone number for the lambda to invoke, not a credential

@PatMyron
Copy link

PatMyron commented Nov 8, 2019

ghost pushed a commit that referenced this issue Nov 16, 2019
* Adding custom rules and tests for issue #253 - AWS::AmazonMQ::Broker User Password property rules

* cleaning up

* refactors to handle when 'Users' property and/or 'Password' key is not defined in AWS::AmazonMQ::Broker resource

* additional refactors
ghost pushed a commit that referenced this issue Nov 16, 2019
* Adding custom rules and tests for issue #253 - AWS::OpsWorks::Stack.RdsDbInstance password property rules

* refactoring to test for multiple resources in test_templates yaml cfn files

* Refactoring to check to see if RdsDbInstances property exists and/or the DbPassword key is defined

* additional refactors
ghost pushed a commit that referenced this issue Nov 16, 2019
#298)

* Adding custom rules and tests for issue #253 - AWS::IAM::User.LoginProfile password property rules

* little bit of cleaning up

* one more clean up

* slight change to rule text

* reformatting

* refactoring to check to see if LoginProfile exists, and if so then check for violating resources

* cleaning up

* additional refactors
phelewski pushed a commit that referenced this issue Jan 15, 2020
phelewski pushed a commit that referenced this issue Jan 15, 2020
phelewski pushed a commit that referenced this issue Jan 15, 2020
…per and to correct custom rule name to match property name
phelewski pushed a commit that referenced this issue Jan 15, 2020
…repare for new files with uppercase naming
phelewski pushed a commit that referenced this issue Jan 15, 2020
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 adding Password rule for OpsWorks Stack CustomCookbookSource

* #253 adding PrivateKey rule for OpsWorks App SslConfiguration

* #253 adding Password rule for OpsWorks App AppSource
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 adding Password rule for KinesisFirehose DeliveryStream RedshiftDestinationConfiguration

* #253 adding HECToken rule for KinesisFirehose DeliveryStream SplunkDestinationConfiguration
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 adding TokenKey rule for Pinpoint APNSSandboxChannel

* #253 adding PrivateKey rule for Pinpoint APNSSandboxChannel

* #253 adding TokenKey rule for Pinpoint APNSChannel

* #253 adding PrivateKey rule for Pinpoint APNSChannel

* #253 adding TokenKey rule for Pinpoint APNSVoipSandboxChannel

* #253 adding PrivateKey rule for Pinpoint APNSVoipSandboxChannel

* #253 adding TokenKey rule for Pinpoint APNSVoipChannel

* #253 adding PrivateKey rule for Pinpoint APNSVoipChannel
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 adding ADDomainJoinPassword rule for EMR Cluster KerberosAttributes

* #253 adding CrossRealmTrustPrincipalPassword rule for EMR Cluster KerberosAttributes

* #253 adding KdcAdminPassword rule for EMR Cluster KerberosAttributes

* Update EMRClusterKerberosAttributesADDomainJoinPasswordRule.rb

* Update EMRClusterKerberosAttributesCrossRealmTrustPrincipalPasswordRule.rb

* Update EMRClusterKerberosAttributesKdcAdminPasswordRule.rb

Co-authored-by: Eric Kascic <eric.kascic@stelligent.com>
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 removing existing IAM User LoginProfile Password rule files to prepare for new files with uppercase naming

* #253 adding IAM User LoginProfile Password rule back in with upper case IAM in rule and spec name

* Update IAMUserLoginProfilePasswordRule.rb

Co-authored-by: Eric Kascic <eric.kascic@stelligent.com>
ghost pushed a commit that referenced this issue Jan 16, 2020
…per and to correct custom rule name to match property name (#346)

* #253 updating AmazonMQ Broker Users Password rule to use password helper and to correct custom rule name to match property name

* Update AmazonMQBrokerUsersPasswordRule.rb

Co-authored-by: Eric Kascic <eric.kascic@stelligent.com>
phelewski pushed a commit that referenced this issue Jan 16, 2020
…before running secure check against value
ghost pushed a commit that referenced this issue Jan 16, 2020
* #253 adding SecretToken rule for CodePipeline Webhook AuthenticationConfiguration

* #253 adding AuthToken rule for ElastiCache ReplicationGroup

* #253 adding EventSourceToken rule for Lambda Permission

* #253 adding AdminPassword rule for ManagedBlockChain Member MemberFabricationConfiguration

* #253 adding MasterUserPassword rule for DocDB DBCluster

* Update CodePipelineWebhookAuthenticationConfigurationSecretTokenRule.rb

* #253 adding check to ensure the optional property exists in template before running secure check against value

Co-authored-by: Eric Kascic <eric.kascic@stelligent.com>
@ghost
Copy link

ghost commented Jan 16, 2020

aws-cloudformation/cfn-python-lint#1181

AdminPassword:

AWS::ManagedBlockchain::Member.MemberFabricConfiguration

MasterUserPassword:

AWS::DocDB::DBCluster

PasswordParam:

AWS::MediaLive::Channel.OutputDestinationSettings

AWS::MediaLive::Input.InputSourceRequest

it's my belief that the media live PasswordParams are actually SSM key names - so not sensitive

@ghost ghost closed this as completed Jan 16, 2020
@ghost
Copy link

ghost commented Jan 16, 2020

pieces of this were released over time, but 0.4.72 includes all of them

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants