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

fix(api-auth): exempt /pipes/store from local auth middleware

Louis Beaumont80f0a66b08e1
diff --git a/.gitignore b/.gitignore
index fba87642f..3df3f4194 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,6 +70,7 @@ screenpipe-app-tauri/src-tauri/.next/
# Claude Code
.claude/worktrees/
.claude/*.local* # local changes are specific to the individual developer, let's not check them in for everyone.
+.claude/*.lock
apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-arm64-1.19.2/
apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-x64-1.19.2/
crates/screenpipe-audio/onnxruntime-win-x64-1.19.2.zip
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 89568cd65..215126ca7 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9727,7 +9727,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.3.105"
+version = "2.3.107"
dependencies = [
"anyhow",
"arboard",
diff --git a/crates/screenpipe-engine/src/server.rs b/crates/screenpipe-engine/src/server.rs
index 6d6469c5b..7eba6fdbf 100644
--- a/crates/screenpipe-engine/src/server.rs
+++ b/crates/screenpipe-engine/src/server.rs
@@ -850,6 +850,11 @@ impl SCServer {
// (called before frontend loads API key via IPC)
// - /connections/oauth/callback: browser redirect from
// OAuth providers (no bearer token in redirect)
+ // - /pipes/store/*: onboarding can fire pipe install before
+ // the frontend's IPC key-fetch completes on cold start /
+ // reinstall. Install/list/detail/update proxy the public
+ // registry; publish/unpublish/review enforce their own
+ // Bearer check inside the handler (see pipe_store.rs).
let path = req.uri().path();
if path == "/health"
|| path == "/ws/health"
@@ -857,6 +862,7 @@ impl SCServer {
|| path == "/connections/oauth/callback"
|| path.starts_with("/frames/")
|| path == "/notify"
+ || path.starts_with("/pipes/store")
{
return next.run(req).await;
}