Skip to content

Commit

Permalink
Merge pull request #1610 from rieck-srlabs/bugfix/1606-fix-keyvault-n…
Browse files Browse the repository at this point in the history
…ot-recoverable

Fixes 'Key Vault Not Recoverable' check
  • Loading branch information
fernando-gallego authored Feb 29, 2024
2 parents 0c90ab9 + f7350ba commit 631cd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScoutSuite/providers/azure/resources/keyvault/vaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _parse_key_vault(self, raw_vault):
vault['resource_group_name'] = get_resource_group_name(raw_vault.id)
vault['properties'] = raw_vault.properties
vault[
'recovery_protection_enabled'] = raw_vault.properties.enable_soft_delete and \
'recovery_protection_enabled'] = bool(raw_vault.properties.enable_soft_delete) and \
bool(raw_vault.properties.enable_purge_protection)
vault['public_access_allowed'] = self._is_public_access_allowed(raw_vault)
vault['rbac_authorization_enabled'] = raw_vault.properties.enable_rbac_authorization
Expand Down

0 comments on commit 631cd70

Please sign in to comment.