Product Diaryby Remnant Security

mac-bin Now Backs Up Git History and Restores Network Settings

Product Diary1 min readApps

My rebuild-a-Mac kit now mirrors every code repository to GitHub nightly and restores network settings, and it caught repositories holding old secrets.

My Mac rebuild kit got a safety net for the one thing it couldn't rebuild: my own code. Every night it now mirrors my repositories to GitHub, and once a week it reports any work that exists nowhere but this machine. The restore side also learned to bring back network settings, name servers, the private network link and a set of system preferences. Fourteen changes landed on 1 December.

Setting up the mirror turned up a worse problem. Two projects, AI Mesh and Hermes Fleet, were held back from the first push because old commits contained secrets. I cleaned both and pushed them later in the afternoon, along with two more projects that needed the same check. A scanner rule now allows one all-zero placeholder key that kept tripping it. I'm not saying here which keys were involved, and I haven't confirmed the keys themselves were rotated. A first full clone is allowed three hours, and the log now says why any repository failed.

The other addition is a script that moves the few secrets a restore cannot rebuild into Bitwarden. Its first version told a logged-out command line to open the vault, which was the wrong instruction, so it now says to log in. I fixed the network capture too: it no longer builds shell strings from what it reads, and the apply script quotes its inputs. Browser bookmarks are deliberately left out of the restore, and the restore notes now say so. The kit also now captures my iTerm2, voice dictation and DeepSeek setups.

I did not run the new network and settings restore on a blank machine. The 30 November test on a fresh macOS 27.2 virtual machine predates all of this, so today's additions are untested end to end.

Keep reading