Quick reference
- It runs from one laptop, one shell, one person's memory.
- A second run makes the state worse, not the same.
- The first sign of failure is a customer message.
- Secrets live in the script, the repo, or a pinned message.
- Nobody can say what it touched, or how to undo it.
Explained
It runs from one laptop. The shell history is the documentation, the environment is the config, and the person who wrote it is the scheduler. The first holiday is an outage.
A second run makes it worse. The script appends instead of replacing and creates instead of updating, so the only safe path is a fresh account. That is a data-loss bug waiting for a retry.
The first sign of failure is a customer. No alert fires because nobody defined what success looks like, so the first report is a support ticket.
Secrets live in the script. A token in a repo, a password in a unit file, a key pasted into chat: each one is a rotation you cannot perform and a leak you cannot scope.
Nobody can say what it touched. No lock, no run id, no list of changes. Undo becomes an investigation.
The honest caveat: a fragile script that runs once a year can be cheaper than the platform you would build to replace it. Fix the ones on a schedule.
The lesson: fragility is a property of the owner, not of the language.
Your turn: Which of the five would your last incident match?
Related on this site
More notes: Automation & tooling
- P1061Release automation commands
- P1060Five rules for credential automation
- P1059Observability as code
- P1058Scaffolding a new service from a template
- P1057Four numbers for automation
- P1056Idempotent scripts and safe re-runs
- P1055Cron to systemd timer: the migration path
- P1053Designing a CLI people keep using
Open in the notes app: search, filters, copy This note on GitHub