google / cloud-forensics-utils

Python library to carry out DFIR analysis on the Cloud
Apache License 2.0
453 stars 89 forks source link

Add exception handling around resource ancestry #399

Closed jonathan-greig closed 2 years ago

jonathan-greig commented 2 years ago

When querying resource ancestry for an instance it will be a common scenario that you will only have permissions on the project but not the folder or organisation. When GetResource is called on these resources it will raise an exception.

It would be preferable to handle this exception and just return whatever ancestry information can be collected e.g. maybe can only return organisation ID but not name.