duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.96k stars 800 forks source link

No vault access policy is set for: uat #745

Closed ozbillwang closed 4 years ago

ozbillwang commented 4 years ago

Please mention the following:

python cloudmapper.py collect --account xxx --regions ap-southeast-2

docker

Summary: 390 APIs called. 1 errors
Failures:
  glacier.get_vault_access_policy({'vaultName': 'uat', 'accountId': '-'}): An error occurred (ResourceNotFoundException) when calling the GetVaultAccessPolicy operation: No vault access policy is set for: uat

glacier.get_vault_access_policy({'vaultName': 'uat', 'accountId': '-'}): An error occurred (ResourceNotFoundException) when calling the GetVaultAccessPolicy operation: No vault access policy is set for: uat

ozbillwang commented 4 years ago

any hints for me? I can't pass this issue? Can I ignore to collect anything from glacier?

0xdabbad00 commented 4 years ago

It's just telling you there was en error and not throwing an exception. In this case the vault appears to not have a policy associated with it. Because of this, when performing an audit, CloudMapper may throw an error when checking if the Vault's policy is public or not. My expectation as the developer of CloudMapper is that by telling you there was a problem, you'll investigate it manually and be aware that any auditing associated with that resource will not be possible.

ozbillwang commented 4 years ago

Thank you for the explanation, @0xdabbad00

could we ignore the audit when we do the collection?

such as:

when we run with python cloudmapper.py collect, it collects the data only when we run with python cloudmapper.py audit, it does the audit.

Same idea,

when we run with python cloudmapper.py report with collect command only, it report the data only, no need audit details

ozbillwang commented 4 years ago

Finally I found the policy, it is not in IAM policy, but in glacier.

After clean it, the collection is fine.