Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

security: harden local API, CSP, CORS, pipe installs + bump to v2.3.84

Louis Beaumont1608403ef362
diff --git a/Cargo.lock b/Cargo.lock
index d8ceb8315..f16e1c226 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1170,7 +1170,7 @@ dependencies = [
[[package]]
name = "cidre"
version = "0.15.0"
-source = "git+https://github.com/yury/cidre.git#61e5e77ed1b33ff9a8758626b6266b8509df5506"
+source = "git+https://github.com/yury/cidre.git#3bd68fa9d9809f43bc5e2b7172d358f41c50bd19"
dependencies = [
"cc",
"cidre-macros 0.5.0",
@@ -1325,7 +1325,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
dependencies = [
"lazy_static",
- "windows-sys 0.59.0",
+ "windows-sys 0.48.0",
]
[[package]]
@@ -6903,6 +6903,7 @@ dependencies = [
"russh",
"russh-sftp",
"screenpipe-core",
+ "screenpipe-secrets",
"serde",
"serde_json",
"tokio",
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 9d2210f4c..95826bf9f 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -622,7 +622,7 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
configureApi({
port: loadedSettings.port ?? 3030,
apiKey: loadedSettings.apiKey || null,
- authEnabled: loadedSettings.apiAuth ?? false,
+ authEnabled: loadedSettings.apiAuth ?? true,
});
} catch (error) {
console.error("Failed to load settings:", error);
@@ -752,7 +752,7 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
configureApi({
port: merged.port ?? 3030,
apiKey: merged.apiKey || null,
- authEnabled: merged.apiAuth ?? false,
+ authEnabled: merged.apiAuth ?? true,
});
}
};
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 9522a56c9..b9ad4bee3 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -182,28 +182,6 @@ async spawnScreenpipe(overrideArgs: string[] | null) : Promise<Result<null, stri
else return { status: "error", error: e as any };
}
},
-/**
- * Start capture session (recording). Server must already be running.
- */
-async startCapture() : Promise<Result<null, string>> {
- try {
- return { status: "ok", data: await TAURI_INVOKE("start_capture") };
-} catch (e) {
- if(e instanceof Error) throw e;
- else return { status: "error", error: e as any };
-}
-},
-/**
- * Stop capture session. Server stays alive.
- */
-async stopCapture() : Promise<Result<null, string>> {
- try {
- return { status: "ok", data: await TAURI_INVOKE("stop_capture") };
-} catch (e) {
- if(e instanceof Error) throw e;
- else return { status: "error", error: e as any };
-}
-},
/**
* Stop everything — capture only. Server stays alive.
* This is the command called by the tray toggle and keyboard shortcut.
@@ -808,10 +786,6 @@ async chatgptOauthStatus() : Promise<Result<ChatGptOAuthStatus, string>> {
else return { status: "error", error: e as any };
}
},
-/**
- * Return the current valid access token (auto-refreshing if needed).
- * Used by the frontend to call OpenAI APIs directly (e.g. /v1/models).
- */
async chatgptOauthGetToken() : Promise<Result<string, string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("chatgpt_oauth_get_token") };
@@ -828,9 +802,6 @@ async chatgptOauthLogout() : Promise<Result<boolean, string>> {
else return { status: "error", error: e as any };
}
},
-/**
- * Fetch available models from OpenAI using the stored OAuth token.
- */
async chatgptOauthModels() : Promise<Result<string[], string>> {
try {
return { status: "ok", data: await TAURI_INVOKE("chatgpt_oauth_models") };
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 263b67bbf..069e9041c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -388,7 +388,7 @@ version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -399,13 +399,13 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
dependencies = [
"anstyle",
"once_cell_polyfill",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
name = "antirez-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=d9cf445#d9cf445483c6a8ea24a5eb6ee92c84353408cba6"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
dependencies = [
"cc",
]
@@ -463,6 +463,15 @@ dependencies = [
"x11rb",
]
+[[package]]
+name = "arc-swap"
+version = "1.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a3a1fd6f75306b68087b831f025c712524bcb19aad54e557b1129cfa0a2b207"
+dependencies = [
+ "rustversion",
+]
+
[[package]]
name = "arg_enum_proc_macro"
version = "0.3.4"
@@ -822,7 +831,7 @@ dependencies = [
[[package]]
name = "audiopipe"
version = "0.2.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=d9cf445#d9cf445483c6a8ea24a5eb6ee92c84353408cba6"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
dependencies = [
"antirez-asr-sys",
"half",
@@ -983,6 +992,7 @@ dependencies = [
"matchit 0.7.3",
"memchr",
"mime",
+ "multer",
"percent-encoding",
"pin-project-lite",
"rustversion",
@@ -1537,9 +1547,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.2.57"
+version = "1.2.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423"
+checksum = "e1e928d4b69e3077709075a938a05ffbedfa53a84c8f766efbf8220bb1ff60e1"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -1717,7 +1727,7 @@ dependencies = [
[[package]]
name = "cidre"
version = "0.15.0"
-source = "git+https://github.com/yury/cidre.git#4b0f590028051f1b98c325405f119cb6f3e95580"
+source = "git+https://github.com/yury/cidre.git#3bd68fa9d9809f43bc5e2b7172d358f41c50bd19"
dependencies = [
"cc",
"cidre-macros 0.5.0",
@@ -2679,6 +2689,27 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
+[[package]]
+name = "dbus"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "21b3aa68d7e7abee336255bd7248ea965cc393f3e70411135a6f6a4b651345d4"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "dbus-secret-service"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "708b509edf7889e53d7efb0ffadd994cc6c2345ccb62f55cfd6b0682165e4fa6"
+dependencies = [
+ "dbus",
+ "zeroize",
+]
+
[[package]]
name = "debugid"
version = "0.8.0"
@@ -2861,7 +2892,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.2",
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -3262,7 +3293,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -4124,7 +4155,7 @@ dependencies = [
"gobject-sys 0.21.5",
"libc",
"system-deps 7.0.7",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -4817,7 +4848,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"tokio",
"tower-service",
"tracing",
@@ -5262,7 +5293,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -5452,6 +5483,22 @@ dependencies = [
"unicode-segmentation",
]
+[[package]]
+name = "keyring"
+version = "3.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c"
+dependencies = [
+ "byteorder",
+ "dbus-secret-service",
+ "linux-keyutils",
+ "log",
+ "security-framework 2.11.1",
+ "security-framework 3.7.0",
+ "windows-sys 0.60.2",
+ "zeroize",
+]
+
[[package]]
name = "khronos-egl"
version = "6.0.0"
@@ -5698,6 +5745,15 @@ dependencies = [
"rand 0.9.2",
]
+[[package]]
+name = "libdbus-sys"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"
+dependencies = [
+ "pkg-config",
+]
+
[[package]]
name = "libfuzzer-sys"
version = "0.4.12"
@@ -5863,6 +5919,16 @@ dependencies = [
"wayland-protocols-wlr",
]
+[[package]]
+name = "linux-keyutils"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83270a18e9f90d0707c41e9f35efada77b64c0e6f3f1810e71c8368a864d5590"
+dependencies = [
+ "bitflags 2.11.0",
+ "libc",
+]
+
[[package]]
name = "linux-raw-sys"
version = "0.4.15"
@@ -6413,6 +6479,23 @@ dependencies = [
"windows-sys 0.60.2",
]
+[[package]]
+name = "multer"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b"
+dependencies = [
+ "bytes",
+ "encoding_rs",
+ "futures-util",
+ "http 1.4.0",
+ "httparse",
+ "memchr",
+ "mime",
+ "spin",
+ "version_check",
+]
+
[[package]]
name = "nalgebra"
version = "0.32.6"
@@ -6449,7 +6532,7 @@ dependencies = [
"openssl-probe",
"openssl-sys",
"schannel",
- "security-framework",
+ "security-framework 3.7.0",
"security-framework-sys",
"tempfile",
]
@@ -6685,7 +6768,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.59.0",
]
[[package]]
@@ -7547,7 +7630,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.45.0",
]
[[package]]
@@ -8498,7 +8581,7 @@ dependencies = [
"quinn-udp",
"rustc-hash 2.1.1",
"rustls 0.23.37",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"thiserror 2.0.18",
"tokio",
"tracing",
@@ -8535,7 +8618,7 @@ dependencies = [
"cfg_aliases 0.2.1",
"libc",
"once_cell",
- "socket2 0.6.3",
+ "socket2 0.5.10",
"tracing",
"windows-sys 0.60.2",
]
@@ -8558,7 +8641,7 @@ checksum = "478e0585659a122aa407eb7e3c0e1fa51b1d8a870038bd29f0cf4a8551eea972"
[[package]]
name = "qwen3-asr-sys"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=d9cf445#d9cf445483c6a8ea24a5eb6ee92c84353408cba6"
+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"
dependencies = [
"cc",
"cmake",
@@ -9323,7 +9406,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys 0.12.1",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -9362,7 +9445,7 @@ dependencies = [
"openssl-probe",
"rustls-pki-types",
"schannel",
- "security-framework",
+ "security-framework 3.7.0",
]
[[package]]
@@ -9408,10 +9491,10 @@ dependencies = [
"rustls-native-certs",
"rustls-platform-verifier-android",
"rustls-webpki 0.103.10",
- "security-framework",
+ "security-framework 3.7.0",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -9596,7 +9679,7 @@ dependencies = [
[[package]]
name = "sck-rs"
version = "0.1.0"
-source = "git+https://github.com/screenpipe/sck-rs#1561f06250991346f75a8b9120023ce7fe88b83e"
+source = "git+https://github.com/screenpipe/sck-rs#cc39b0fee819f470b881d37658c940e7172c6431"
dependencies = [
"cidre 0.15.0",
"image 0.25.10",
@@ -9623,6 +9706,8 @@ name = "screenpipe-a11y"
version = "0.1.0"
dependencies = [
"anyhow",
+ "arboard",
+ "arc-swap",
"chrono",
"cidre 0.13.1",
"crossbeam-channel",
@@ -9642,7 +9727,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.298"
+version = "2.3.84"
dependencies = [
"anyhow",
"arboard",
@@ -9667,6 +9752,7 @@ dependencies = [
"icalendar",
"image 0.25.10",
"ini",
+ "keyring",
"lazy_static",
"log",
"nokhwa-bindings-macos",
@@ -9687,6 +9773,7 @@ dependencies = [
"screenpipe-engine",
"screenpipe-events",
"screenpipe-screen",
+ "screenpipe-secrets",
"screenpipe-vault",
"sentry 0.42.0",
"serde",
@@ -9694,6 +9781,7 @@ dependencies = [
"sha2 0.10.9",
"specta",
"specta-typescript",
+ "sqlx",
"sysinfo",
"tauri",
"tauri-build",
@@ -9744,7 +9832,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"anyhow",
"audiopipe",
@@ -9799,7 +9887,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -9811,11 +9899,10 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"anyhow",
"async-trait",
- "base64 0.22.1",
"chrono",
"dirs 6.0.0",
"eventkit-rs",
@@ -9831,6 +9918,7 @@ dependencies = [
"russh",
"russh-sftp",
"screenpipe-core",
+ "screenpipe-secrets",
"serde",
"serde_json",
"tokio",
@@ -9840,7 +9928,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -9873,18 +9961,20 @@ dependencies = [
"serde_json",
"serde_yaml",
"sha2 0.10.9",
+ "tempfile",
"thiserror 1.0.69",
"tokio",
"tracing",
"uiautomation",
"uuid",
"which 6.0.3",
+ "windows-sys 0.59.0",
"zeroize",
]
[[package]]
name = "screenpipe-db"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"anyhow",
"chrono",
@@ -9909,7 +9999,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"anyhow",
"async-trait",
@@ -9949,6 +10039,7 @@ dependencies = [
"screenpipe-db",
"screenpipe-events",
"screenpipe-screen",
+ "screenpipe-secrets",
"screenpipe-vault",
"sentry 0.36.0",
"serde",
@@ -9972,7 +10063,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"anyhow",
"chrono",
@@ -9988,7 +10079,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -10022,9 +10113,25 @@ dependencies = [
"zbus",
]
+[[package]]
+name = "screenpipe-secrets"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "base64 0.22.1",
+ "chacha20poly1305",
+ "chrono",
+ "rand 0.8.5",
+ "serde",
+ "serde_json",
+ "sqlx",
+ "tokio",
+ "tracing",
+]
+
[[package]]
name = "screenpipe-vault"
-version = "0.3.245"
+version = "0.3.279"
dependencies = [
"argon2",
"chacha20poly1305",
@@ -10093,6 +10200,19 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "security-framework"
+version = "2.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
+dependencies = [
+ "bitflags 2.11.0",
+ "core-foundation 0.9.4",
+ "core-foundation-sys 0.8.7",
+ "libc",
+ "security-framework-sys",
+]
+
[[package]]
name = "security-framework"
version = "3.7.0"
@@ -10854,7 +10974,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -12449,7 +12569,7 @@ dependencies = [
"getrandom 0.4.2",
"once_cell",
"rustix 1.1.4",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -13163,7 +13283,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -14100,7 +14220,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 9581a0af6..2d936e265 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.3.83"
+version = "2.3.84"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/recording.rs b/apps/screenpipe-app-tauri/src-tauri/src/recording.rs
index 688af5922..01aa3861a 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/recording.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/recording.rs
@@ -364,7 +364,7 @@ pub async fn spawn_screenpipe(
// Wait for port release
let max_poll_iters = if cfg!(windows) { 40 } else { 20 };
for i in 0..max_poll_iters {
- match tokio::net::TcpListener::bind(format!("0.0.0.0:{}", port)).await {
+ match tokio::net::TcpListener::bind(format!("127.0.0.1:{}", port)).await {
Ok(_) => {
debug!("Port {} is free after {}ms", port, i * 250);
break;
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
index 5a7902dad..a1ba427bc 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/server_core.rs
@@ -226,7 +226,7 @@ impl ServerCore {
// --- HTTP server ---
let mut server = SCServer::new(
db.clone(),
- SocketAddr::new(IpAddr::V4(Ipv4Addr::UNSPECIFIED), config.port),
+ SocketAddr::new(IpAddr::V4(config.listen_address), config.port),
local_data_dir.clone(),
config.disable_vision,
config.disable_audio,
@@ -338,7 +338,7 @@ impl ServerCore {
// Bind HTTP listener before returning (catches port conflicts early)
let listener = bind_listener(SocketAddr::new(
- IpAddr::V4(Ipv4Addr::UNSPECIFIED),
+ IpAddr::V4(config.listen_address),
config.port,
))
.await
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
index f4529cd1e..de779148d 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.beta.conf.json
@@ -119,11 +119,10 @@
"enable": true,
"scope": [
"$APPDATA/**",
- "$HOME/.screenpipe/**",
- "**"
+ "$HOME/.screenpipe/**"
]
},
- "csp": null
+ "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: https: data: blob:; media-src 'self' asset: https: blob:; font-src 'self' data:; connect-src 'self' http://localhost:* https://* ws://localhost:* wss://*; frame-src 'self' https://*"
},
"macOSPrivateApi": true
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
index 2ddba8178..0bd598555 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.conf.json
@@ -114,11 +114,10 @@
"enable": true,
"scope": [
"$APPDATA/**",
- "$HOME/.screenpipe/**",
- "**"
+ "$HOME/.screenpipe/**"
]
},
- "csp": null
+ "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: https: data: blob:; media-src 'self' asset: https: blob:; font-src 'self' data:; connect-src 'self' http://localhost:* https://* ws://localhost:* wss://*; frame-src 'self' https://*"
},
"macOSPrivateApi": true
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.enterprise.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.enterprise.conf.json
index 4787120a7..5eb67013e 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.enterprise.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.enterprise.conf.json
@@ -128,11 +128,10 @@
"enable": true,
"scope": [
"$APPDATA/**",
- "$HOME/.screenpipe/**",
- "**"
+ "$HOME/.screenpipe/**"
]
},
- "csp": null
+ "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: https: data: blob:; media-src 'self' asset: https: blob:; font-src 'self' data:; connect-src 'self' http://localhost:* https://* ws://localhost:* wss://*; frame-src 'self' https://*"
},
"macOSPrivateApi": true
}
diff --git a/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json b/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
index dea3b310e..2dfd0828f 100644
--- a/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
+++ b/apps/screenpipe-app-tauri/src-tauri/tauri.prod.conf.json
@@ -124,11 +124,10 @@
"enable": true,
"scope": [
"$APPDATA/**",
- "$HOME/.screenpipe/**",
- "**"
+ "$HOME/.screenpipe/**"
]
},
- "csp": null
+ "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: https: data: blob:; media-src 'self' asset: https: blob:; font-src 'self' data:; connect-src 'self' http://localhost:* https://* ws://localhost:* wss://*; frame-src 'self' https://*"
},
"macOSPrivateApi": true
}
diff --git a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
index 308275375..56e6cf76e 100644
--- a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
@@ -255,7 +255,7 @@ async fn handle_deepgram_response(
.unwrap_or("");
if transcription.is_empty() {
- info!("device: {}, transcription is empty.", device);
+ debug!("device: {}, transcription is empty.", device);
} else {
info!(
"device: {}, transcription successful. length: {} characters",
diff --git a/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs b/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
index a2d1a830a..e45a7a93a 100644
--- a/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/openai_compatible/batch.rs
@@ -275,7 +275,7 @@ async fn handle_response(response: Response, device: &str) -> Result<String> {
let transcription = result["text"].as_str().unwrap_or("");
if transcription.is_empty() {
- info!("device: {}, transcription is empty.", device);
+ debug!("device: {}, transcription is empty.", device);
} else {
info!(
"device: {}, transcription successful. length: {} characters",
diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rs
index 85afff0dd..c79522bc8 100644
--- a/crates/screenpipe-core/src/pipes/mod.rs
+++ b/crates/screenpipe-core/src/pipes/mod.rs
@@ -2682,8 +2682,11 @@ impl PipeManager {
}
}
- // URL — try HTTP fetch
- if source.starts_with("http://") || source.starts_with("https://") {
+ // URL — fetch over HTTPS only (reject plaintext HTTP to prevent MITM)
+ if source.starts_with("http://") {
+ return Err(anyhow!("pipe installation over plain HTTP is not allowed — use https:// instead"));
+ }
+ if source.starts_with("https://") {
let name = url_to_pipe_name(source);
let dest_dir = self.pipes_dir.join(&name);
std::fs::create_dir_all(&dest_dir)?;
diff --git a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
index 91a38415d..a765127ee 100644
--- a/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
+++ b/crates/screenpipe-engine/src/bin/screenpipe-engine.rs
@@ -859,6 +859,12 @@ async fn main() -> anyhow::Result<()> {
let manual_meeting: std::sync::Arc<tokio::sync::RwLock<Option<i64>>> =
std::sync::Arc::new(tokio::sync::RwLock::new(None));
+ if config.listen_address.is_loopback() {
+ info!("API server listening on 127.0.0.1:{} (localhost only). To allow network access, set listen_address to 0.0.0.0", config.port);
+ } else {
+ warn!("API server listening on {}:{} — accessible from the network. Ensure api_auth is enabled.", config.listen_address, config.port);
+ }
+
let mut server = SCServer::new(
db_server,
SocketAddr::new(IpAddr::V4(config.listen_address), config.port),
diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rs
index c18eed366..4f6c1bc29 100644
--- a/crates/screenpipe-engine/src/recording_config.rs
+++ b/crates/screenpipe-engine/src/recording_config.rs
@@ -118,6 +118,11 @@ pub struct RecordingConfig {
/// The API key for this instance (from SCREENPIPE_API_KEY env or auth.json).
/// Used to validate incoming remote requests when api_auth is enabled.
pub api_auth_key: Option<String>,
+
+ /// IP address the HTTP server listens on. Default: 127.0.0.1 (localhost only).
+ /// Set to 0.0.0.0 to allow access from other devices on the network.
+ /// When set to 0.0.0.0, api_auth should be enabled for security.
+ pub listen_address: std::net::Ipv4Addr,
}
impl RecordingConfig {
@@ -211,6 +216,7 @@ impl RecordingConfig {
max_snapshot_width: settings.max_snapshot_width,
api_auth: settings.api_auth,
api_auth_key: None,
+ listen_address: std::net::Ipv4Addr::LOCALHOST,
}
}