landscape-scripts icon indicating copy to clipboard operation
landscape-scripts copied to clipboard

Remote wipe script

Open VariableDeclared opened this issue 1 year ago • 4 comments

Remote wipe script

This script will destroy any crypt devices on the target machine - comes with a warning to prevent accidental triggering

VariableDeclared avatar Sep 19 '24 14:09 VariableDeclared

thanks @Perfect5th - will action your feedback later on

VariableDeclared avatar Sep 20 '24 06:09 VariableDeclared

added those changes @Perfect5th - just need clarification on the python 3.x point

VariableDeclared avatar Sep 20 '24 12:09 VariableDeclared

Should be safety not saftey

On Wed, Sep 25, 2024, 14:13 Peter J De Sousa @.***> wrote:

@.**** commented on this pull request.

In management/remote-wipe/main.py https://github.com/canonical/landscape-scripts/pull/13#discussion_r1775847671 :

  •            return crypt
    
  • if "crypt" == block_device.get("type", ""):
  •    return block_device["name"]
    
  • return None

+def wipe(saftey_on=True, cycles=10):

  • if saftey_on:
  •    print("Safety on - not firing")
    
  •    return
    
  • block_devices = json.loads(subprocess.check_output("lsblk --json".split(" ")))
  • crypts = []
  • for block_device in block_devices["blockdevices"]:
  •    if crypt := search_for_crypt(block_device):
    

gosh typoed that - I've fixed the note should be ready now @Perfect5th https://github.com/Perfect5th

— Reply to this email directly, view it on GitHub https://github.com/canonical/landscape-scripts/pull/13#discussion_r1775847671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL7JDA32H2JWLHDHFK672LZYMDPNAVCNFSM6AAAAABOQDYZM6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMRZGMYDINJXG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

silverdrake11 avatar Sep 25 '24 19:09 silverdrake11

hi @silverdrake11 this was already fixed in the original patch - please review the latest batch of changes

VariableDeclared avatar Sep 26 '24 06:09 VariableDeclared