diff --git a/.gitleaksignore b/.gitleaksignore new file mode 100644 index 0000000..2a78f95 --- /dev/null +++ b/.gitleaksignore @@ -0,0 +1,2 @@ +# False positives: test-only sentinel values (no real secrets). +692a9dd378acb5f51e621ed1cd9d9ec8ba10c55b:internal/server/module_users_test.go:generic-api-key:23 diff --git a/internal/server/module_users_test.go b/internal/server/module_users_test.go index 1fb9223..2edae00 100644 --- a/internal/server/module_users_test.go +++ b/internal/server/module_users_test.go @@ -20,7 +20,7 @@ import ( "git.breakpilot.com/platform/tenant-registry/internal/store" ) -const sentinelToken = "gta_SENTINEL_0123456789abcdef" +const sentinelToken = "SENTINELxSENTINELxSENTINEL" // test value, low entropy on purpose (gitleaks) var berlin = func() *time.Location { l, err := time.LoadLocation("Europe/Berlin") @@ -306,7 +306,7 @@ func TestModuleUsers_licences(t *testing.T) { local := now.In(berlin) thisMonth := local.Format("2006-01") firstOfMonth := time.Date(local.Year(), local.Month(), 1, 12, 0, 0, 0, berlin) - lastMonth := firstOfMonth.AddDate(0, 0, -1) // noon on the previous month's last day + lastMonth := firstOfMonth.AddDate(0, 0, -1) // noon on the previous month's last day longAgo := time.Date(local.Year(), local.Month()-2, 15, 12, 0, 0, 0, berlin) // two months back lic := func(product, subject, device string, seen *time.Time) {