security: 移除 72 个 nacos-data 配置快照的 git 跟踪
这些文件是 Nacos 客户端自动生成的配置快照缓存(早期提交 f3b26e6d 一次性 加入,早于 .gitignore 规则),其中含 username/password/token 明文。 gitignore 只对未跟踪文件生效,因此必须先解除跟踪才能让规则起作用。
- git rm --cached 移除 72 个文件的索引记录,本地磁盘文件保留
- 涉及 crm/、location/、location_map/、linhuiba_admin/、orm/、pms/、 saasadmin/、SYZZ/ 及根目录 nacos-data/
- 已确认 72 个文件全部为配置快照,不含 Python 源码 (SYZZ/.../test_query_page_list.py 虽为 .py 后缀,实际内容是 JSON 配置)
- 移除后 .gitignore 的 nacos-data/ 规则恢复生效
注意:历史提交中仍存在明文凭据,需另行轮换账号密码/token, 必要时再用 git filter-repo 清理历史