feat: restricted S3 credentials, orphan reconciler, upload limits (grade 4)

This commit is contained in:
2026-11-20 04:30:58 +03:00
parent 89e9e7b4d4
commit 1c3011bf28
42 changed files with 1483 additions and 130 deletions
+2 -4
View File
@@ -66,10 +66,8 @@ func run(log *slog.Logger) error {
if err != nil {
return err
}
if err := objects.EnsureBucket(context.Background()); err != nil {
log.Error("s3 bucket bootstrap failed", "err", err)
}
attachments := service.NewAttachmentService(chats, store, objects, cfg.MaxUploadBytes, cfg.MaxImagePixels)
attachments := service.NewAttachmentService(chats, store, objects, cfg.MaxUploadBytes, cfg.MaxImagePixels,
cfg.MaxConcurrentUploads, cfg.MaxConcurrentDecodes)
deps := []handler.Pinger{store.Ping, sessions.Ping, objects.Ping}