From ee9e8b80b792f7e80ec67a7004c527c31eab9485 Mon Sep 17 00:00:00 2001 From: Suriyakumarvijayanayagam Date: Wed, 9 Sep 2026 11:56:15 +0530 Subject: [PATCH] A backup of .env is still a copy of the camera password Editing .env leaves .env.bak- beside it, and only the anchored /.env pattern was ignored - so the backup showed up as an untracked file holding the RTSP password in plaintext, one `git add -A` away from being committed. The pattern that protects the original has to protect its copies. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Qiy5iKfz4L8S4vRaYPBdaU --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index ddac4d5..bdf9213 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,6 @@ node_modules/ # in the tree `go build ./...` fails on a fresh checkout - on a machine that may # have no npm at all. They are ~200 KB and regenerating them is one command; a # repository that does not compile is the more expensive problem. + +# Backups of .env made when editing camera credentials. +/.env.bak-*