Commit Graph
117 Commits
Author SHA1 Message Date
orion d75044e884 🐛 永久封存恢复前的旧取件码 2026-08-07 10:46:45 +08:00
orion 4ee06e2d29 ✨ 新增回收站审计与八位取件码 2026-08-07 10:28:22 +08:00
orion 0be5a31a59 🔀 合并 FileCodeBox 2.5.4 安全更新
同步官方 2.5.4 的初始化、安全、容量控制与上传校验,并保留 2026 主题、动态资源缓存和管理后台统计能力。

- 使用原子领取和容量预留,补齐文件校验、限流、令牌轮换与路径防护
- 保留三主题构建、2026 静态资源隔离及 TransferStats 生命周期记录
- 已通过容器生产镜像构建、23 项安全与分享回归测试、Python 编译检查和 Dockerfile 检查
2026-08-07 09:09:42 +08:00
vastsa eda0a3127a fix: add magic-byte checks, login rate limits, and non-root Docker
Close the remaining security gaps: validate upload content against
file signatures, rate-limit admin login failures with configurable
thresholds, and run the container as uid 1000 instead of root.
2026-07-23 22:23:04 +08:00
Lan ae7702603a Merge pull request #496 from vastsa/fix/pr494-security-patches
fix: harden share expiry, download token, quota SQL, and CORS
2026-07-23 19:41:40 +08:00
vastsa a41693f90d fix: harden share expiry, download token, quota SQL, and CORS
Apply the useful security fixes from PR #494 with review corrections:
validate expire_style through a shared helper, accept previous download
token window, detect SQL dialect via Tortoise capabilities, close remote
download sessions on client abort, and disable invalid CORS credentials.
2026-07-23 19:38:50 +08:00
monlor f2277e1649 support text direct downloads 2026-07-15 15:12:24 +08:00
Lan 818dd47b2a feat: add global storage capacity limit 2026-07-11 17:50:26 +08:00
Lan 8d7d856c62 fix: harden share retrieval and admin visibility (#482, #480) 2026-07-10 17:39:53 +08:00
Lan 1b6d8e7277 fix: harden share rate limit and code generation (#479) 2026-06-09 00:53:11 +08:00
orion f613d9f69e Merge remote-tracking branch 'origin/master' into test/custom-admin-ui
# Conflicts:
#	.gitignore
#	Dockerfile
#	apps/admin/services.py
#	apps/admin/views.py
#	apps/base/models.py
#	apps/base/views.py
#	core/settings.py
2026-06-05 17:01:32 +08:00
orion 85af153b38 🐛 修复下载历史重复计数 2026-06-05 16:34:07 +08:00
Lan c1fb802223 fix: #473 normalize retrieve codes before lookup 2026-06-05 11:40:11 +08:00
Lan aa6904a12c fix: #465 restrict uploads by allowed file types 2026-06-05 11:29:37 +08:00
Orion 9d978ca68e Use forked frontend builds for test admin UI 2026-06-05 11:14:13 +08:00
Lan 78b1dbe81f feat: add retrieve metadata endpoint 2026-06-03 03:17:01 +08:00
Lan f3b088fa5c feat: add retrieve metadata endpoint 2026-06-03 03:17:01 +08:00
Lan 6fe68be2dd fix: support legacy presign proxy upload URLs 2026-06-03 02:57:29 +08:00
Lan 85d402c0cd fix: support legacy presign proxy upload URLs 2026-06-03 02:57:29 +08:00
Lan 75d345e5d0 fix: accept form payloads for chunk uploads 2026-06-03 02:24:08 +08:00
Lan fb1ec9985d fix: accept form payloads for chunk uploads 2026-06-03 02:24:08 +08:00
Lan 1cc901d2b9 feat: add migration for filecodes table and update size field to BigInt 2026-02-27 23:38:27 +08:00
Lan 68464b3a9a feat: add migration for filecodes table and update size field to BigInt 2026-02-27 23:38:27 +08:00
Lan e87bcfcce5 fix: https://github.com/vastsa/FileCodeBox/issues/407 2026-01-07 20:04:44 +08:00
Lan 85074cfec8 fix: https://github.com/vastsa/FileCodeBox/issues/407 2026-01-07 20:04:44 +08:00
Lan e80be564a5 fix: https://github.com/vastsa/FileCodeBox/issues/362 2026-01-07 19:50:02 +08:00
Lan 830dd65f6a fix: https://github.com/vastsa/FileCodeBox/issues/362 2026-01-07 19:50:02 +08:00
Lan 8e57a497f7 feat: 支持S3预签名上传 2025-12-31 03:25:09 +08:00
Lan a487be2412 feat: 支持S3预签名上传 2025-12-31 03:25:09 +08:00
Lan e854eb068c fix: 自动清理过期的chunk 2025-12-01 15:24:47 +08:00
Lan a649f54c5b fix: 自动清理过期的chunk 2025-12-01 15:24:47 +08:00
Lan c1966b3942 feat: s3适配切片上传 2025-12-01 15:13:33 +08:00
Lan 3ff4e9b6cf feat: s3适配切片上传 2025-12-01 15:13:33 +08:00
Lan bd6f646f5d fix: some error 2025-12-01 11:30:52 +08:00
Lan 4f10c0800b fix: some error 2025-12-01 11:30:52 +08:00
Lan bdab5bb375 feat:code style 2025-07-05 00:02:04 +08:00
Lan d7772701ae feat:code style 2025-07-05 00:02:04 +08:00
shaw 62d1a23695 fix(base): 修复文件名中的中文编码问题
- 在 sanitize_filename 函数中添加 unquote 导入并使用其解码文件名
- 这个修改解决了非 ASCII 字符在文件名中显示为编码形式的问题
- Non-ASCll filename uploads don't comply with RFC 7578
2025-06-20 15:44:23 +08:00
shaw 400cb4caf9 fix(base): 修复文件名中的中文编码问题
- 在 sanitize_filename 函数中添加 unquote 导入并使用其解码文件名
- 这个修改解决了非 ASCII 字符在文件名中显示为编码形式的问题
- Non-ASCll filename uploads don't comply with RFC 7578
2025-06-20 15:44:23 +08:00
Lan eeb70c7f44 fix: #349 2025-05-21 00:14:40 +08:00
Lan 40cb6768b7 fix: #349 2025-05-21 00:14:40 +08:00
Lan a65cf32214 revert: 取消秒传 2025-03-01 11:20:37 +08:00
Lan 25020d673a revert: 取消秒传 2025-03-01 11:20:37 +08:00
Lan c4e398bd31 fix: share auth 2025-02-25 22:55:42 +08:00
Lan b0c4c5108b fix: share auth 2025-02-25 22:55:42 +08:00
Lan fdada809d9 wip: 切片上传、文件秒传、断点续传陆续适配中当前进度(本地存储已适配) 2025-02-23 20:49:51 +08:00
Lan b53b9f5891 wip: 切片上传、文件秒传、断点续传陆续适配中当前进度(本地存储已适配) 2025-02-23 20:49:51 +08:00
Lan d178ab04a2 feat:New database migration, new adaptation root path configuration 2025-02-16 21:53:48 +08:00
Lan cfb73fba6b feat:New database migration, new adaptation root path configuration 2025-02-16 21:53:48 +08:00
Lan 7ea1fe2e90 feat:New database migration, new adaptation root path configuration 2025-02-16 21:38:44 +08:00