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
+1 -1
View File
@@ -90,7 +90,7 @@ func newStack(t *testing.T, dbURL, redisURL string, ttl time.Duration) *httptest
auth := service.NewAuthService(store, sessions, ttl)
chats := service.NewChatService(store)
messages := service.NewMessageService(chats, store)
attachments := service.NewAttachmentService(chats, store, newStubObjectStore(), 10485760, 40000000)
attachments := service.NewAttachmentService(chats, store, newStubObjectStore(), 10485760, 40000000, 8, 2)
h := handler.New(users, auth, chats, messages, attachments, []handler.Pinger{store.Ping, sessions.Ping}, slog.New(slog.DiscardHandler))
srv := httptest.NewServer(router.New(h, "test"))
t.Cleanup(srv.Close)