<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ops Safety on SRE Engineering Practice</title><link>https://www.sre.wang/en/tags/ops-safety/</link><description>Recent content in Ops Safety on SRE Engineering Practice</description><image><title>SRE Engineering Practice</title><url>https://www.sre.wang/share-card-square.jpg</url><link>https://www.sre.wang/share-card-square.jpg</link></image><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 30 Nov 2026 15:34:34 +0800</lastBuildDate><atom:link href="https://www.sre.wang/en/tags/ops-safety/index.xml" rel="self" type="application/rss+xml"/><item><title>The Cleanup Script Exited 0 and Reported Success — Then Scaling Blew Up Three Days Later: 7 Shell Safety Audits to Run Before Any Script Goes to Production</title><link>https://www.sre.wang/en/posts/shell-script-security-audit/</link><pubDate>Mon, 30 Nov 2026 15:34:34 +0800</pubDate><guid>https://www.sre.wang/en/posts/shell-script-security-audit/</guid><description>A nightly cleanup script deleted the live release directory that production was still running from, and it exited 0. The failure surfaced three days later during a scale-up. This post replays the incident and lays out seven pre-production safety audits for shell scripts: empty-variable target validation, three blind spots of set -e, swallowed pipeline errors, quoting and globbing, guardrails for destructive commands, flock concurrency locks, and temp-file plus signal cleanup — with ShellCheck gate configuration and measured before/after numbers.</description></item></channel></rss>