Skip to content

Commit

Permalink
Revised keyVaultKeyExpiry
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhtarAmir authored and AkhtarAmir committed Nov 7, 2024
1 parent a467046 commit 41702ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions plugins/azure/keyvaults/keyVaultKeyExpiry.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ module.exports = {
return;
}
if (!vault.properties.enableRbacAuthorization) {
helpers.addResult(results, 0,
'Key Vault does not have RBAC authorization enabled', location, vault.id);
return;
}

Expand Down
12 changes: 0 additions & 12 deletions plugins/azure/keyvaults/keyVaultKeyExpiry.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ describe('keyVaultKeyExpiryRbac', function() {
auth.run(createCache(null, [], {}), {}, callback);
});

it('should give passing result if key vault does not have RBAC authorization enabled', function(done) {
const callback = (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(0);
expect(results[0].message).to.include('Key Vault does not have RBAC authorization enabled');
expect(results[0].region).to.equal('eastus');
done()
};

auth.run(createCache(null, [listKeyVaults[1]], []), {}, callback);
});

it('should give passing result if expiration is not set on keys', function(done) {
const callback = (err, results) => {
expect(results.length).to.equal(1);
Expand Down

0 comments on commit 41702ea

Please sign in to comment.