purefa_zte - new module for Zero Touch Erasure (ZTE) - #1015
Draft
sdodsley wants to merge 5 commits into
Draft
Conversation
Adds a new purefa_zte module that performs Zero Touch Erasure (ZTE) on a
FlashArray using the /arrays/erasures REST endpoints (post/get/patch/delete).
The module exposes the three documented ZTE phases via a state parameter:
- start - Phase 1, securely wipe drives and generate the sanitization
certificate (post_arrays_erasures)
- status - report process status and return the sanitization certificate
(get_arrays_erasures), non-destructive, the default
- finalize - Phase 3, finalize the reset, optionally reinstalling the image
(patch_arrays_erasures)
- cancel - cancel a failed reset (delete_arrays_erasures)
Destructive phases require an explicit eradicate=true safety acknowledgement,
the module supports check_mode, gates on REST API 2.34, and is registered in
meta/runtime.yml.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sdodsley
marked this pull request as draft
June 25, 2026 21:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Adds a new
purefa_ztemodule to perform Zero Touch Erasure (ZTE) — a secure, self-service factory reset of a FlashArray to a factory-fresh state (Purity//FA 6.6.8+, REST-API only).The module maps the three documented ZTE phases onto the existing
/arrays/erasuresREST endpoints via astateparameter:start— Phase 1: securely wipe drives and generate the NIST SP800-88R1 sanitization certificate (post_arrays_erasures)status— report process status and return the sanitization certificate (get_arrays_erasures); non-destructive, the defaultfinalize— Phase 3: finalize the reset, optionally reinstalling the image (patch_arrays_erasures+ArrayErasurePatch)cancel— cancel a failed reset (delete_arrays_erasures)Design decisions:
start,finalize) require an expliciteradicate: truesafety acknowledgement; nothing is destructive by default.statusreturnssanitization_certificateso it can be saved before finalize (it is unrecoverable afterwards).skip_phonehome_check,image_source(URL/path) andimage_version; phoning-home arrays useimage_source: auto.check_modesupported; gated at REST API 2.34; registered inmeta/runtime.yml; added to the README module list.ISSUE TYPE
COMPONENT NAME
purefa_zte
ADDITIONAL INFORMATION