fix(security): 删除 .env.production 并清理硬编码密码 #54
Reference in New Issue
Block a user
Delete Branch "fix/security-hardening-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
安全加固修复
变更内容
删除 .env.production
清理硬编码密码/密钥
scripts/smoke_public_upload_flow.py: 密码改为从环境变量SMOKE_TEST_PASSWORD读取scripts/smoke_public_boundary_flow.py: 密码改为从环境变量读取scripts/smoke_public_auth_flow.py: 密码改为从环境变量读取infra/docker/infra.yml:POSTGRES_PASSWORD改为引用环境变量${POSTGRES_PASSWORD:-changeme_in_production}packages/application/auth/jwt_handler.py: 文档示例中的密钥改为占位符<YOUR_SECRET_KEY>注意事项
POSTGRES_PASSWORD和SMOKE_TEST_PASSWORD已正确配置服务器安全扫描报告
详见
/docs/server-security-scan-report.md