← back to Norma
security: strip hardcoded dw_admin DSN password -> env-first/passwordless. No rotation/deploy.
bde9449ac0307292db1e25fbc6cf1041819f4f97 · 2026-05-30 09:49:19 -0700 · Steve
Files touched
M scripts/compute-intelligence.tsM scripts/detect-news-mentions.tsM scripts/populate-connections.ts
Diff
commit bde9449ac0307292db1e25fbc6cf1041819f4f97
Author: Steve <steve@designerwallcoverings.com>
Date: Sat May 30 09:49:19 2026 -0700
security: strip hardcoded dw_admin DSN password -> env-first/passwordless. No rotation/deploy.
---
scripts/compute-intelligence.ts | 2 +-
scripts/detect-news-mentions.ts | 2 +-
scripts/populate-connections.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/compute-intelligence.ts b/scripts/compute-intelligence.ts
index a7ab6b6..31c223c 100644
--- a/scripts/compute-intelligence.ts
+++ b/scripts/compute-intelligence.ts
@@ -16,7 +16,7 @@ import { computeAllScores, type EntityType, type PowerScore } from '../lib/power
// ── Config ───────────────────────────────────────────────────────────────────
-const DATABASE_URL = process.env.DATABASE_URL ?? 'postgresql://dw_admin:DW2024SecurePass@127.0.0.1:5432/sdcc';
+const DATABASE_URL = process.env.DATABASE_URL ?? 'postgresql://dw_admin@127.0.0.1:5432/sdcc';
const GEMINI_KEY = process.env.GEMINI_API_KEY ?? '';
const GEMINI_URL = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${GEMINI_KEY}`;
diff --git a/scripts/detect-news-mentions.ts b/scripts/detect-news-mentions.ts
index 9267178..56fdcab 100644
--- a/scripts/detect-news-mentions.ts
+++ b/scripts/detect-news-mentions.ts
@@ -11,7 +11,7 @@
import { Pool } from 'pg';
-const DATABASE_URL = process.env.DATABASE_URL || 'postgresql://dw_admin:DW2024SecurePass@127.0.0.1:5432/sdcc';
+const DATABASE_URL = process.env.DATABASE_URL || 'postgresql://dw_admin@127.0.0.1:5432/sdcc';
function getGeminiApiUrl(): string {
const geminiApiKey = process.env.GEMINI_API_KEY;
diff --git a/scripts/populate-connections.ts b/scripts/populate-connections.ts
index 38a6bea..a04f3cc 100644
--- a/scripts/populate-connections.ts
+++ b/scripts/populate-connections.ts
@@ -14,7 +14,7 @@
import { Pool } from 'pg';
-const CONNECTION_STRING = 'postgresql://dw_admin:DW2024SecurePass@127.0.0.1:5432/sdcc';
+const CONNECTION_STRING = 'postgresql://dw_admin@127.0.0.1:5432/sdcc';
const pool = new Pool({ connectionString: CONNECTION_STRING, max: 5 });
/* ─── Committee → Issue Mapping ─────────────────────────────────────────── */
← 1033d7f security: strip hardcoded dw_admin DSN password -> env-first
·
back to Norma
·
security: strip hardcoded dw_admin DSN password -> env-first 81abdbc →