# Entry 4 (16 to 22 Feb): The config file anyone could overwrite

Serban Petrescu. 16 to 22 Feb 2026

The configuration of a school learning app lived in one JSON file in S3, so a settings change went live on the next restart without a client release. By February that file had grown past a dozen sections, and anyone with cloud access could replace it whole. There was no version control, no schema check, and no review.

Users reported two broken features in mid-February. One embedded module would not open in its own window, and auto-login failed for a second module. The configuration file held a base block for all users and a second override block with the same structure, filtered to developer and test email addresses. Repeating the same structure made the file confusing and error-prone, so it was easy to edit one copy and overlook the other. The first fix went only into the override, so it worked for developers and missed students.

Three days later both fixes were gone. A colleague changed recording settings, a section that had nothing to do with either feature, and uploaded a local copy he had downloaded before the fixes. The upload replaced the entire file. Nothing flagged it. Users kept hitting the broken flows for days until support reported the same problems again.

![Seven days of fixes, silent reverts, and repeat reports](https://wseng.ai/images/posts/week-08-config-regressions.png)

Two one-line fixes, silently reverted by an unrelated upload
- Window module: opens in own window. fixed Feb 11, reverted Feb 14, broken Feb 15 to 17, reported Feb 17, fixed Feb 18
- Login module: auto-login on one tenant. fixed Feb 11, reverted Feb 14, fixed Feb 16
- Feb 11: one S3 file has matching base and override blocks. fix lands only in developer and test email override, so students miss it
- Feb 14: stale recording-settings upload replaced the whole file
- Feb 18: final fix had a corrupt key name
- Action: config in git, schema check in CI, pipeline as sole writer, per-feature files
- Caption: fix, silent revert, complaint. three rounds for one module, two for the other
- February 2026


The second round of fixes took two days to land in full. The login module was repaired first, and the window module stayed broken because the louder report drew all the attention. The final fix on 18 February introduced a new defect of its own. An edit, most likely from an AI assistant, appended a stray character to a key name, the app no longer recognized the key, and nothing rejected it. Somebody had to compare stored versions of the file by hand to find it. Over seven days one module went through three rounds of fix and revert, and the other through two.

Every individual fix was trivial. The cost sat entirely in the loop of fix, silent revert, complaint, and re-investigation. The incident review on 18 February named the actions that break the loop. Config moves into git, every change goes through a pull request with a visible diff, and a schema check in CI rejects unknown keys. A deploy pipeline is the only writer, and direct uploads are denied outright. The file splits per feature, so a recording change cannot physically touch login settings. Scheduled canary runs log in as a synthetic test user and confirm the critical paths still work.

A day earlier I had published our AI engineering maturity spec, arguing that rigor has to rise with automation. This incident was the argument in miniature. A change that is fast and unchecked works until it overwrites something nobody was watching.
