Commit Graph

13 Commits

Author SHA1 Message Date
Estrella Pan
b57d3c49ae feat(security): add security config UI and improve auth/MCP security
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 17:19:14 +01:00
Estrella Pan
c7c709fa66 fix(security): harden auth, JWT, WebAuthn, and API endpoints
- Persist JWT secret to config/.jwt_secret (survives restarts)
- Change active_user from list to dict with timestamps
- Extract username from cookie token instead of list index
- Add SSRF protection (_validate_url) for setup test endpoints
- Mask sensitive config fields (password, api_key, token, secret)
- Add auth guards to notification test endpoints
- Fix path traversal in /posters endpoint using resolved path check
- Add CORS middleware with empty allow_origins
- WebAuthn: add challenge TTL (300s), max capacity (100), cleanup
- Remove hardcoded default password from User model
- Use timezone-aware datetime in passkey models
- Adapt unit tests for active_user dict and cookie-based auth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 11:46:12 +01:00
100gle
3ead13f4b0 chore(format): fix the ruff checking issue 2023-10-02 13:16:31 +08:00
EstrellaXD
d6b36e5225 change:
- add random pwd_key.
- backend auth change from Auth token to cookies
2023-09-06 21:19:59 +08:00
EstrellaXD
6cac596d85 fix: leak of response model. 2023-08-13 18:13:25 +08:00
EstrellaXD
560a0fa97b fix: run bugs. 2023-08-12 16:44:46 +08:00
EstrellaXD
dd5c918703 change: change rss item database, add more option for split rss link. 2023-08-12 15:40:43 +08:00
EstrellaXD
0b053c9312 fix: api bugs, collect bug. 2023-08-10 19:59:01 +08:00
EstrellaXD
ba7c9f6c69 chore: add response func in api module. 2023-08-08 19:16:57 +08:00
EstrellaXD
1c4e8dc293 fix: old data support problem. 2023-08-07 20:14:45 +08:00
zthxxx
70716a19f7 feat: support parse config file with Variable Expansion for some secret key 2023-06-09 02:18:00 +08:00
100gle
082667f5c6 feat: make router be modular and isolated 2023-06-08 22:18:13 +08:00
zthxxx
069a86faa0 chore: move Auto_Bangumi/src -> Auto_Bangumi/backend/src, prepare for merge WebUI repo 2023-06-06 22:33:00 +08:00