security: fix hardcoded aes key, rate limiter shutdown, stale cache errors, body limit, session cookies

This commit is contained in:
2026-04-20 01:48:53 +02:00
parent bbf208b4bf
commit dccd9d8f59
7 changed files with 43 additions and 16 deletions

View File

@@ -18,6 +18,7 @@ import (
"mal/internal/features/auth"
"mal/internal/jikan"
"mal/internal/server"
"mal/internal/shared/middleware"
"mal/internal/worker"
)
@@ -101,4 +102,5 @@ func gracefulShutdown(srv *http.Server, ctx context.Context) {
if err := srv.Shutdown(shutdownCtx); err != nil {
log.Printf("server shutdown failed: %v", err)
}
middleware.StopCleanup()
}