rwadurian/backend/mpc-system
Developer 0604255ba8 fix(mpc-system): 修复 PostgreSQL 认证配置问题
问题原因:
- 部署脚本使用 POSTGRES_PASSWORD 环境变量
- Go 代码使用 MPC_DATABASE_PASSWORD 环境变量 (Viper 前缀)
- 变量名不匹配导致数据库认证失败

修复内容:
- configure_postgres() 改用 MPC_DATABASE_* 环境变量
- 添加 pg_hba.conf 配置,将 peer/scram-sha-256 改为 md5 认证
- 添加 GRANT ALL ON SCHEMA public 权限
- 使用 127.0.0.1 而非 localhost 进行连接
- 新增 reconfigure 命令用于修复现有安装

服务器修复步骤:
  sudo ./scripts/deploy.sh reconfigure
  sudo ./scripts/deploy.sh restart

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 00:13:24 -08:00
..
.claude . 2025-11-29 07:14:44 -08:00
api feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00
docs docs: Add detailed DDD + Hexagonal architecture documentation 2025-11-29 07:13:38 -08:00
migrations > 2025-11-29 01:35:10 -08:00
pkg feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00
scripts fix(mpc-system): 修复 PostgreSQL 认证配置问题 2025-12-02 00:13:24 -08:00
services feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00
tests feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00
.env.example feat(mpc-system): 优化 Docker 部署配置适配生产环境 2025-12-01 21:59:01 -08:00
MPC-Distributed-Signature-System-Complete-Spec.md > 2025-11-29 01:35:10 -08:00
Makefile > 2025-11-29 01:35:10 -08:00
TEST_REPORT.md > 2025-11-29 01:35:10 -08:00
config.example.yaml feat: Complete production deployment configuration 2025-11-29 04:10:06 -08:00
docker-compose.yml feat(mpc-system): 优化 Docker 部署配置适配生产环境 2025-12-01 21:59:01 -08:00
get-docker.sh > 2025-11-29 01:35:10 -08:00
go.mod feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00
go.sum feat: Complete MPC TSS implementation with t-of-n threshold signing 2025-11-29 06:57:53 -08:00