Repository navigation
Conversation
- 支持 WebDAV / S3 兼容对象存储定时备份,可配置频率、执行小时与保留份数 - 备份文件支持 AES-256-GCM 口令加密(PBKDF2-SHA256),密码留空即不加密 - 备份范围按数据类型拆分:数据 / 数据 + 设置,敏感值由「包含密钥」控制 - 云端与本地各自独立配置范围与加密密码,恢复统一入口(合并 / 覆盖) - 旧 BACKUP_* 配置自动迁移,JWT_SECRET 与加密密码永不进入备份文件
Owner
|
非常感谢提交这个 PR!看得出你在模块拆分( 不过经过完整审阅,从项目当前的产品定位与维护边界出发,决定 暂不将 WebDAV / S3 云端备份纳入主仓库核心,因此先关闭这个 PR,说明一下主要考量:
另外,在逐行 Review 过程中发现了一些具体的安全、合规与功能细节问题,一并整理供你在自己的 Fork 中继续维护时参考避坑:
再次感谢你的贡献与分享!这个功能在你的 Fork 中继续演进非常适合有重度异地云备份需求的用户;后续也随时欢迎针对 SubsTracker 轻量核心提交聚焦的小型改进 PR。 |
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.
背景
当前版本只支持本地 JSON 导出 / 导入,缺少定时、异地的云端备份能力。此 PR 新增 WebDAV / S3 云端备份,并把备份配置整理为「云端 / 本地」两个独立目的地。
功能
数据/数据 + 设置;敏感值由「包含密钥」控制,勾选前必须已设置对应密码scope/includeSecrets写回,避免越权恢复安全与兼容
BACKUP_INCLUDE_SECRETS/BACKUP_ENCRYPT/BACKUP_ENCRYPT_PASSWORD自动迁移到CLOUD_BACKUP_*JWT_SECRET与加密密码永不进入备份文件;WebDAV / S3 凭证不随「数据 + 设置」导出wrangler.toml,不新增运行时依赖测试
npm run lint(tsc)通过npx vitest run:27 个测试文件、296 个用例全部通过说明
配置页把原先分散的「本地导出/导入」与「云端操作」合并为
01 云端备份 / 02 本地备份 / 03 恢复,文案与交互按实际使用路径重排;WebDAV / S3 凭证并入云端备份卡,保存配置时一起提交。