Skip to content

ECI-2103 ECI-2110 Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution - #180

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 8 commits into
masterfrom
johannzhang8/eci-optimize-script-prevent-hangs
Sep 2, 2026
Merged

ECI-2103 ECI-2110 Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution#180
gh-worker-dd-mergequeue-cf854d[bot] merged 8 commits into
masterfrom
johannzhang8/eci-optimize-script-prevent-hangs

Conversation

@johannzhang8

@johannzhang8 johannzhang8 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What:
Add a three-minute timeout to OCI CLI commands so cleanup cannot hang indefinitely.
Filter Identity Domain queries server-side to retrieve only relevant Datadog users, groups, dynamic groups, and policies.
Log progress while searching Identity Domains.
Skip subscribed regions where the caller receives authorization errors.
Collect regional stack deletion approvals before parallel cleanup begins.
Delete an explicitly supplied parent stack without requiring ownership tags or an additional prompt.
Improve deletion prompts by including resource OCIDs and correct tag-namespace wait-state handling.

Why:
Cleanup could become slow or hang while searching large or inaccessible Identity Domains. Interactive regional-stack prompts could also occur from worker threads after cleanup started, which caused script hangs.

These changes make discovery bounded, reduce unnecessary API pagination, tolerate inaccessible regions, and present destructive confirmations before concurrent cleanup begins.

Testing:
Unit tests, and runs on ddevint1

@johannzhang8 johannzhang8 changed the title enact a timeout + optimizations when looking at other identity domains Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution Aug 28, 2026
@johannzhang8
johannzhang8 marked this pull request as ready for review August 28, 2026 20:36
@johannzhang8
johannzhang8 requested a review from a team as a code owner August 28, 2026 20:36
@johannzhang8 johannzhang8 changed the title Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution ECI-2103 Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution Aug 28, 2026
@johannzhang8 johannzhang8 changed the title ECI-2103 Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution ECI-2103 ECI-2110 Enact a timeout for oci operations, make optimizations when looking at other identity domains, and resolve deletion of regional stacks at the beginning of execution Aug 28, 2026
…d-dynamic-groups

ECI-2112 fix orphaned identity dynamic group cleanup, fix vault deletion call, add better timeouts
…k-dependencies

ECI-2109 ECI-2110 look for extra security lists in vcn for deletion, auto answer oci prompts
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit be163ec into master Sep 2, 2026
18 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the johannzhang8/eci-optimize-script-prevent-hangs branch September 2, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants