Skip to content

ECI-2109 ECI-2110 look for extra security lists in vcn for deletion, auto answer oci prompts - #182

Merged
johannzhang8 merged 5 commits into
johannzhang8/eci-optimize-script-prevent-hangsfrom
johannzhang8/eci-discover-network-dependencies
Sep 2, 2026
Merged

ECI-2109 ECI-2110 look for extra security lists in vcn for deletion, auto answer oci prompts#182
johannzhang8 merged 5 commits into
johannzhang8/eci-optimize-script-prevent-hangsfrom
johannzhang8/eci-discover-network-dependencies

Conversation

@johannzhang8

@johannzhang8 johannzhang8 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What:
Identify non-default security lists as cleanup candidates while preserving the VCN’s default security list. Prompt these for deletion.
Use forced deletion for security lists and verify Identity Domain deletions remain non-interactive.

Why:
Current list operations can miss network resources attached to the Datadog VCN from another compartment. These dependencies can prevent VCN deletion and leave cleanup incomplete.
Searching by VCN association finds those resources regardless, while preserving the default security list and enforcing dependency-aware deletion keeps cleanup safe.

Testing:
Unit testing

@johannzhang8 johannzhang8 changed the title look for extra security lists in vcn for deletion, auto answer oci pr… look for extra security lists in vcn for deletion, auto answer oci prompts Aug 27, 2026
johannzhang8 and others added 2 commits August 27, 2026 17:09
Co-authored-by: Cursor <cursoragent@cursor.com>
@johannzhang8
johannzhang8 force-pushed the johannzhang8/eci-discover-network-dependencies branch from 388ff6d to ef5b82e Compare August 27, 2026 21:09
@johannzhang8
johannzhang8 marked this pull request as ready for review August 28, 2026 20:57
@johannzhang8
johannzhang8 requested a review from a team as a code owner August 28, 2026 20:57
@johannzhang8 johannzhang8 changed the title look for extra security lists in vcn for deletion, auto answer oci prompts ECI-2109 look for extra security lists in vcn for deletion, auto answer oci prompts Aug 28, 2026
@johannzhang8 johannzhang8 changed the title ECI-2109 look for extra security lists in vcn for deletion, auto answer oci prompts ECI-2109 ECI-2110 look for extra security lists in vcn for deletion, auto answer oci prompts Aug 28, 2026
],
)
)
listed_security_lists = self._list_region(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meta-review comment: This is a humongous function, maybe each resource type should have a dedicated cleanup function (or class, if that level of structure is needed), so that the bounds of changes are more clear?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was thinking this too, made a ticket for splitting this function into per resource type: https://datadoghq.atlassian.net/browse/ECI-2114

@cale-at-ddog cale-at-ddog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These specific changes look good. I'm concerned about the larger structure.

…d-dynamic-groups

ECI-2112 fix orphaned identity dynamic group cleanup, fix vault deletion call, add better timeouts
@johannzhang8
johannzhang8 merged commit d3ec2a4 into johannzhang8/eci-optimize-script-prevent-hangs Sep 2, 2026
16 checks passed
@johannzhang8
johannzhang8 deleted the johannzhang8/eci-discover-network-dependencies branch September 2, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants