chore: miscellaneous cleanup and security hardening #2363
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Summary
Collection of small maintenance tasks:
# TODO scope the cleanup to the current projectcomment insync_gcp_subnets— already tracked by GCP cleanup jobs should be scoped to the current project #381.test_cleanup_not_scoped_to_project→test_vpc_cleanup_scoped_to_projectto match actual test behavior (cleanup IS scoped, test verifies other projects' VPCs are preserved).EC2Instanceto the MATCH path incis_aws_5_1_unrestricted_sshandcis_aws_5_2_unrestricted_rdpso findings traverseEC2Instance→EC2SecurityGroup→IpPermissionInbound→IpRange.Related issues or links
license = "Apache-2.0"andinclude = ["cartography*"]excludes docs/tests from wheel)Breaking changes
None.
How was this tested?
No functional changes
Checklist
General
make lint).Proof of functionality
Notes for reviewers
use-trusted-publishingsuggestion for PyPI — switching to trusted publishing requires PyPI project configuration and is out of scope for this PR.EC2Instanceto the MATCH path; output models, field names, andasset_id_fieldare unchanged.