Skip to content

ECI-2112 fix orphaned identity dynamic group cleanup, fix vault deletion call, add better timeouts - #183

Merged
johannzhang8 merged 3 commits into
johannzhang8/eci-discover-network-dependenciesfrom
johannzhang8/eci-cleanup-orphaned-dynamic-groups
Aug 31, 2026
Merged

ECI-2112 fix orphaned identity dynamic group cleanup, fix vault deletion call, add better timeouts#183
johannzhang8 merged 3 commits into
johannzhang8/eci-discover-network-dependenciesfrom
johannzhang8/eci-cleanup-orphaned-dynamic-groups

Conversation

@johannzhang8

@johannzhang8 johannzhang8 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What:
Detect and prompt for deletion orphaned Datadog dynamic groups when their associated IAM policy is already absent.
Delete dynamic groups before their IAM policy and preserve the policy if group cleanup is incomplete.

Continue IAM cleanup despite unrelated regional failures.

Remove Resource Manager stack records even when their Terraform destroy job fails.

Fix vault deletion by using the vault OCID without an incorrect management endpoint.
Treat already-absent functions and VNIC attachments as successfully cleaned up.

Use three-minute read timeouts and extended ten-minute deletion timeouts.

Why:
Partially deleted installations can leave dynamic groups behind after their validating policy disappears.
Terraform destroy job can just fail a lot, and since the script delete the resources manually anyways, it does not matter if the destroy job succeeds for fails.

Testing:
Chaos testing on ddevint1
Unit testing

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 force-pushed the johannzhang8/eci-cleanup-orphaned-dynamic-groups branch from b357c59 to 1ab3873 Compare August 27, 2026 21:09
@johannzhang8 johannzhang8 changed the title fix orphaned identity dynamic group cleanup ECI-2112 fix orphaned identity dynamic group cleanup, fix vault deletion call, add better timeouts Aug 31, 2026
@johannzhang8
johannzhang8 marked this pull request as ready for review August 31, 2026 13:31
@johannzhang8
johannzhang8 requested a review from a team as a code owner August 31, 2026 13:31
@johannzhang8
johannzhang8 requested a review from yuhuyoyo August 31, 2026 13:31
@johannzhang8
johannzhang8 merged commit 1314f39 into johannzhang8/eci-discover-network-dependencies Aug 31, 2026
16 checks passed
@johannzhang8
johannzhang8 deleted the johannzhang8/eci-cleanup-orphaned-dynamic-groups branch August 31, 2026 17:26
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