mirror of
https://gitee.com/xmz7891/ykxmz.git
synced 2026-10-18 20:40:43 +00:00
演练 scrub_password_history.sh 时抓出来的:
1. _build/rotate_password.sh —— **我自己写的脚本**,
为了测「老密码应该登不上」,把老密码写进去了。
改成从 OLD_ADMIN_PASSWORD 环境变量取,不设就跳过。
(又一次证明:写测试的时候很容易顺手把秘密抄进去)
2. _build/_hdr_data/data/admin_password.txt —— 测试数据文件,
居然被 git 跟踪着。已 git rm --cached。
3. .gitignore 加了规则,以后 admin_password.txt 进不来:
admin_password.txt
*admin_password*.txt
/_build/_hdr_data/
/_build/relay_info.json
现在工作区搜不到明文密码了,只剩 git 历史里那 7 个提交
(等用户确认后再做历史重写 + 强制推送)。
81 lines
1.5 KiB
Plaintext
81 lines
1.5 KiB
Plaintext
# ---- 构建产物(不提交,release 里单独发)----
|
|
/dist/
|
|
/dist_exe/
|
|
/dist_preview/
|
|
/_build/jc*/
|
|
/_build/out*/
|
|
/_build/*.png
|
|
/_build/icon_source.png
|
|
/_build/icon_preview.png
|
|
/_build/admin_preview*.png
|
|
/_build/ui_preview.png
|
|
/_build/_unit.txt
|
|
/_tests/out_java/
|
|
/_tests/out_app/
|
|
/_tests/received/
|
|
/_tests/_stubdata/
|
|
/_tests/shots/
|
|
|
|
# ---- Python ----
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.egg-info/
|
|
.venv/
|
|
venv/
|
|
|
|
# ---- 编辑器 / 系统 ----
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
Thumbs.db
|
|
desktop.ini
|
|
.DS_Store
|
|
|
|
# ---- 其它 ----
|
|
*.log
|
|
*.tmp
|
|
|
|
# ---- PyInstaller 中间产物 ----
|
|
/_build/pyinstaller_work/
|
|
/_build/*.spec
|
|
|
|
# ---- Android 构建中间件 ----
|
|
/android/build/
|
|
/android/gen/
|
|
/android/bin/
|
|
/android/*.keystore
|
|
/android/*.jks
|
|
|
|
# ---- 其它构建产物 ----
|
|
*.pyz
|
|
*.toc
|
|
*.pkg
|
|
|
|
# ---- 大二进制(各平台单独下载,不进仓库)----
|
|
/_build/cloudflared-linux-arm64
|
|
/_build/cloudflared-linux-amd64
|
|
/_build/cloudflared*
|
|
*.exe
|
|
|
|
# ---- 测试收发的临时数据 ----
|
|
/_tests/received/
|
|
|
|
# 令牌(绝对不要进仓库)
|
|
/_build/.gitee_token
|
|
*.token
|
|
.env
|
|
# ---- 测试用的临时数据目录(会被测试脚本移来移去)----
|
|
/windows/data/
|
|
/windows/data_bk_*/
|
|
/_build/*_data/
|
|
/_build/_pairtest/
|
|
/_build/_whitetest/
|
|
/_tests/_stubdata/
|
|
/_tests/_*_data/
|
|
# ---- 密码 / 令牌(绝对不能进仓库)----
|
|
# admin_password.txt 是运行时生成的,只有本机能看。
|
|
# 一旦提交,git 历史删不掉,等于把管理台钥匙公开。
|
|
admin_password.txt
|
|
*admin_password*.txt
|
|
/_build/_hdr_data/
|
|
/_build/relay_info.json |