dotnet / dnceng

.NET Engineering Services
MIT License
24 stars 18 forks source link

Regularly find and delete vestigial objects in .NET Engineering Services Subscriptions #1274

Open dotnet-bot opened 2 years ago

dotnet-bot commented 2 years ago

While we have S360 alerts for various things, we need a way to know if unwanted objects exist. More often than not these are non-maliciously created objects that happen to have fallen through the cracks on the way to being deleted Any such automation would want to run infrequently (less than daily) to avoid API throttling.

Epic Goals:

Epic completion criteria:

Subscriptions we need to monitor:

Definitely:

Priority 0: Manual cleanup of known cruft: (Complete)

Take a first couple of passes at obviously dead objects in our Azure subscriptions and delete them.

Deliverable Owner Completion Status
Clean up unused build pools and document the rest @MattGal 22 March 2022 Complete
Clean image factory base images in helix-image-factory-westus2 @MattGal 29 March 2022 Complete
Deprecate Helix build pools and pool provider @MattGal 29 March 2022 Complete
Automate cleanup of any Helix agent log files older than 30 days and offline agent files for non-heartbeating agents @MattGal 15 April 2022 Complete
Automate cleanup of Helix offline blob storage blobs @MattGal 15 April 2022 Complete

Priority 1: Inventory Automation and process documentation

The known places above (log storage, VHD storage, blobs for cancellation / online/offline) have been already cleaned up, but another source for spending money unnecessarily is objects created within the subscription that continue to incur cost for things that we're not currently using

Deliverable Owner Completion Status
Create inventory tool to flag unexpected objects found in DncEng subscriptions for review TBD TBD Not Started
Create vendor process docs for DncEng inventory automation monitoring TBD TBD Not Started

Recently Triaged Issues

All issues in this section should be triaged by the v-team into one of their business objectives or features.

MattGal commented 2 years ago

I have merged the changes for helix offline blobs / cancellation blobs, and agent logs, and will monitor these until they roll out.

However, in the interest of focusing on having more than one person per epic, I am putting this one back onto the backlog after filling out some Epic table-y stuff for it.