Marrrrrrrrry
c7b5eabe7c
refactor: single canonical snake_case keys across admin/share APIs (D7)
...
Drop the message/msg envelope twin, all camel+snake dual-field response
pairs (file list/detail/policy/storage, dashboard counters, batch op
counts, status insights, presets, metadata), and camel request fields
(clearExpiredAt, downloadLimit, sortBy/sortOrder, maxChars). Stored
KeyValue JSON (metadata, presets, activities) keeps legacy-key read
fallbacks so existing deployments normalize transparently.
2026-09-11 03:10:04 +08:00
Marrrrrrrrry
a49727b63d
refactor: move admin update_file orchestration into FileService (2.3)
2026-09-11 02:56:02 +08:00
Marrrrrrrrry
0038636a2a
fix: serialize KeyValue JSON read-modify-write sections behind a process lock (D5)
...
settings/activities/view-presets are whole-blob KeyValue rows; concurrent
admin operations could silently drop each other's writes (last-writer-wins).
Single-worker deployment assumption documented; lock is process-local.
2026-09-09 19:09:14 +08:00
Marrrrrrrrry
bb95017aa3
fix: save_file accepts plain binary streams; repair admin local file share (D2)
...
- storage contract drops UploadFile in favor of BinaryIO (+content_type param),
completing the framework decoupling of the storage layer
- LocalFileClass.read() leaked an open fd and its handle was passed where
save_file expected UploadFile — /admin/local/share 500ed on every call;
now reads bytes via with-block and shares correctly (regression tests added)
- OneDrive save_file additionally had save_path called as a function — fixed
2026-09-09 18:53:31 +08:00
Marrrrrrrrry
61d72ab6cc
perf: cache settings refresh behind a 2s TTL, force refresh on write paths (D6)
2026-09-09 18:47:40 +08:00
Marrrrrrrrry
5121db6edc
feat: rename all config keys to snake_case with DB migration 007
...
- 20 camelCase keys (uploadSize, expireStyle, openUpload, ...) renamed across
DEFAULT_CONFIG, settings accessors, setup form fields, and ConfigService
- migrations_007 renames keys inside the existing settings KeyValue row,
preserving all values for existing deployments
- schema guard meta-test keeps future keys declared
2026-09-09 18:09:19 +08:00
Marrrrrrrrry
832266101e
refactor: storage returns StoredDownload data; view layer builds starlette responses
2026-09-09 17:13:34 +08:00
Marrrrrrrrry
892fb24ffc
refactor: storage layer accepts plain StoredFile refs and caller-fetched chunk records (core/ is now ORM-free)
2026-09-09 17:05:38 +08:00
Marrrrrrrrry
3396644da3
refactor: move config and tasks modules from core to apps/base (core no longer imports apps)
2026-09-09 17:00:42 +08:00
Marrrrrrrrry
4cab625d5a
fix: validate background config as http(s) URL to close CSS quote-breakout in 2023 theme
2026-09-09 16:21:35 +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
vastsa
00f3abd3b2
fix: patch CVE dependencies and path traversal risks
...
Upgrade aiohttp and related packages, harden local file and storage path checks, tighten password/JWT comparisons, and default Docker forwarded IP trust to empty.
2026-07-21 14:49:30 +08:00
Lan
818dd47b2a
feat: add global storage capacity limit
2026-07-11 17:50:26 +08:00
Lan
93ff291366
feat: configure admin session lifetime ( #484 )
2026-07-10 19:21:00 +08:00
Lan
cdaf3638b8
feat: add first-run setup security flow
2026-06-16 00:49:43 +08:00
Lan
135dfdda9d
fix : #464 serialize admin file list items safely
2026-06-05 11:28:22 +08:00
Lan
b859ec211e
refactor: remove settings diagnostics recommendations
2026-06-03 10:37:17 +08:00
Lan
8ac367d0b8
refactor: remove admin recommendation summaries
2026-06-03 10:24:07 +08:00
Lan
63cf725802
feat: add admin file view summary
2026-06-03 10:00:58 +08:00
Lan
ccbc710d74
feat: add admin maintenance queue
2026-06-03 08:18:41 +08:00
Lan
2d18b02005
feat: add admin config diagnostics
2026-06-03 08:01:55 +08:00
Lan
e75fe596d0
feat: add admin operational insights
2026-06-03 07:47:33 +08:00
Lan
be7ce2b30e
feat: add admin activity timeline filters
2026-06-03 07:36:48 +08:00
Lan
0dbb594f4a
feat: add admin activity stream
2026-06-03 07:19:56 +08:00
Lan
b6aa28c345
feat: add admin file view presets
2026-06-03 07:01:38 +08:00
Lan
fc6046a663
feat: add admin file metadata
2026-06-03 06:37:56 +08:00
Lan
3467e973ac
feat: add batch file policy actions
2026-06-03 06:22:56 +08:00
Lan
a1de598277
feat: add dashboard health actions
2026-06-03 06:15:15 +08:00
Lan
1ba0d2a044
feat: add admin file health filters
2026-06-03 05:55:18 +08:00
Lan
1f0b0b791c
feat: add admin file policy actions
2026-06-03 05:45:02 +08:00
Lan
4ae53fc4a5
feat: add admin file detail insights
2026-06-03 05:28:11 +08:00
Lan
35e069ccc3
feat: add admin file detail endpoint
2026-06-03 04:58:19 +08:00
Lan
2fa1faebe0
feat: add admin batch file policy update
2026-06-03 04:38:30 +08:00
Lan
0ced9b1f38
feat: add admin batch file deletion
2026-06-03 04:24:16 +08:00
Lan
1eb69e4cc5
feat: add admin text preview endpoint
2026-06-03 04:05:52 +08:00
Lan
71fc1ad8ea
feat: enhance admin file list filters
2026-06-03 03:45:30 +08:00
Lan
6805206efd
fix: tolerate partial config updates
2026-06-03 03:08:19 +08:00
Lan
5a889bab47
feat: enhance file retrieval by using Pydantic models for serialization
2026-01-25 20:53:04 +08:00
Lan
da5dc378a7
fix: return a dictionary from get_config method in ConfigService
2026-01-24 11:28:32 +08:00
Lan
3074d9ba2e
feat: https://github.com/vastsa/FileCodeBox/issues/442 密码进行hash存储
2026-01-07 20:36:59 +08:00
Lan
bd6f646f5d
fix: some error
2025-12-01 11:30:52 +08:00
Lan
1ff1d6c695
style: code format
2025-02-15 22:00:53 +08:00
Lan
78c612c660
feat: 2023主题适配新登录模式
2025-02-09 23:33:43 +08:00
Lan
019684787a
feat:新UI上线测试,问题可能比较多,稳定用户不建议用beta,请使用latest
2024-11-23 17:06:40 +08:00
Lan
cc3a521d31
refact: some codes
2024-10-06 17:14:16 +08:00