
harukaandClaude Opus 4.8
b08cab91a9
feat(image-storage): 异步生图对象存储改为后台配置,保存即生效
此前开启异步生图必须改服务器上的 config.yaml 并重启容器(#4542),且若想
复用已配置的备份 S3,还得把同一套凭证再填一遍(#4458)。
- 新增 ImageStorageSettingService:配置存 settings 表,SecretAccessKey 经
SecretEncryptor 加密落库、读回脱敏、留空表示沿用旧值,与备份 S3 配置同一套做法。
- reuse_backup_s3(默认开)直接借用 backup_s3_config 的端点与密钥,只用自己的
bucket/prefix 区分对象,因此备份走 backups/、图片走 images/,且密钥不会在库里存两份。
- ImageTaskService 的启用状态改由 ImageStorageResolver 在运行时解析并缓存,
保存设置后 Invalidate 使下次请求重建客户端——不再需要重启。
- repository 侧由提供实例改为提供工厂,客户端才可能在运行期重建。
- 轮询接口的门控从 enabled() 放宽为 Pollable():关掉开关只拒绝新提交,
已受理的任务仍可取回结果,不再被中途吞掉。
- config.yaml 的 image_storage 保留为回落,后台从未保存过时沿用,
升级前已用配置文件开启的部署不受影响。
- 管理端 GET/PUT/POST /admin/backups/image-storage,PUT 与备份 S3 配置一样要求
step-up 2FA:改写存储目标同样能把生成内容导向外部账号。
注:go generate ./cmd/server 在当前 upstream 基线上即失败(securityaudit.
PromptAdminService 缺 provider),故 wire_gen.go 为手工同步。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VHreE5pzCkSYz7J45fmd2Y
2026-07-19 00:56:21 -07:00
..
2026-07-14 09:49:57 +08:00
2026-05-14 11:46:24 +08:00
2026-07-15 10:51:13 +08:00
2026-07-13 19:49:56 +08:00
2026-07-15 16:07:09 +08:00
2026-07-14 16:18:26 +08:00
2026-07-14 16:18:26 +08:00
2026-04-09 18:14:28 +08:00
2026-07-01 12:21:45 +08:00
2026-07-15 09:40:08 +08:00
2026-06-16 11:39:15 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2026-05-20 15:44:00 +08:00
2026-02-02 22:13:50 +08:00
2026-05-03 22:12:57 +08:00
2026-05-03 22:12:57 +08:00
2026-05-03 22:12:57 +08:00
2026-05-20 15:52:00 +08:00
2026-04-21 10:13:28 -07:00
2026-04-09 18:14:28 +08:00
2026-05-14 16:38:45 +08:00
2026-01-03 06:37:08 -08:00
2026-01-03 06:37:08 -08:00
2026-02-02 22:13:50 +08:00
2026-06-05 14:00:57 +08:00
2026-07-11 17:31:30 +08:00
2026-05-07 09:14:47 +08:00
2026-07-08 15:51:22 +08:00
2026-07-16 18:18:28 +08:00
2026-07-16 13:47:50 +08:00
2026-04-22 18:36:44 +08:00
2026-04-22 14:56:56 +08:00
2026-03-14 17:48:21 +08:00
2026-07-16 15:32:38 +08:00
2026-07-07 10:50:36 +08:00
2026-07-07 10:50:36 +08:00
2026-07-07 18:53:56 +08:00
2026-07-07 18:53:56 +08:00
2026-07-07 20:13:28 +08:00
2026-07-07 18:53:56 +08:00
2026-02-07 19:46:42 +08:00
2026-02-08 12:05:39 +08:00
2026-02-07 19:46:42 +08:00
2026-05-29 17:19:15 +08:00
2026-07-01 00:37:51 +08:00
2026-07-16 16:30:19 +08:00
2026-07-16 16:30:19 +08:00
2026-07-16 16:30:19 +08:00
2026-07-16 16:30:19 +08:00
2026-07-16 16:30:19 +08:00
2026-04-14 09:35:20 +08:00
2026-07-15 09:35:34 -07:00
2026-04-09 18:14:28 +08:00
2026-04-14 18:34:57 +08:00
2026-06-25 23:41:00 +08:00
2026-07-14 01:29:30 +08:00
2026-03-02 16:04:20 +08:00
2026-03-27 14:33:05 +08:00
2026-01-01 04:01:51 +08:00
2026-07-13 15:32:42 +08:00
2026-07-13 15:32:42 +08:00
2026-05-07 09:14:47 +08:00
2026-06-12 01:47:01 +08:00
2026-06-26 10:43:05 +08:00
2026-04-15 15:02:21 +08:00
2026-01-11 15:00:16 +08:00
2026-01-11 15:00:16 +08:00
2026-05-23 15:04:24 +08:00
2026-05-23 15:04:24 +08:00
2026-06-12 15:06:01 +08:00
2025-12-25 17:15:01 +08:00
2025-12-26 16:47:44 +08:00
2026-04-14 09:35:20 +08:00
2026-07-14 01:29:30 +08:00
2026-02-05 21:52:54 +08:00
2026-02-10 11:42:39 +08:00
2025-12-31 23:42:01 +08:00
2026-07-01 12:21:45 +08:00
2026-02-28 15:01:20 +08:00
2026-06-12 01:47:01 +08:00
2026-02-02 22:13:50 +08:00
2026-02-26 10:53:04 +08:00
2026-03-02 16:04:20 +08:00
2026-01-14 15:55:44 +08:00
2026-01-14 15:55:44 +08:00
2026-01-15 18:27:06 +08:00
2026-03-02 16:04:20 +08:00
2026-07-09 22:30:04 +08:00
2026-07-09 22:30:04 +08:00
2026-07-14 14:55:30 +08:00
2026-07-14 14:55:30 +08:00
2026-07-16 18:18:28 +08:00
2026-07-16 18:18:28 +08:00
2026-05-20 11:33:29 +08:00
2026-07-16 18:18:28 +08:00
2026-05-26 13:57:59 +08:00
2026-07-13 23:31:18 +08:00
2026-07-16 16:52:25 +08:00
2026-07-16 16:52:25 +08:00
2026-02-28 15:01:20 +08:00
2026-02-23 12:45:37 +08:00
2025-12-25 17:15:01 +08:00
2025-12-26 16:47:44 +08:00
2026-03-02 01:12:41 +08:00
2026-07-15 19:57:37 -07:00
2026-07-15 19:57:37 -07:00
2026-07-15 19:57:37 -07:00
2026-01-03 06:36:35 -08:00
2026-04-08 10:39:15 -07:00
2026-03-27 20:11:24 +08:00
2026-06-05 22:47:24 +08:00
2026-06-05 22:47:24 +08:00
2026-04-22 18:01:51 +08:00
2026-04-22 18:01:51 +08:00
2026-07-11 17:32:06 +08:00
2026-07-11 17:32:06 +08:00
2026-07-09 15:38:59 +08:00
2026-04-23 12:58:13 +08:00
2026-07-13 23:32:16 +08:00
2026-04-23 12:23:04 +08:00
2026-04-23 12:23:04 +08:00
2026-07-14 14:55:30 +08:00
2026-01-15 15:14:44 +08:00
2026-07-14 14:55:30 +08:00
2026-02-28 15:01:20 +08:00
2026-06-05 10:58:44 +08:00
2026-02-14 11:21:30 +08:00
2026-07-14 14:55:30 +08:00
2026-01-11 23:49:03 +08:00
2026-01-09 20:52:57 +08:00
2026-03-03 01:05:11 +08:00
2026-06-05 14:00:57 +08:00
2026-01-23 19:39:48 +08:00
2026-02-12 14:20:14 +08:00
2026-02-12 14:20:14 +08:00
2026-06-05 10:58:44 +08:00
2026-01-12 14:17:42 +08:00
2026-05-19 19:37:41 +08:00
2026-01-11 23:57:20 +08:00
2026-07-14 01:29:46 +08:00
2026-01-24 01:14:44 +08:00
2026-01-09 20:52:57 +08:00
2026-07-14 14:55:30 +08:00
2026-06-16 11:48:13 +08:00
2026-04-09 18:14:28 +08:00
2026-03-02 16:04:20 +08:00
2026-03-02 16:04:20 +08:00
2026-04-09 19:25:08 +08:00
2026-07-14 09:23:02 +08:00
2026-07-14 09:23:02 +08:00
2026-01-15 15:14:44 +08:00
2026-02-03 17:12:27 +08:00
2026-03-19 23:48:37 +08:00
2025-12-29 19:23:49 +08:00
2026-06-08 00:01:30 +08:00
2026-07-15 23:58:46 +08:00
2026-07-15 23:58:46 +08:00
2025-12-26 16:47:44 +08:00
2025-12-26 16:47:44 +08:00
2025-12-26 16:47:44 +08:00
2026-05-20 16:08:41 +08:00
2026-04-09 18:14:28 +08:00
2026-05-20 16:08:41 +08:00
2026-02-02 22:13:50 +08:00
2026-07-14 01:29:30 +08:00
2026-02-05 12:42:54 +08:00
2026-07-14 01:29:30 +08:00
2026-07-14 01:29:30 +08:00
2026-02-28 20:38:35 +08:00
2026-07-15 19:57:37 -07:00
2026-03-08 06:59:53 +08:00
2026-07-15 00:12:40 +08:00
2026-07-16 00:40:46 +08:00
2026-07-17 15:45:19 +08:00
2026-07-17 15:45:19 +08:00
2026-07-13 21:56:47 +08:00
2026-07-13 21:56:47 +08:00
2026-02-02 22:13:50 +08:00
2026-02-12 12:07:20 +08:00
2026-02-12 12:04:13 +08:00
2026-07-14 01:29:30 +08:00
2026-07-14 01:29:30 +08:00
2026-07-14 01:29:30 +08:00
2026-07-14 01:29:30 +08:00
2026-06-02 12:46:46 +08:00
2026-03-04 10:15:42 +08:00
2025-12-29 10:03:27 +08:00
2026-03-07 18:19:04 +08:00
2026-02-02 22:13:50 +08:00
2026-06-26 10:36:09 +08:00
2026-03-03 16:11:05 +08:00
2025-12-30 17:13:32 +08:00
2026-01-03 06:34:00 -08:00
2026-01-11 21:54:52 -08:00
2026-03-27 14:33:05 +08:00
2026-03-27 14:33:05 +08:00
2026-07-16 13:47:50 +08:00
2026-01-03 06:36:35 -08:00
2026-01-03 10:52:24 +08:00
2025-12-25 16:01:17 +08:00
2025-12-25 17:15:01 +08:00
2026-07-15 23:58:46 +08:00
2026-04-23 14:53:57 +08:00
2026-07-07 18:53:56 +08:00
2026-07-07 18:53:56 +08:00
2026-02-02 22:13:50 +08:00
2026-02-28 15:01:20 +08:00
2026-02-28 15:01:20 +08:00
2026-07-10 15:13:11 +08:00
2026-07-08 08:49:21 +08:00
2026-05-30 17:52:18 +08:00
2026-07-15 10:03:38 -07:00
2026-07-03 21:02:32 +08:00
2026-07-15 10:03:38 -07:00
2026-07-15 10:03:38 -07:00
2026-04-09 18:14:28 +08:00
2026-06-24 23:43:03 +08:00
2026-07-08 08:49:21 +08:00
2026-07-10 15:13:11 +08:00
2026-03-12 18:38:09 +08:00
2026-07-10 15:13:11 +08:00
2026-01-01 19:09:06 +08:00
2026-04-23 16:34:37 +08:00
2026-07-10 10:18:50 +08:00
2026-07-07 10:04:38 +08:00
2026-05-29 17:19:15 +08:00
2026-06-30 13:22:27 +08:00
2026-05-26 10:49:20 +08:00
2026-05-29 17:19:15 +08:00
2026-05-29 17:19:15 +08:00
2026-05-26 10:49:20 +08:00
2026-04-22 13:22:33 +08:00
2026-04-22 14:56:56 +08:00
2026-04-22 14:56:56 +08:00
2026-06-08 22:54:01 +08:00
2026-06-06 10:28:28 +08:00
2026-04-21 00:13:40 +08:00
2026-04-22 16:38:36 +08:00
2026-05-30 17:52:18 +08:00
2026-07-16 15:37:35 +08:00
2026-07-10 10:56:49 +08:00
2026-04-22 02:42:43 +08:00
2026-07-16 15:37:35 +08:00
2026-04-23 16:34:37 +08:00
2026-07-10 10:56:49 +08:00
2026-07-10 10:56:49 +08:00
2026-07-19 00:56:21 -07:00