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

Bump app to v2.4.179 — feat(pii): regex patterns for modern provider API keys — release-app

Louis Beaumontb40eadde8fe8
diff --git a/Cargo.lock b/Cargo.lock
index fdc90653d..521cedcc9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7738,7 +7738,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"audiopipe",
@@ -7799,7 +7799,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio-eval"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"clap",
@@ -7814,7 +7814,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -7827,7 +7827,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"async-trait",
@@ -7860,7 +7860,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -7908,7 +7908,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"chrono",
@@ -7934,7 +7934,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"arc-swap",
@@ -8009,7 +8009,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"chrono",
@@ -8027,7 +8027,7 @@ dependencies = [
[[package]]
name = "screenpipe-redact"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"anyhow",
"async-trait",
@@ -8054,7 +8054,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -8112,7 +8112,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.325"
+version = "0.3.326"
dependencies = [
"argon2",
"chacha20poly1305",
diff --git a/Cargo.toml b/Cargo.toml
index 3c1db2f4e..9296b87ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ exclude = ["apps/screenpipe-app-tauri/src-tauri", "crates/screenpipe-integration
resolver = "2"
[workspace.package]
-version = "0.3.325"
+version = "0.3.326"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/screenpipe/screenpipe"
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index b32810347..f5dddfabb 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.4.178"
+version = "2.4.179"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-core/src/pii_removal.rs b/crates/screenpipe-core/src/pii_removal.rs
index 346cb38f3..7c5a7418e 100644
--- a/crates/screenpipe-core/src/pii_removal.rs
+++ b/crates/screenpipe-core/src/pii_removal.rs
@@ -41,6 +41,30 @@ lazy_static! {
// Stripe keys and secrets (sk_live_, sk_test_, pk_live_, pk_test_, whsec_, rk_live_, rk_test_)
(Regex::new(r"\b(?:sk_live|sk_test|pk_live|pk_test|whsec|rk_live|rk_test)_[A-Za-z0-9]{10,}").unwrap(), "STRIPE_KEY"),
+ // Anthropic API keys (sk-ant-api03-..., sk-ant-admin01-...). The
+ // user-visible reveal pane on platform.claude.com/settings/keys
+ // shows the full secret in plaintext — common screenpipe failure
+ // surface. Note hyphen separator (NOT underscore like Stripe).
+ (Regex::new(r"\bsk-ant-(?:api|admin)\d{2}-[A-Za-z0-9_-]{40,}").unwrap(), "ANTHROPIC_KEY"),
+
+ // OpenAI API keys (sk-..., sk-proj-...). Modern OpenAI keys are
+ // base58-shaped; legacy format kept for back-compat.
+ (Regex::new(r"\bsk-(?:proj-|svcacct-)?[A-Za-z0-9_-]{40,}\b").unwrap(), "OPENAI_KEY"),
+
+ // Google API keys / Cloud / GenerativeAI. Fixed-length 39 chars.
+ (Regex::new(r"\bAIza[A-Za-z0-9_-]{35}\b").unwrap(), "GOOGLE_API_KEY"),
+
+ // Hugging Face access tokens (hf_..., 37 chars total).
+ (Regex::new(r"\bhf_[A-Za-z0-9]{34}\b").unwrap(), "HUGGINGFACE_TOKEN"),
+
+ // GitHub modern PAT/OAuth/server/user tokens (ghp_, gho_, ghu_,
+ // ghs_, ghr_) — 36-40 chars. Existing legacy 40-hex SHA path
+ // doesn't catch these.
+ (Regex::new(r"\bgh[pousr]_[A-Za-z0-9]{36,40}\b").unwrap(), "GITHUB_TOKEN"),
+
+ // Cloudflare API tokens (40 base64-url chars after "v1.0-").
+ (Regex::new(r"\bv1\.0-[A-Za-z0-9_-]{40,}\b").unwrap(), "CLOUDFLARE_TOKEN"),
+
// Supabase keys (sb_publishable_, sb_secret_, service_role key patterns)
(Regex::new(r"\bsb_(?:publishable|secret)_[A-Za-z0-9_-]{5,}").unwrap(), "SUPABASE_KEY"),