test(metering): low-entropy token sentinel for gitleaks
The first sentinel looked like an API key to gitleaks' generic rule. It is a test value; its fingerprint goes into .gitleaksignore since the commit is already pushed. Refs: t81 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
692a9dd378
commit
9af0d9f8e1
2 files changed
+4
-2
No files matched your search
@@ -0,0 +1,2 @@
|
||||
# False positives: test-only sentinel values (no real secrets).
|
||||
692a9dd378acb5f51e621ed1cd9d9ec8ba10c55b:internal/server/module_users_test.go:generic-api-key:23
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user