feat: establish production SaaS foundation

This commit is contained in:
Codex
2026-07-12 19:26:57 +08:00
parent 1c2ce38cea
commit 39f7332f33
219 changed files with 20647 additions and 2628 deletions

View File

@@ -41,6 +41,7 @@ try {
[
'DATABASE_URL=postgresql://postgres:real-password@db.example.com:5432/postgres',
'SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.fake-service-role-token-that-should-not-ship',
'GITEA_TOKEN=0123456789abcdef0123456789abcdef01234567',
'',
].join('\n'),
'utf8',
@@ -52,6 +53,7 @@ try {
assert.ok(payload.findings.some(item => item.id === 'frontend-legacy-user-header'), 'x-user-id should be detected');
assert.ok(payload.findings.some(item => item.id === 'postgres-url'), 'database URL should be detected');
assert.ok(payload.findings.some(item => item.id === 'supabase-service-role'), 'service role key should be detected');
assert.ok(payload.findings.some(item => item.id === 'git-access-token'), 'Git access token should be detected');
} finally {
fs.rmSync(tempDir, { recursive: true, force: true });
}