Skip to content

v0.6.0: see what a database or cloud delete takes with it

Choose a tag to compare

@batrapulkit batrapulkit released this 04 Oct 14:00
· 405 commits to main since this release

Before someone approves a risky database, infrastructure or cluster command, they now see what it would take with it: "Deletes 4,312 rows of 10,240 in orders", "Destroys 12 resources in workspace prod, including 1 that holds data: aws_db_instance.main", "Deletes the bucket and all 8,200 objects (14.0 GB)".

  • Databases (psql, mysql, sqlite3): DELETE, UPDATE, TRUNCATE and DROP TABLE are counted with the same WHERE, in a read-only session with a server-side timeout. The statement itself is never sent.
  • Terraform: destroy reads the state; apply reads a plan made without refresh or lock. The approver sees which resources hold data and which workspace it is.
  • AWS: S3 bucket and recursive deletes show the objects and size. RDS deletes show the engine, size, final snapshot, automated backups and deletion protection.
  • Kubernetes: kubectl delete shows the objects that match, the namespace and the cluster.

Measured on the developer's machine with the command's own credentials. If a tool isn't installed, or a measurement fails or runs out of time, it's left out. It never changes the decision.

Install this version (0.6.0)

Windows (PowerShell):

$env:SQUIDBRAKE_VERSION="0.6.0"; irm https://pilots.squidbrake.com/install.ps1 | iex

macOS / Linux:

curl -fsSL https://pilots.squidbrake.com/install.sh | SQUIDBRAKE_VERSION=0.6.0 sh

With pip: pip install squidbrake==0.6.0. Docker: docker pull ghcr.io/batrapulkit/squidbrake:0.6.0

Running the line again without SQUIDBRAKE_VERSION goes back to the newest. Every version:
https://github.com/batrapulkit/squidbrake/releases