-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(gcp): add check to detect persistent disks on suspended VM instances #9747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gcp): add check to detect persistent disks on suspended VM instances #9747
Conversation
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
|
✅ All necessary |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9747 +/- ##
==========================================
+ Coverage 86.60% 92.85% +6.24%
==========================================
Files 222 137 -85
Lines 5645 3387 -2258
==========================================
- Hits 4889 3145 -1744
+ Misses 756 242 -514
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
🔒 Container Security ScanImage: 📊 Vulnerability Summary
3 package(s) affected
|
|
This check is not security related, it's cost-effective related so we should discuss with the team if we want to add it or not. |
After discussing, we can include it since having permanent disks on suspended VM instances can lead also to security issues and not just costs. Please, modify the metadata to ensure it's more focused on security risks. |
…ersistent-disks-on-suspended-v-ms
…ersistent-disks-on-suspended-v-ms
danibarranqueroo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great improvement! 🚀
…nces (#9747) Co-authored-by: Daniel Barranquero <danielbo2001@gmail.com>
Context
New security check for GCP Compute Engine to detect persistent disks attached to suspended VMs. Suspended VMs with attached disks incur unnecessary storage costs and may pose security risks from forgotten data. This check helps identify these resources for cleanup or review.
Description
This PR adds a new GCP check that verifies whether suspended VMs have persistent disks still attached. The check evaluates all VM instances and reports:
Steps to review
statusfield added to theInstancemodel incompute_service.py_get_instances()compute_instance_suspended_with_persistent_disks.pymetadata.jsonfor accuracyChecklist
UI
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.