Skip to content

fix(retirement): clean approved bucket contents and resume partial removal - #318

Merged
lweberru merged 1 commit into
mainfrom
fix/retirement-bucket-cleanup
Nov 28, 2026
Merged

lweberru merged 1 commit into
mainfrom
fix/retirement-bucket-cleanup

Conversation

@lweberru

Copy link
Copy Markdown
Collaborator

Retirement now empties the exact buckets in the reviewed native deletion Plan before applying it. Ordinary state objects otherwise block bucket/project removal, and an interrupted native Apply may already have deleted the original S3 credentials. The worker uses separately scoped, expiring cleanup credentials, requires explicit approval to delete bucket contents and versions, and verifies emptiness before the unchanged saved OpenTofu Apply.

Existing partial retirements continue from their authoritative State through a fresh Plan, without restoring deleted accounts or recreating the Landing Zone. Retention and legal holds remain enforced; permission, cleanup or credential-revocation failures stop native Apply. Cleanup progress uses the existing retirement output stream. An independent reviewed-plan helper and bilingual instructions cover Accelerator installations without the Configurator.

Validation:

  • Application check: 2,344 tests passed; 105 separately gated tests skipped.
  • Retirement bucket/worker gates: 33 passed, including a real AWS SDK HTTP/XML/SigV4 fixture that verifies Content-MD5 and deletion ordering.
  • Retirement database: 16 passed; platform database: 87 passed, including partial recovery with the original S3 credentials absent.
  • Retirement browser checks: 20 passed across desktop and mobile; standalone Python helper: 5 passed.
  • Production release guards: 9 passed; typecheck and diff checks passed.

No customer buckets were purged and no customer retirement was restarted. Dev deployment precedes production for v2.3.8.

@lweberru
lweberru merged commit 6fcc132 into main Nov 28, 2026
16 checks passed
@lweberru
lweberru deleted the fix/retirement-bucket-cleanup branch November 28, 2026 19:44
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.

1 participant