Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore: remove dead isSecureEndpoint export and orphaned comingSoon locale key

Chadpiha3f73f0ddb8f8
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 2d586916b..fa3e58222 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -2776,7 +2776,6 @@
"meeting": {
"title": "Besprechungsnotizen",
"description": "Transkriptionen und strukturierte Zusammenfassungen",
- "comingSoon": "Demnächst verfügbar",
"back": "Zurück",
"restrictedByOrg": "Die Transkription von Besprechungen ist durch Ihre Organisation eingeschränkt."
},
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index da7ccaabf..900126476 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -2776,7 +2776,6 @@
"meeting": {
"title": "Meeting Notes",
"description": "Transcriptions & structured summaries",
- "comingSoon": "Coming Soon",
"back": "Back",
"restrictedByOrg": "Meeting transcription is restricted by your organization."
},
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index 3e4e8a275..3c66633cc 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -2633,7 +2633,6 @@
"meeting": {
"title": "Notas de reunión",
"description": "Transcripciones y resúmenes estructurados",
- "comingSoon": "Próximamente",
"back": "Atrás",
"restrictedByOrg": "La transcripción de reuniones está restringida por tu organización."
},
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index c4e7d5d5f..5f96b0960 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -2776,7 +2776,6 @@
"meeting": {
"title": "Notes de réunion",
"description": "Transcriptions et résumés structurés",
- "comingSoon": "Bientôt disponible",
"back": "Retour",
"restrictedByOrg": "La transcription des réunions est restreinte par votre organisation."
},
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index c51a6e51a..04849e831 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -2585,7 +2585,6 @@
"meeting": {
"title": "Note delle riunioni",
"description": "Trascrizioni e riassunti strutturati",
- "comingSoon": "Prossimamente",
"back": "Indietro",
"restrictedByOrg": "La trascrizione delle riunioni è limitata dalla tua organizzazione."
},
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index 53cb259fc..a85916c59 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -2569,7 +2569,6 @@
"meeting": {
"title": "議事録",
"description": "文字起こしと構造化されたサマリー",
- "comingSoon": "近日公開",
"back": "戻る",
"restrictedByOrg": "会議の文字起こしは組織によって制限されています。"
},
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 94c0c7c25..0e7e40f45 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -2585,7 +2585,6 @@
"meeting": {
"title": "Notas de reunião",
"description": "Transcrições e resumos estruturados",
- "comingSoon": "Em breve",
"back": "Voltar",
"restrictedByOrg": "A transcrição de reuniões está restrita pela sua organização."
},
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 7466b0a3f..02719460e 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -2607,7 +2607,6 @@
"meeting": {
"title": "Заметки со встреч",
"description": "Транскрипции и структурированные резюме",
- "comingSoon": "Скоро",
"back": "Назад",
"restrictedByOrg": "Транскрипция встреч ограничена вашей организацией."
},
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index b6c71a0a1..83a5e2fc2 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -2585,7 +2585,6 @@
"meeting": {
"title": "会议笔记",
"description": "转录与结构化摘要",
- "comingSoon": "即将推出",
"back": "返回",
"restrictedByOrg": "会议转录已被您的组织限制。"
},
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index cf85d62ec..893a9d143 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -2585,7 +2585,6 @@
"meeting": {
"title": "會議筆記",
"description": "轉錄與結構化摘要",
- "comingSoon": "即將推出",
"back": "返回",
"restrictedByOrg": "會議轉錄已被您的組織限制。"
},
diff --git a/src/utils/urlUtils.ts b/src/utils/urlUtils.ts
index 2efdb59eb..4588d6e91 100644
--- a/src/utils/urlUtils.ts
+++ b/src/utils/urlUtils.ts
@@ -45,15 +45,6 @@ function isPrivateHost(hostname: string): boolean {
return false;
}
-export function isSecureEndpoint(url: string): boolean {
- try {
- const parsed = new URL(url);
- return parsed.protocol === "https:" || isPrivateHost(parsed.hostname);
- } catch {
- return false;
- }
-}
-
export function isSecureHttpEndpoint(url: string): boolean {
try {
const parsed = new URL(url);
diff --git a/test/helpers/secureEndpoint.test.js b/test/helpers/secureEndpoint.test.js
index 3c2378b51..84c6f1571 100644
--- a/test/helpers/secureEndpoint.test.js
+++ b/test/helpers/secureEndpoint.test.js
@@ -7,95 +7,94 @@ const assert = require("node:assert/strict");
const load = () => import("../../src/utils/urlUtils.ts");
test("https endpoints are secure; plain http to a public host is not", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("https://api.openai.com/v1"), true);
- assert.equal(isSecureEndpoint("http://api.openai.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("https://api.openai.com/v1"), true);
+ assert.equal(isSecureHttpEndpoint("http://api.openai.com/v1"), false);
});
test("loopback hosts are allowed over http", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://localhost:8080"), true);
- assert.equal(isSecureEndpoint("http://127.0.0.1:5000"), true);
- assert.equal(isSecureEndpoint("http://127.0.1.1:3000"), true);
- assert.equal(isSecureEndpoint("http://0.0.0.0:8000"), true);
- assert.equal(isSecureEndpoint("http://[::1]:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://localhost:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://127.0.0.1:5000"), true);
+ assert.equal(isSecureHttpEndpoint("http://127.0.1.1:3000"), true);
+ assert.equal(isSecureHttpEndpoint("http://0.0.0.0:8000"), true);
+ assert.equal(isSecureHttpEndpoint("http://[::1]:8080"), true);
});
test("public DNS names that resemble private IP prefixes still require https", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://127.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://10.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://192.168.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://172.16.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://100.64.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://169.254.example.com/v1"), false);
- assert.equal(isSecureEndpoint("http://127.0.0.1.nip.io/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://127.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://10.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://192.168.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://172.16.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://100.64.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://169.254.example.com/v1"), false);
+ assert.equal(isSecureHttpEndpoint("http://127.0.0.1.nip.io/v1"), false);
- assert.equal(isSecureEndpoint("https://127.example.com/v1"), true);
+ assert.equal(isSecureHttpEndpoint("https://127.example.com/v1"), true);
});
test("URL-parser abbreviations of loopback IPv4 remain allowed over http", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
// WHATWG URL expands forms like 127.1 → 127.0.0.1 before our host check.
- assert.equal(isSecureEndpoint("http://127.1/v1"), true);
- assert.equal(isSecureEndpoint("http://127.0.1/v1"), true);
+ assert.equal(isSecureHttpEndpoint("http://127.1/v1"), true);
+ assert.equal(isSecureHttpEndpoint("http://127.0.1/v1"), true);
});
test("RFC 1918 private ranges are allowed over http — self-hosted LLM servers live there", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://10.0.0.5:8080"), true);
- assert.equal(isSecureEndpoint("http://192.168.1.100:8080"), true);
- assert.equal(isSecureEndpoint("http://172.16.0.1:8080"), true);
- assert.equal(isSecureEndpoint("http://172.31.255.255:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://10.0.0.5:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://192.168.1.100:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://172.16.0.1:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://172.31.255.255:8080"), true);
});
test("172.x outside the 16-31 private block is public and rejected over http", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://172.15.0.1:8080"), false);
- assert.equal(isSecureEndpoint("http://172.32.0.1:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://172.15.0.1:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://172.32.0.1:8080"), false);
});
test("CGNAT 100.64.0.0/10 is treated as private (Tailscale addresses)", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://100.64.0.1:8080"), true);
- assert.equal(isSecureEndpoint("http://100.127.255.254:8080"), true);
- assert.equal(isSecureEndpoint("http://100.63.0.1:8080"), false);
- assert.equal(isSecureEndpoint("http://100.128.0.1:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://100.64.0.1:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://100.127.255.254:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://100.63.0.1:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://100.128.0.1:8080"), false);
});
test("link-local, IPv6 ULA, and .local hostnames are allowed over http", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://169.254.1.1:8080"), true);
- assert.equal(isSecureEndpoint("http://[fe80::1]:8080"), true);
- assert.equal(isSecureEndpoint("http://[fc00::1]:8080"), true);
- assert.equal(isSecureEndpoint("http://[fd12::1]:8080"), true);
- assert.equal(isSecureEndpoint("http://myserver.local:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://169.254.1.1:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://[fe80::1]:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://[fc00::1]:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://[fd12::1]:8080"), true);
+ assert.equal(isSecureHttpEndpoint("http://myserver.local:8080"), true);
});
test("Tailscale MagicDNS hostnames (.ts.net) are allowed over http", async () => {
- const { isSecureEndpoint, isSecureHttpEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint("http://myserver.tailnet-1234.ts.net:8080"), true);
assert.equal(isSecureHttpEndpoint("http://myserver.tailnet-1234.ts.net:8080"), true);
// Only true subdomains of ts.net qualify — look-alike public domains do not.
- assert.equal(isSecureEndpoint("http://myts.net:8080"), false);
- assert.equal(isSecureEndpoint("http://evil-ts.net:8080"), false);
- assert.equal(isSecureEndpoint("http://ts.net:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://myts.net:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://evil-ts.net:8080"), false);
+ assert.equal(isSecureHttpEndpoint("http://ts.net:8080"), false);
});
test("unparseable input is never secure", async () => {
- const { isSecureEndpoint } = await load();
+ const { isSecureHttpEndpoint } = await load();
- assert.equal(isSecureEndpoint(""), false);
- assert.equal(isSecureEndpoint("not-a-url"), false);
+ assert.equal(isSecureHttpEndpoint(""), false);
+ assert.equal(isSecureHttpEndpoint("not-a-url"), false);
});
test("secure HTTP endpoints reject non-HTTP schemes even on private hosts", async () => {