Repository navigation
[admin] 支付后台并入 app-admin + 登录安全加固 - #172
Merged
Merged
Conversation
- 退役 app-pay-admin:订单/会员/权益事件/SKU/回调、补偿开通、退款复核迁入 app-admin + frontend-admin - 统一 admin_user/admin_session/admin_audit、控制台账户管理与支付域第二 GORM 连接 - 登录安全:设备指纹绑定、会话 IP 绑定(exact/subnet)、可信代理真实 IP、IP+账户双限流、登录/新设备/新 IP/会话异常审计 - CORS 仅精确 Origin、放行 X-Device-Id、CORP/COOP 安全头;部署、CI、文档同步退役 app-pay-admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
将独立服务
app-pay-admin退役并合并进统一管理后台app-admin(app-go/app-adminAPI +frontend-adminSPA),统一账户、会话、角色、审计与部署入口;同时完成 admin 登录安全加固。主要变更
支付后台合并
/api/pay/*FOR UPDATE+ 日额度熔断 + 三留痕app_pay第二 GORM 连接;pay_*schema 仍归 app-pay/Java Flyway,绝不 migrate/api/console/users(重置密码踢会话、禁止删自己/最后一个 admin)登录安全
/api/*带X-Device-Id,会话绑定 SHA-256(deviceId+UA+语言);strict|id|offexact|subnet(IPv4 /24、IPv6 /64,可配),不匹配删会话 + 审计APPADMIN__SECURITY__TRUSTED_PROXIES内 peer 的 X-Forwarded-*login_failed/login_new_device/login_new_ip/session_*_mismatch审计*/null),放行X-Device-Id;新增 CORP/COOP 安全头admin_session.device_hash幂等迁移(仅动自有表)退役与部署
app-pay-admin/、:8003、pay-adminprofile、独立 SSR/TLS/certgen、ci-pay-admin.ymldocs/app-admin.md,同步架构/配置/部署/API/FAQ 等,清理计划编号引用破坏性变化 / 上线注意
device_hash,升级后需重新登录X-Device-Id(POST 还需同源Origin)payadmin_user账户不迁移,需在「账户」页重建PAY_OPS_KEY变为可选:留空仅退款复核页隐藏docs/app-pay-admin.md与app-pay-admin代码目录验证
cd app-go/app-admin && gofmt -l . && go vet ./... && go test -count=1 ./... && go build ./...✅CGO_ENABLED=0 GOOS=linux go build ./...✅cd frontend-admin && pnpm build(tsc + vite)✅docker compose config --quiet(主/client)✅、kubectl kustomize deploy/k8s✅关联
feat/admin-pay-merge-security