auth: add auth_proxy v2 with cookie session auth
- Add auth_proxy/auth_proxy.py: Python HTTP server, bcrypt password, HMAC-SHA256 token - Add auth_proxy/auth_proxy.service: systemd service on port 9002 - Update CHANGELOG.md: v1.1.0 with auth_proxy section - Security: basicauth replaced by session cookie (7 days, HttpOnly, SameSite=Lax) - Cross-subdomain cookie via Domain=.xybkwd.top
This commit is contained in:
50
CHANGELOG.md
50
CHANGELOG.md
@ -6,3 +6,53 @@
|
||||
- 初始化仓库:README、CHANGELOG、DECISION_LOG
|
||||
- 每日运维总结机制确立
|
||||
- 首份总结:2026-06-14 服务器功能变动总结
|
||||
|
||||
## v1.1.0 (2026-06-15)
|
||||
|
||||
### Added
|
||||
- — Cookie session auth proxy 完整源码和 systemd 服务文件
|
||||
- — Python HTTPServer,bcrypt 密码验证,HMAC-SHA256 token 签名
|
||||
- — systemd 服务,port 9002,开机自启
|
||||
|
||||
### Changed
|
||||
- **安全认证升级**:Caddy basicauth → auth_proxy Cookie session
|
||||
- 所有保护服务(gitea/dashboard/books/nav/brief/todo)改为走 auth_proxy:9002
|
||||
- 新增 auth.xybkwd.top 子域作为登录入口
|
||||
- Session cookie: 7天过期,HttpOnly,SameSite=Lax,Domain=.xybkwd.top
|
||||
- 密码验证不变(bcrypt),token 签名防篡改(HMAC-SHA256)
|
||||
- — 去掉所有 basicauth,改为 reverse_proxy localhost:9002
|
||||
- 服务清单更新:books (Calibre-Web) 状态同步
|
||||
|
||||
### Fixed
|
||||
- 移动端重复登录问题:basicauth 每 ~1 小时要求重新输入密码
|
||||
- Cookie 跨子域失效:缺 Domain=.xybkwd.top 导致各子域不共享 cookie
|
||||
- Set-Cookie 值带多余引号:浏览器拒绝该 cookie
|
||||
|
||||
### Security
|
||||
- 认证安全性不变:bcrypt + HMAC-SHA256,无明文密码传输
|
||||
- 公开服务(blog/vaultwarden/memos)不经过 auth_proxy,不受影响
|
||||
|
||||
## v1.1.0 (2026-06-15)
|
||||
|
||||
### Added
|
||||
- — Cookie session auth proxy 完整源码和 systemd 服务文件
|
||||
- — Python HTTPServer,bcrypt 密码验证,HMAC-SHA256 token 签名
|
||||
- — systemd 服务,port 9002,开机自启
|
||||
|
||||
### Changed
|
||||
- **安全认证升级**:Caddy basicauth → auth_proxy Cookie session
|
||||
- 所有保护服务(gitea/dashboard/books/nav/brief/todo)改为走 auth_proxy:9002
|
||||
- 新增 auth.xybkwd.top 子域作为登录入口
|
||||
- Session cookie: 7天过期,HttpOnly,SameSite=Lax,Domain=.xybkwd.top
|
||||
- 密码验证不变(bcrypt),token 签名防篡改(HMAC-SHA256)
|
||||
- — 去掉所有 basicauth,改为 reverse_proxy localhost:9002
|
||||
- 服务清单更新:books (Calibre-Web) 状态同步
|
||||
|
||||
### Fixed
|
||||
- 移动端重复登录问题:basicauth 每 ~1 小时要求重新输入密码
|
||||
- Cookie 跨子域失效:缺 Domain=.xybkwd.top 导致各子域不共享 cookie
|
||||
- Set-Cookie 值带多余引号:浏览器拒绝该 cookie
|
||||
|
||||
### Security
|
||||
- 认证安全性不变:bcrypt + HMAC-SHA256,无明文密码传输
|
||||
- 公开服务(blog/vaultwarden/memos)不经过 auth_proxy,不受影响
|
||||
|
||||
Reference in New Issue
Block a user