Skip to content

Commit d8c628f

Browse files
committed
feat(teardown): add logic to remove ca-bundle.PEM files during cleanup
1 parent fd52fda commit d8c628f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rebuild.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,10 @@ teardown() {
827827
find "$SCRIPT_DIR" -type f -name ".terraform.tfstate.lock.info" -delete 2>/dev/null || true
828828
success ".terraform.tfstate.lock.info files removed"
829829

830+
log "Removing all ca-bundle.PEM files..."
831+
find "$SCRIPT_DIR" -type f -name "ca-bundle.PEM" -delete 2>/dev/null || true
832+
success "ca-bundle.PEM files removed"
833+
830834
# ── Step 11: Remove saved Vault credentials when safe ────────────────────
831835
# This file is required to unseal/authenticate Vault during teardown, so we
832836
# only remove it after cleanup has completed and no armory containers remain.

0 commit comments

Comments
 (0)