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.149, Bump CLI to v0.3.319 — feat(privacy-filter): verify enclave attestation via tinfoil-rs SDK — release-app release-cli

Louis Beaumont647ac4fac4b2
diff --git a/Cargo.lock b/Cargo.lock
index 654703079..228563c52 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -405,6 +405,46 @@ dependencies = [
"pin-project-lite",
]
+[[package]]
+name = "async-openai"
+version = "0.34.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec08254d61379df136135d3d1ac04301be7699fd7d9e57655c63ac7d650a6922"
+dependencies = [
+ "async-openai-macros",
+ "backoff",
+ "base64 0.22.1",
+ "bytes",
+ "derive_builder",
+ "eventsource-stream",
+ "futures",
+ "getrandom 0.3.4",
+ "rand 0.9.4",
+ "reqwest",
+ "reqwest-eventsource",
+ "secrecy",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "thiserror 2.0.18",
+ "tokio",
+ "tokio-stream",
+ "tokio-util",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "async-openai-macros"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81872a8e595e8ceceab71c6ba1f9078e313b452a1e31934e6763ef5d308705e4"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "async-process"
version = "2.5.0"
@@ -717,6 +757,20 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "backoff"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
+dependencies = [
+ "futures-core",
+ "getrandom 0.2.17",
+ "instant",
+ "pin-project-lite",
+ "rand 0.8.5",
+ "tokio",
+]
+
[[package]]
name = "backtrace"
version = "0.3.76"
@@ -852,6 +906,26 @@ version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+[[package]]
+name = "bitfield"
+version = "0.19.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "21ba6517c6b0f2bf08be60e187ab64b038438f22dd755614d8fe4d4098c46419"
+dependencies = [
+ "bitfield-macros",
+]
+
+[[package]]
+name = "bitfield-macros"
+version = "0.19.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f48d6ace212fdf1b45fd6b566bb40808415344642b76c3224c07c8df9da81e97"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -1804,14 +1878,38 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "darling"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
+dependencies = [
+ "darling_core 0.20.11",
+ "darling_macro 0.20.11",
+]
+
[[package]]
name = "darling"
version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
dependencies = [
- "darling_core",
- "darling_macro",
+ "darling_core 0.21.3",
+ "darling_macro 0.21.3",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
+dependencies = [
+ "fnv",
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim 0.11.1",
+ "syn 2.0.117",
]
[[package]]
@@ -1828,13 +1926,24 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "darling_macro"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
+dependencies = [
+ "darling_core 0.20.11",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "darling_macro"
version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
dependencies = [
- "darling_core",
+ "darling_core 0.21.3",
"quote",
"syn 2.0.117",
]
@@ -1914,6 +2023,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
dependencies = [
"const-oid 0.9.6",
+ "der_derive",
+ "flagset",
"pem-rfc7468 0.7.0",
"zeroize",
]
@@ -1929,6 +2040,17 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "der_derive"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "deranged"
version = "0.5.8"
@@ -1949,6 +2071,37 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "derive_builder"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
+dependencies = [
+ "derive_builder_macro",
+]
+
+[[package]]
+name = "derive_builder_core"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
+dependencies = [
+ "darling 0.20.11",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "derive_builder_macro"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
+dependencies = [
+ "derive_builder_core",
+ "syn 2.0.117",
+]
+
[[package]]
name = "dhat"
version = "0.3.3"
@@ -2400,6 +2553,17 @@ dependencies = [
"thiserror 2.0.18",
]
+[[package]]
+name = "eventsource-stream"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74fef4569247a5f429d9156b9d0a2599914385dd189c539334c625d8099d90ab"
+dependencies = [
+ "futures-core",
+ "nom 7.1.3",
+ "pin-project-lite",
+]
+
[[package]]
name = "exr"
version = "1.74.0"
@@ -2535,6 +2699,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "flagset"
+version = "0.4.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7ac824320a75a52197e8f2d787f6a38b6718bb6897a35142d749af3c0e8f4fe"
+
[[package]]
name = "flate2"
version = "1.1.9"
@@ -2745,6 +2915,12 @@ version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
+[[package]]
+name = "futures-timer"
+version = "3.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24"
+
[[package]]
name = "futures-util"
version = "0.3.32"
@@ -3601,6 +3777,15 @@ dependencies = [
"generic-array 0.14.7",
]
+[[package]]
+name = "instant"
+version = "0.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
+dependencies = [
+ "cfg-if",
+]
+
[[package]]
name = "internal-russh-forked-ssh-key"
version = "0.6.16+upstream-0.6.7"
@@ -3652,6 +3837,12 @@ dependencies = [
"rustversion",
]
+[[package]]
+name = "iocuddle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8972d5be69940353d5347a1344cb375d9b457d6809b428b05bb1ca2fb9ce007"
+
[[package]]
name = "ipnet"
version = "2.12.0"
@@ -4390,7 +4581,7 @@ version = "0.25.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a7c4444d624bf6b93db5cc22ebff4fdfa13593fd56154fe33b1f302a557c2c6"
dependencies = [
- "darling",
+ "darling 0.21.3",
"itertools 0.14.0",
"proc-macro2",
"quote",
@@ -4403,7 +4594,7 @@ version = "0.25.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a819ee8b4434690572b6feb9c3ef0b6e90137e4190b340cf00150703b410aaf9"
dependencies = [
- "darling",
+ "darling 0.21.3",
"proc-macro2",
"quote",
"syn 2.0.117",
@@ -5531,6 +5722,16 @@ dependencies = [
"hmac",
]
+[[package]]
+name = "pem"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be"
+dependencies = [
+ "base64 0.22.1",
+ "serde_core",
+]
+
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
@@ -6367,6 +6568,22 @@ dependencies = [
"windows-registry",
]
+[[package]]
+name = "reqwest-eventsource"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "632c55746dbb44275691640e7b40c907c16a2dc1a5842aa98aaec90da6ec6bde"
+dependencies = [
+ "eventsource-stream",
+ "futures-core",
+ "futures-timer",
+ "mime",
+ "nom 7.1.3",
+ "pin-project-lite",
+ "reqwest",
+ "thiserror 1.0.69",
+]
+
[[package]]
name = "rfc6979"
version = "0.4.0"
@@ -6899,7 +7116,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"audiopipe",
@@ -6960,7 +7177,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio-eval"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"clap",
@@ -6975,7 +7192,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -6988,7 +7205,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"async-trait",
@@ -7021,7 +7238,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -7069,7 +7286,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"chrono",
@@ -7095,7 +7312,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"arc-swap",
@@ -7151,6 +7368,7 @@ dependencies = [
"sysinfo",
"tempfile",
"tikv-jemallocator",
+ "tinfoil",
"tokio",
"tokio-stream",
"tokio-tungstenite",
@@ -7168,7 +7386,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"anyhow",
"chrono",
@@ -7186,7 +7404,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -7244,7 +7462,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.317"
+version = "0.3.319"
dependencies = [
"argon2",
"chacha20poly1305",
@@ -7300,6 +7518,16 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "secrecy"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a"
+dependencies = [
+ "serde",
+ "zeroize",
+]
+
[[package]]
name = "security-framework"
version = "3.7.0"
@@ -7611,6 +7839,29 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "sev"
+version = "7.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2ff74d7e7d1cc172f3a45adec74fbeee928d71df095b85aaaf66eb84e1e31e6"
+dependencies = [
+ "base64 0.22.1",
+ "bitfield",
+ "bitflags 2.11.1",
+ "byteorder",
+ "dirs 6.0.0",
+ "hex",
+ "iocuddle",
+ "lazy_static",
+ "libc",
+ "p384",
+ "rsa 0.9.10",
+ "sha2 0.10.9",
+ "static_assertions",
+ "uuid",
+ "x509-cert",
+]
+
[[package]]
name = "sha1"
version = "0.10.6"
@@ -8610,6 +8861,42 @@ dependencies = [
"time-core",
]
+[[package]]
+name = "tinfoil"
+version = "0.1.0"
+source = "git+https://github.com/tinfoilsh/tinfoil-rs#1e0de1acd51675ccfb7e61fbc725e5ca653f0454"
+dependencies = [
+ "async-openai",
+ "base64 0.22.1",
+ "const-oid 0.9.6",
+ "data-encoding",
+ "der 0.7.10",
+ "digest 0.10.7",
+ "dirs 6.0.0",
+ "ecdsa",
+ "ed25519-dalek",
+ "flate2",
+ "hex",
+ "p256",
+ "p384",
+ "pem",
+ "regex",
+ "reqwest",
+ "rsa 0.9.10",
+ "rustls 0.23.38",
+ "serde",
+ "serde_json",
+ "sev",
+ "sha2 0.10.9",
+ "thiserror 1.0.69",
+ "time",
+ "tls_codec",
+ "tokio",
+ "tokio-rustls",
+ "webpki-roots 0.26.11",
+ "x509-cert",
+]
+
[[package]]
name = "tiny-keccak"
version = "2.0.2"
@@ -10489,6 +10776,18 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+[[package]]
+name = "x509-cert"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94"
+dependencies = [
+ "const-oid 0.9.6",
+ "der 0.7.10",
+ "spki 0.7.3",
+ "tls_codec",
+]
+
[[package]]
name = "xattr"
version = "1.6.1"
diff --git a/Cargo.toml b/Cargo.toml
index be20cc74f..08b3d145e 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.318"
+version = "0.3.319"
authors = ["louis030195 <[email protected]>"]
description = ""
repository = "https://github.com/screenpipe/screenpipe"
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 3b58647bb..90aa1fc44 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -649,6 +649,46 @@ dependencies = [
"futures-lite",
]
+[[package]]
+name = "async-openai"
+version = "0.34.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec08254d61379df136135d3d1ac04301be7699fd7d9e57655c63ac7d650a6922"
+dependencies = [
+ "async-openai-macros",
+ "backoff",
+ "base64 0.22.1",
+ "bytes",
+ "derive_builder",
+ "eventsource-stream",
+ "futures",
+ "getrandom 0.3.4",
+ "rand 0.9.2",
+ "reqwest 0.12.12",
+ "reqwest-eventsource",
+ "secrecy",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "thiserror 2.0.18",
+ "tokio",
+ "tokio-stream",
+ "tokio-util",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "async-openai-macros"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81872a8e595e8ceceab71c6ba1f9078e313b452a1e31934e6763ef5d308705e4"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "async-process"
version = "2.5.0"
@@ -1100,6 +1140,20 @@ dependencies = [
"tracing",
]
+[[package]]
+name = "backoff"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
+dependencies = [
+ "futures-core",
+ "getrandom 0.2.17",
+ "instant",
+ "pin-project-lite",
+ "rand 0.8.5",
+ "tokio",
+]
+
[[package]]
name = "backtrace"
version = "0.3.76"
@@ -1250,6 +1304,26 @@ version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+[[package]]
+name = "bitfield"
+version = "0.19.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "21ba6517c6b0f2bf08be60e187ab64b038438f22dd755614d8fe4d4098c46419"
+dependencies = [
+ "bitfield-macros",
+]
+
+[[package]]
+name = "bitfield-macros"
+version = "0.19.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f48d6ace212fdf1b45fd6b566bb40808415344642b76c3224c07c8df9da81e97"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -2588,6 +2662,16 @@ dependencies = [
"winreg 0.52.0",
]
+[[package]]
+name = "darling"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
+dependencies = [
+ "darling_core 0.20.11",
+ "darling_macro 0.20.11",
+]
+
[[package]]
name = "darling"
version = "0.21.3"
@@ -2608,6 +2692,20 @@ dependencies = [
"darling_macro 0.23.0",
]
+[[package]]
+name = "darling_core"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
+dependencies = [
+ "fnv",
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 2.0.117",
+]
+
[[package]]
name = "darling_core"
version = "0.21.3"
@@ -2635,6 +2733,17 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "darling_macro"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
+dependencies = [
+ "darling_core 0.20.11",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "darling_macro"
version = "0.21.3"
@@ -2738,6 +2847,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
dependencies = [
"const-oid 0.9.6",
+ "der_derive",
+ "flagset",
"pem-rfc7468 0.7.0",
"zeroize",
]
@@ -2753,6 +2864,17 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "der_derive"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "deranged"
version = "0.5.8"
@@ -2774,6 +2896,37 @@ dependencies = [
"syn 2.0.117",
]
+[[package]]
+name = "derive_builder"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
+dependencies = [
+ "derive_builder_macro",
+]
+
+[[package]]
+name = "derive_builder_core"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
+dependencies = [
+ "darling 0.20.11",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "derive_builder_macro"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
+dependencies = [
+ "derive_builder_core",
+ "syn 2.0.117",
+]
+
[[package]]
name = "derive_more"
version = "0.99.20"
@@ -3385,6 +3538,17 @@ dependencies = [
"thiserror 2.0.18",
]
+[[package]]
+name = "eventsource-stream"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74fef4569247a5f429d9156b9d0a2599914385dd189c539334c625d8099d90ab"
+dependencies = [
+ "futures-core",
+ "nom 7.1.3",
+ "pin-project-lite",
+]
+
[[package]]
name = "exr"
version = "1.74.0"
@@ -3540,6 +3704,12 @@ dependencies = [
"thiserror 1.0.69",
]
+[[package]]
+name = "flagset"
+version = "0.4.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7ac824320a75a52197e8f2d787f6a38b6718bb6897a35142d749af3c0e8f4fe"
+
[[package]]
name = "flate2"
version = "1.1.9"
@@ -3837,6 +4007,12 @@ version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
+[[package]]
+name = "futures-timer"
+version = "3.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24"
+
[[package]]
name = "futures-util"
version = "0.3.32"
@@ -5221,6 +5397,15 @@ dependencies = [
"generic-array 0.14.7",
]
+[[package]]
+name = "instant"
+version = "0.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
+dependencies = [
+ "cfg-if 1.0.4",
+]
+
[[package]]
name = "internal-russh-forked-ssh-key"
version = "0.6.16+upstream-0.6.7"
@@ -5272,6 +5457,12 @@ dependencies = [
"rustversion",
]
+[[package]]
+name = "iocuddle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8972d5be69940353d5347a1344cb375d9b457d6809b428b05bb1ca2fb9ce007"
+
[[package]]
name = "ipnet"
version = "2.12.0"
@@ -7817,6 +8008,16 @@ dependencies = [
"hmac",
]
+[[package]]
+name = "pem"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be"
+dependencies = [
+ "base64 0.22.1",
+ "serde_core",
+]
+
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
@@ -9092,6 +9293,22 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "reqwest-eventsource"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "632c55746dbb44275691640e7b40c907c16a2dc1a5842aa98aaec90da6ec6bde"
+dependencies = [
+ "eventsource-stream",
+ "futures-core",
+ "futures-timer",
+ "mime",
+ "nom 7.1.3",
+ "pin-project-lite",
+ "reqwest 0.12.12",
+ "thiserror 1.0.69",
+]
+
[[package]]
name = "resvg"
version = "0.45.1"
@@ -9754,7 +9971,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.4.147"
+version = "2.4.149"
dependencies = [
"anyhow",
"arboard",
@@ -9861,7 +10078,7 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"anyhow",
"audiopipe",
@@ -9917,7 +10134,7 @@ dependencies = [
[[package]]
name = "screenpipe-config"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"dirs 6.0.0",
"serde",
@@ -9929,7 +10146,7 @@ dependencies = [
[[package]]
name = "screenpipe-connect"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"anyhow",
"async-trait",
@@ -9962,7 +10179,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -10010,7 +10227,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"anyhow",
"chrono",
@@ -10035,7 +10252,7 @@ dependencies = [
[[package]]
name = "screenpipe-engine"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"anyhow",
"arc-swap",
@@ -10086,6 +10303,7 @@ dependencies = [
"sqlx",
"sysinfo",
"tempfile",
+ "tinfoil",
"tokio",
"tokio-stream",
"tokio-util",
@@ -10101,7 +10319,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"anyhow",
"chrono",
@@ -10117,7 +10335,7 @@ dependencies = [
[[package]]
name = "screenpipe-screen"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -10170,7 +10388,7 @@ dependencies = [
[[package]]
name = "screenpipe-vault"
-version = "0.3.318"
+version = "0.3.319"
dependencies = [
"argon2",
"chacha20poly1305",
@@ -10239,6 +10457,16 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "secrecy"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e891af845473308773346dc847b2c23ee78fe442e0472ac50e22a18a93d3ae5a"
+dependencies = [
+ "serde",
+ "zeroize",
+]
+
[[package]]
name = "security-framework"
version = "3.7.0"
@@ -10781,6 +11009,29 @@ dependencies = [
"stable_deref_trait",
]
+[[package]]
+name = "sev"
+version = "7.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2ff74d7e7d1cc172f3a45adec74fbeee928d71df095b85aaaf66eb84e1e31e6"
+dependencies = [
+ "base64 0.22.1",
+ "bitfield",
+ "bitflags 2.11.0",
+ "byteorder",
+ "dirs 6.0.0",
+ "hex",
+ "iocuddle",
+ "lazy_static",
+ "libc",
+ "p384",
+ "rsa 0.9.10",
+ "sha2 0.10.9",
+ "static_assertions",
+ "uuid",
+ "x509-cert",
+]
+
[[package]]
name = "sha1"
version = "0.10.6"
@@ -12748,6 +12999,42 @@ dependencies = [
"time-core",
]
+[[package]]
+name = "tinfoil"
+version = "0.1.0"
+source = "git+https://github.com/tinfoilsh/tinfoil-rs#1e0de1acd51675ccfb7e61fbc725e5ca653f0454"
+dependencies = [
+ "async-openai",
+ "base64 0.22.1",
+ "const-oid 0.9.6",
+ "data-encoding",
+ "der 0.7.10",
+ "digest 0.10.7",
+ "dirs 6.0.0",
+ "ecdsa",
+ "ed25519-dalek",
+ "flate2",
+ "hex",
+ "p256",
+ "p384",
+ "pem",
+ "regex",
+ "reqwest 0.12.12",
+ "rsa 0.9.10",
+ "rustls 0.23.37",
+ "serde",
+ "serde_json",
+ "sev",
+ "sha2 0.10.9",
+ "thiserror 1.0.69",
+ "time",
+ "tls_codec",
+ "tokio",
+ "tokio-rustls",
+ "webpki-roots 0.26.11",
+ "x509-cert",
+]
+
[[package]]
name = "tini"
version = "1.3.0"
@@ -15200,6 +15487,18 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+[[package]]
+name = "x509-cert"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94"
+dependencies = [
+ "const-oid 0.9.6",
+ "der 0.7.10",
+ "spki 0.7.3",
+ "tls_codec",
+]
+
[[package]]
name = "xattr"
version = "1.6.1"
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 6aa649e30..3c8be3fac 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.148"
+version = "2.4.149"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-engine/Cargo.toml b/crates/screenpipe-engine/Cargo.toml
index df7ab1742..543318825 100644
--- a/crates/screenpipe-engine/Cargo.toml
+++ b/crates/screenpipe-engine/Cargo.toml
@@ -83,6 +83,12 @@ rpassword = "5"
# Client http
reqwest = { workspace = true }
+# Tinfoil enclave attestation: AMD SEV-SNP attestation + Sigstore code-provenance
+# verification + TLS cert pinning for the privacy-filter PII redaction service
+# (see src/privacy_filter.rs). Without this, a MITM or compromised CA could
+# observe unredacted text on its way to the enclave.
+tinfoil = { git = "https://github.com/tinfoilsh/tinfoil-rs" }
+
# Concurrency
crossbeam = { workspace = true }
diff --git a/crates/screenpipe-engine/src/privacy_filter.rs b/crates/screenpipe-engine/src/privacy_filter.rs
index 5268fd701..7672fe79b 100644
--- a/crates/screenpipe-engine/src/privacy_filter.rs
+++ b/crates/screenpipe-engine/src/privacy_filter.rs
@@ -9,7 +9,13 @@
//! memory content) gets PII redacted before leaving the user's device.
//!
//! Design notes:
-//! - One global client (OnceCell); the http pool is reused across requests.
+//! - Tinfoil SDK does AMD SEV-SNP attestation + Sigstore code-provenance
+//! verification + TLS certificate pinning at first use. This proves the
+//! enclave is running the exact open-source build at
+//! github.com/screenpipe/privacy-filter and pins TLS to the attested key,
+//! so a MITM or compromised CA can't observe unredacted text in transit.
+//! - Lazy async init (tokio OnceCell): the verifying handshake (~1-2s on
+//! first call) is paid once, then reqwest connection-pools the rest.
//! - Per-text SHA256 LRU cache. Screen content repeats constantly (chrome
//! tabs, IDE panes, the same email thread) — caching typically cuts the
//! Tinfoil round-trip count by 5-10× during an active session.
@@ -18,7 +24,9 @@
//! enclave saturates around 8 concurrent requests so we don't need
//! finer-grained batching yet.
//! - Fails closed: the caller (search handler) turns any error into an HTTP
-//! error so unredacted text never slips through silently.
+//! error so unredacted text never slips through silently. An attestation
+//! failure (network down, measurement mismatch) therefore blocks the
+//! filter rather than falling back to plain TLS.
use std::sync::Arc;
use std::time::Duration;
@@ -27,6 +35,7 @@ use moka::future::Cache;
use once_cell::sync::OnceCell;
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
+use tokio::sync::OnceCell as AsyncOnceCell;
/// Minimum text length worth sending through the filter. Below this we
/// assume the text can't contain meaningful PII and skip the round-trip.
@@ -39,12 +48,17 @@ const CACHE_CAPACITY: u64 = 2_000;
/// deterministic for a given input so TTL only exists to bound memory.
const CACHE_TTL: Duration = Duration::from_secs(60 * 60);
-const DEFAULT_URL: &str = "https://pii.screenpipe.containers.tinfoil.dev";
+/// Enclave host pinned to our deployed Tinfoil container.
+const DEFAULT_ENCLAVE: &str = "pii.screenpipe.containers.tinfoil.dev";
+/// GitHub repo whose Sigstore-attested release measurement must match the
+/// running enclave (Step 2/3 of Tinfoil's verification).
+const DEFAULT_REPO: &str = "screenpipe/privacy-filter";
#[derive(Debug)]
pub enum FilterError {
Request(reqwest::Error),
Status(reqwest::StatusCode),
+ Attestation(String),
}
impl std::fmt::Display for FilterError {
@@ -52,6 +66,7 @@ impl std::fmt::Display for FilterError {
match self {
FilterError::Request(e) => write!(f, "privacy filter request failed: {}", e),
FilterError::Status(s) => write!(f, "privacy filter returned status: {}", s),
+ FilterError::Attestation(e) => write!(f, "privacy filter attestation failed: {}", e),
}
}
}
@@ -76,25 +91,50 @@ struct FilterResponse {
}
pub struct PrivacyFilter {
- http: reqwest::Client,
- url: String,
+ enclave: String,
+ repo: String,
+ /// Built lazily on first `filter()` call so attestation cost (~1-2s
+ /// hardware-attestation + Sigstore + cert-pinning) doesn't fire at
+ /// engine startup for users who never enable PII filtering.
+ client: AsyncOnceCell<tinfoil::Client>,
cache: Cache<[u8; 32], Arc<String>>,
}
impl PrivacyFilter {
- fn new(url: String) -> Self {
- let http = reqwest::Client::builder()
- .timeout(Duration::from_secs(5))
- .pool_max_idle_per_host(16)
- .build()
- .expect("reqwest client should build with default settings");
-
+ fn new(enclave: String, repo: String) -> Self {
let cache = Cache::builder()
.max_capacity(CACHE_CAPACITY)
.time_to_live(CACHE_TTL)
.build();
- Self { http, url, cache }
+ Self {
+ enclave,
+ repo,
+ client: AsyncOnceCell::new(),
+ cache,
+ }
+ }
+
+ /// Verify the enclave + return its attested HTTP client. The Tinfoil SDK
+ /// does the AMD SEV-SNP attestation, Sigstore signature check, and
+ /// measurement comparison all inside `Client::new`; we cache the result
+ /// so subsequent calls reuse the verified connection pool.
+ async fn http(&self) -> Result<&reqwest::Client, FilterError> {
+ let client = self
+ .client
+ .get_or_try_init(|| async {
+ // The privacy-filter container itself doesn't enforce a
+ // bearer token (its /filter endpoint is open inside the
+ // attested enclave), so the api_key here is just a
+ // placeholder for the SDK constructor.
+ tinfoil::Client::new(&self.enclave, &self.repo, "")
+ .await
+ .map_err(|e| FilterError::Attestation(e.to_string()))
+ })
+ .await?;
+ client
+ .http_client()
+ .map_err(|e| FilterError::Attestation(e.to_string()))
}
/// Redact a single text. Returns the original unchanged if it's shorter
@@ -112,9 +152,10 @@ impl PrivacyFilter {
return Ok((*cached).clone());
}
- let resp = self
- .http
- .post(format!("{}/filter", self.url))
+ let http = self.http().await?;
+ let resp = http
+ .post(format!("https://{}/filter", self.enclave))
+ .timeout(Duration::from_secs(5))
.json(&FilterRequest {
text,
include_spans: false,
@@ -146,14 +187,19 @@ impl PrivacyFilter {
static INSTANCE: OnceCell<Arc<PrivacyFilter>> = OnceCell::new();
-/// Global handle. URL comes from `SCREENPIPE_PRIVACY_FILTER_URL`, defaulting
-/// to the public Tinfoil-hosted enclave.
+/// Global handle. Enclave host + repo come from
+/// `SCREENPIPE_PRIVACY_FILTER_ENCLAVE` / `SCREENPIPE_PRIVACY_FILTER_REPO`,
+/// defaulting to the screenpipe-published enclave + its source repo so that
+/// Tinfoil's measurement comparison ties this client to the exact open
+/// source code at github.com/screenpipe/privacy-filter.
pub fn global() -> Arc<PrivacyFilter> {
INSTANCE
.get_or_init(|| {
- let url = std::env::var("SCREENPIPE_PRIVACY_FILTER_URL")
- .unwrap_or_else(|_| DEFAULT_URL.to_string());
- Arc::new(PrivacyFilter::new(url))
+ let enclave = std::env::var("SCREENPIPE_PRIVACY_FILTER_ENCLAVE")
+ .unwrap_or_else(|_| DEFAULT_ENCLAVE.to_string());
+ let repo = std::env::var("SCREENPIPE_PRIVACY_FILTER_REPO")
+ .unwrap_or_else(|_| DEFAULT_REPO.to_string());
+ Arc::new(PrivacyFilter::new(enclave, repo))
})
.clone()
}
@@ -167,7 +213,11 @@ mod tests {
// Using a bogus URL — the assertion is that the call never happens
// for under-threshold input, so it doesn't matter that the URL is
// unreachable.
- let f = PrivacyFilter::new("http://127.0.0.1:1/never".to_string());
+ // These tests never reach the network — they exercise the cache /
+ // short-text bypass. The enclave + repo strings are bogus on purpose:
+ // if anything tries to actually attest, the test will fail loud
+ // rather than silently calling out.
+ let f = PrivacyFilter::new("never.invalid".to_string(), "test/never".to_string());
let out = f.filter("hi").await.unwrap();
assert_eq!(out, "hi");
}
@@ -175,7 +225,11 @@ mod tests {
#[tokio::test]
async fn cache_returns_same_result_without_network() {
// Seed the cache by hand and verify we hit it instead of the network.
- let f = PrivacyFilter::new("http://127.0.0.1:1/never".to_string());
+ // These tests never reach the network — they exercise the cache /
+ // short-text bypass. The enclave + repo strings are bogus on purpose:
+ // if anything tries to actually attest, the test will fail loud
+ // rather than silently calling out.
+ let f = PrivacyFilter::new("never.invalid".to_string(), "test/never".to_string());
let text = "my email is [email protected] and this is long enough to filter";
let mut hasher = Sha256::new();
hasher.update(text.as_bytes());
@@ -192,7 +246,11 @@ mod tests {
#[tokio::test]
async fn batch_preserves_order_and_uses_cache() {
- let f = PrivacyFilter::new("http://127.0.0.1:1/never".to_string());
+ // These tests never reach the network — they exercise the cache /
+ // short-text bypass. The enclave + repo strings are bogus on purpose:
+ // if anything tries to actually attest, the test will fail loud
+ // rather than silently calling out.
+ let f = PrivacyFilter::new("never.invalid".to_string(), "test/never".to_string());
// Seed all three results in the cache so no network call fires.
for (text, redacted) in [
("alpha-text-block-one".to_string(), "alpha-cached"),