Skip to content

Conversation

@SyedKhizerAli
Copy link

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

var helpers = require('../../../helpers/aws');

module.exports = {
title: 'DocumentDB Encryption in Transit',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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.',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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) {
Copy link
Collaborator

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

]
}
},
describeDBClusterParameters: {

Choose a reason for hiding this comment

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

Suggested change
describeDBClusterParameters: {
describeDBClusterParameters: {

Remove it from here

]
}
},
describeDBClusterParameters: {
Copy link
Collaborator

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'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`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}"`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
`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',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants