Security fixes + project files: Session fixation, SameSite cookies, audit log redaction, backup integrity, Docker hardening, error sanitization, rate limiting + pre-existing test and UI fixes
Some checks failed
CI / frontend (push) Has been cancelled
CI / docker (push) Has been cancelled
CI / backend (push) Has been cancelled

This commit is contained in:
backup 2026-09-04 00:02:26 -05:00
commit acd95a0891
7 changed files with 874 additions and 16 deletions

View file

@ -8,6 +8,7 @@ import (
"testing"
_ "github.com/mattn/go-sqlite3"
"github.com/traefik/traefik-gui/backend/internal/database/repositories"
)
func newTestService(t *testing.T) (*Service, string, func()) {
@ -32,7 +33,8 @@ func newTestService(t *testing.T) (*Service, string, func()) {
if err != nil {
t.Fatalf("create backups: %v", err)
}
svc, err := NewService(filepath.Join(dir, "dynamic"), db)
auditRepo := repositories.NewAuditRepository(db)
svc, err := NewService(filepath.Join(dir, "dynamic"), db, auditRepo)
if err != nil {
t.Fatalf("new service: %v", err)
}