Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): stop logging user-entered org names
Adam Eivyf8043c93416e
diff --git a/server/services/privacyOrgs.js b/server/services/privacyOrgs.jsindex e135abd000..364b7e9a6a 100644--- a/server/services/privacyOrgs.js+++ b/server/services/privacyOrgs.js@@ -10,6 +10,11 @@* Holdings responses join masked vault values ONLY — never plaintext. The* one decrypt path stays `revealValue()` in privacyVault.js; this service* never touches `value_enc`.+ *+ * Log lines never include the org `name` — a name like "my employer" or+ * "Dr. Smith's practice" is itself privacy-adjacent (it reveals a+ * relationship, not just an identity fact), so logs carry only id/category,+ * mirroring the vault's plaintext-never-logged posture.*/import { randomUUID } from 'crypto';@@ -67,7 +72,10 @@ export async function createOrg(input) {input.notes ?? '',],);- console.log(`🏢 Created privacy org ${id} (name=${input.name})`);+ // Log id/category only — the org NAME (bank, employer, medical provider, …)+ // is user-entered privacy-adjacent data and follows the same never-log+ // posture as the vault's plaintext values (see privacyVault.js header).+ console.log(`🏢 Created privacy org ${id} (category=${input.category ?? 'other'})`);return rowToOrg(rows[0]);}diff --git a/server/services/privacyOrgs.test.js b/server/services/privacyOrgs.test.jsindex 72e8696c83..84a83128c4 100644--- a/server/services/privacyOrgs.test.js+++ b/server/services/privacyOrgs.test.js@@ -56,6 +56,15 @@ describe('createOrg', () => {const [, params] = queryMock.mock.calls[0];expect(params[6]).toBe(JSON.stringify({ email: '[email protected]' }));});++ it('never logs the org name — it is privacy-adjacent data, like the vault plaintext', async () => {+ const logSpy = vi.spyOn(console, 'log').mockImplementation(() => {});+ queryMock.mockResolvedValue({ rows: [orgRow({ name: 'Dr. Smith Family Medicine' })] });+ await createOrg({ name: 'Dr. Smith Family Medicine', category: 'medical' });+ const loggedLines = logSpy.mock.calls.map((args) => args.join(' ')).join('\n');+ expect(loggedLines).not.toContain('Dr. Smith Family Medicine');+ logSpy.mockRestore();+ });});describe('listOrgs', () => {