-
Notifications
You must be signed in to change notification settings - Fork 731
Docdb encrypytion in transit #2167
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
base: master
Are you sure you want to change the base?
Docdb encrypytion in transit #2167
Conversation
|
|
| var helpers = require('../../../helpers/aws'); | ||
|
|
||
| module.exports = { | ||
| title: 'DocumentDB Encryption in Transit', |
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.
| title: 'DocumentDB Encryption in Transit', | |
| title: 'DocumentDB Encryption In Transit', |
| category: 'DocumentDB', | ||
| domain: 'Databases', | ||
| severity: 'High', | ||
| description: 'Ensure DocumentDB clusters have TLS/SSL encryption in transit enabled.', |
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.
| description: 'Ensure DocumentDB clusters have TLS/SSL encryption in transit enabled.', | |
| description: 'Ensures that DocumentDB clusters have TLS/SSL encryption in transit enabled.', |
| var resource = cluster.DBClusterArn; | ||
| var tlsEnabled = false; | ||
|
|
||
| if (!cluster.DBClusterParameterGroup) { |
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.
what unknown results ,it should either pass or fail
helpers/aws/api_multipart.js
Outdated
| ] | ||
| } | ||
| }, | ||
| describeDBClusterParameters: { |
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.
| describeDBClusterParameters: { | |
| describeDBClusterParameters: { |
Remove it from here
helpers/aws/api.js
Outdated
| ] | ||
| } | ||
| }, | ||
| describeDBClusterParameters: { |
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.
remove from here
| recommended_action: 'Modify the cluster parameter group to set the tls parameter to enabled, or create a custom parameter group with TLS enabled and associate it with the cluster.', | ||
| link: 'https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html', | ||
| apis: ['DocDB:describeDBClusters', 'DocDB:describeDBClusterParameters'], | ||
| realtime_triggers: ['docdb:ModifyDBCluster', 'docdb:ModifyDBClusterParameterGroup', 'docdb:CreateDBClusterParameterGroup'], |
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.
| realtime_triggers: ['docdb:ModifyDBCluster', 'docdb:ModifyDBClusterParameterGroup', 'docdb:CreateDBClusterParameterGroup'], | |
| realtime_triggers: [ 'docdb:CreateDBCluster', 'docdb:ModifyDBCluster', 'docdb:ModifyDBClusterParameterGroup', 'docdb:CreateDBClusterParameterGroup','docdb:DeleteDBCluster' ], | |
|
|
||
| if (tlsEnabled) { | ||
| helpers.addResult(results, 0, | ||
| `DocumentDB cluster "${cluster.DBClusterIdentifier}" has TLS encryption in transit enabled`, |
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.
| `DocumentDB cluster "${cluster.DBClusterIdentifier}" has TLS encryption in transit enabled`, | |
| 'DocumentDB cluster has TLS encryption in transit enabled', |
| region, resource); | ||
| } else { | ||
| helpers.addResult(results, 2, | ||
| `DocumentDB cluster "${cluster.DBClusterIdentifier}" does not have TLS encryption in transit enabled in parameter group "${parameterGroupName}"`, |
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.
| `DocumentDB cluster "${cluster.DBClusterIdentifier}" does not have TLS encryption in transit enabled in parameter group "${parameterGroupName}"`, | |
| 'DocumentDB cluster does not have TLS encryption in transit enabled in parameter group', |
No description provided.