Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhtarAmir authored and AkhtarAmir committed Sep 16, 2024
1 parent 3c41a68 commit 69438e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/aws/eks/eksKubernetesVersion.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('eksKubernetesVersion', function () {
"cluster": {
"name": "mycluster",
"arn": "arn:aws:eks:us-east-1:012345678911:cluster/mycluster",
"version": "1.27",
"version": "1.29",
}
}
);
Expand Down
10 changes: 5 additions & 5 deletions plugins/azure/mysqlserver/mysqlFlexibleServerCMKEncrypted.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ const async = require('async');
const helpers = require('../../../helpers/azure');

module.exports = {
title: 'MySQL Flexible Server CMK Encrypted',
title: 'MySQL Flexible Server Data CMK Encrypted',
category: 'MySQL Server',
domain: 'Databases',
severity: 'High',
description: 'Ensures that MySQL flexible servers are encrypted using CMK.',
description: 'Ensures that MySQL flexible servers data is encrypted using CMK.',
more_info: 'MySQL flexible server allows you to encrypt data using customer-managed keys (CMK) instead of using platform-managed keys, which are enabled by default. Using CMK encryption offers enhanced security and compliance, allowing centralized management and control of encryption keys through Azure Key Vault. It adds an extra layer of protection against unauthorized access to sensitive data stored in the database.',
recommended_action: 'Modify MySQL flexible server and disable public network access.',
recommended_action: 'Ensure that MySQL flexible server have CMK encryption enabled.',
link: 'https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-customer-managed-key',
apis: ['servers:listMysqlFlexibleServer'],
realtime_triggers: ['microsoftdbformysql:flexibleservers:write','microsoftdbformysql:flexibleservers:delete'],
Expand Down Expand Up @@ -39,9 +39,9 @@ module.exports = {
if (!flexibleServer.id) continue;

if (flexibleServer.dataEncryption && flexibleServer.dataEncryption.primaryKeyURI ) {
helpers.addResult(results, 0, 'MySQL flexible server is encrypted using CMK', location, flexibleServer.id);
helpers.addResult(results, 0, 'MySQL flexible server data is encrypted using CMK', location, flexibleServer.id);
} else {
helpers.addResult(results, 2, 'MySQL flexible server is not encrypted using CMK', location, flexibleServer.id);
helpers.addResult(results, 2, 'MySQL flexible server data is not encrypted using CMK', location, flexibleServer.id);
}
}
rcb();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('mysqlFlexibleServerManagedIdentity', function() {
const callback = (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(2);
expect(results[0].message).to.include('MySQL flexible server is not encrypted using CMK');
expect(results[0].message).to.include('MySQL flexible server data is not encrypted using CMK');
expect(results[0].region).to.equal('eastus');
done()
};
Expand All @@ -62,7 +62,7 @@ describe('mysqlFlexibleServerManagedIdentity', function() {
const callback = (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(0);
expect(results[0].message).to.include('MySQL flexible server is encrypted using CMK');
expect(results[0].message).to.include('MySQL flexible server data is encrypted using CMK');
expect(results[0].region).to.equal('eastus');
done()
};
Expand Down

0 comments on commit 69438e1

Please sign in to comment.