-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Problem
test/telegram.test.ts contains a hard-coded Supabase service-role key and production identifiers. This creates two risks:
- secret exposure in repository history
- tests writing to production infrastructure by default
Evidence
test/telegram.test.ts:SUPABASE_SERVICE_KEYconstant is in sourcepackage.jsontest script includestest/telegram.test.tsin defaultnpm test
Impact
- Compromised key can grant elevated DB/function access
- CI/local test runs may mutate production data and send/route real messages
Required Fix
- Rotate/revoke exposed service key immediately
- Move integration tests behind explicit opt-in env flag
- Use non-production Supabase project for integration tests
- Load secrets from environment, never hard-code
- Keep default
npm testfully offline/safe
Acceptance Criteria
- No service/anon keys hard-coded in repo test sources
npm testdoes not hit production network endpoints- Integration test path documented with env requirements
- Existing CI remains green with secure defaults
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels